Excel conditional f...
 

Subscribe now and choose from over 30 free gifts worth up to £49 - Plus get £25 to spend in our shop

[Closed] Excel conditional formula help!?

3 Posts
3 Users
0 Reactions
80 Views
Posts: 1236
Free Member
Topic starter
 

I have a calculation sheet which I'm doing at work but I'm having trouble figuring out how to make it work. The sheet is used to calculate the time taken to complete a welding operation and relies on two values which are inputted by the user (in this case arm length in cell G5 and number of joints in G6).

The condition I'm trying to compute is along the lines of the following:

If G5<=12 and if G6=0 then use a known value in T21
If G5<=12 and if G6=1 then use a known value in T21
If 12>G5<18 and G6=2 then use a known value in U22
If 18>G5<24 and G6=2 then use a known value in U23
If 18>G5<24 and G6=3 then use a known value in V23

I can cope with single if functions but this dual if has got me stumped. I can email the actual sheet if it would help. Any ideas?

Cheers


 
Posted : 09/02/2012 9:12 am
Posts: 0
Free Member
 

IF(AND(G5<=12,G6=0),T21)

etc...


 
Posted : 09/02/2012 9:14 am
Posts: 0
Free Member
 

This works in openoffice. Excel should be the same but change semicolons to commas. 999 is the result if the tests are false.

=IF(AND(G6=3;G5>18;G5<24);V23;999)


 
Posted : 09/02/2012 9:36 am
Posts: 1236
Free Member
Topic starter
 

Cheers allthepies!


 
Posted : 09/02/2012 10:58 am