Multiple IF Function in EXCEL 2013

czhbpr

New Member
Joined
Apr 16, 2016
Messages
22
Afternoon everyone, Been working on this now for about half a day and can not work out why it is not working.

The Plan was if F9 is equal to Alpha and W9 is between P1 and Q1 then subtract Z3 off X9 if F9 was not equal to Alpha and is between T1 and U1 then subtract Z4 from X9

Code:
=IF(F9="ALPHA",IF(AND($W9>=$P$1,$W9<=$Q$1),$X9-($X9*$Z$3/100),"") IF($W9>=$T$1,$W9<=$U$1),$X9-($X9*$Z$4/100))

How ever i get a #VALUE! Error on anything with a ALPHA in F9

Help would be much appreciated :)
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
I should add it should leave the cell Blank if it does not fit with in the rules. Currently it seems to be doing everything as per blank rule even if it is not between the T and U Fields.
 
Upvote 0
Use this:

Code:
=IF(F9="ALPHA",IF(AND($W9>=$P$1,$W9<=$Q$1),$X9-($X9*$Z$3/100),IF(AND($W9>=$T$1,$W9<=$U$1),$X9-($X9*$Z$4/100),"")))
 
Last edited:
Upvote 0
I interpreted a bit differently.
Code:
=IF(AND(F9="Alpha",W9 > P1,W9 < Q1),X9-Z3,IF(AND(W9 > T1,W9 < U1),X9-Z4))
 
Last edited:
Upvote 0
Use this:

Code:
=IF(F9="ALPHA",IF(AND($W9>=$P$1,$W9<=$Q$1),$X9-($X9*$Z$3/100),IF(AND($W9>=$T$1,$W9<=$U$1),$X9-($X9*$Z$4/100),"")))


This seems to have fixed it if it was equal to Alpha, but now if it is not equal to ALpha it will put up a False result. it will not go by the 2nd option of if F9 was not equal to Alpha and is between T1 and U1 then subtract Z4 from X9


Thank you, so far it is much appreciated
 
Upvote 0
I interpreted a bit differently.
Code:
=IF(AND(F9="Alpha",W9 > P1,W9 < Q1),X9-Z3,IF(AND(W9 > T1,W9 < U1),X9-Z4))


This one seems to be throwing up odd results, and as the other one is does not have the 2nd part if it is not equal to ALpha use different criteria.
 
Upvote 0
This seems to have fixed it if it was equal to Alpha, but now if it is not equal to ALpha it will put up a False result. it will not go by the 2nd option of if F9 was not equal to Alpha and is between T1 and U1 then subtract Z4 from X9


Thank you, so far it is much appreciated

Use this:

Code:
=IF(F9="ALPHA",IF(AND($W9>=$P$1,$W9<=$Q$1),$X9-($X9*$Z$3/100),""),IF(AND($W9>=$T$1,$W9<=$U$1),$X9-($X9*$Z$4/100),""))
 
Upvote 0

Forum statistics

Threads
1,222,905
Messages
6,168,949
Members
452,227
Latest member
sam1121

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top