If formula

Veronica_sky

New Member
Joined
Dec 6, 2010
Messages
13
Can i know why this formula doesnt work?

=IF(10%>$F$9<30%,$G$4,IF($F$9>30%,$H$4," "))

Where by i wan to show if F9>10% but Less den 30% = Cell G4 (1 mark) and
if F9> 30% - Cell H4 (2marks)
** my cell F9 was in percentage dy..

Thanks a lot
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
You have the right idea but your syntax is off a little.

=IF(10%>$F$9<30%,$G$4,IF($F$9>30%,$H$4," "))

You can't test multiple conditions like you did above, To accomplish that you'd need to merge those conditions with an AND statement:

=IF(AND(10%>$F$9,$F$9<30%),$G$4,IF($F$9>30%,$H$4," "))
 
Upvote 0
Dear CWatts,
Okies.. i got it.. Really thanks a lot.. i did try to insert and just now, but i did place it wrongly as well.. now i know what's my mistakes..
Thanks and appreciate it :)
 
Upvote 0
It's better to avoid returning a space character. Also, the formula does not cover the case of being equal to 30%...

=IF(AND(F9 > 10%, F9 < 30%), $G$4, IF(F9 >= 30%, $H$4, ""))

Note the difference between " " and "".
 
Upvote 0

Forum statistics

Threads
1,224,518
Messages
6,179,254
Members
452,900
Latest member
LisaGo

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