IF Formula not working

Budi_K

New Member
Joined
May 29, 2022
Messages
6
Office Version
  1. 2010
Platform
  1. Windows
I has try an IF formula from old post for my case, but its not working well.
Only get single value/result (FALSE).

Exercise.xlsx
EF
1%Result
23.0D.O
315.0D.O
418.0D.O
540.0D.O
650.0D.O
755.0D.O
865.0D.O
9100.0D.O
Sheet2
Cell Formulas
RangeFormula
F2:F9F2=IF(E2=15,"F Low",IF(E2=18,"F",IF(E2=40,"E",IF(E2=50,"C Low",IF(E2=55,"C",IF(E2=65,"B",IF(E2=100,"A","D.O")))))))


Need help to solve it.

Thanks in advanced
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
You may have entered column E as Text.
You could use a Lookup formula.
Please explain what you are trying to do and whether or not column E should be numbers formatted with 1 decimal place or Text.


T202205a.xlsm
EF
1Result
23???
315F Low
418F
540E
650C Low
755C
865B
9100A
10
4a
Cell Formulas
RangeFormula
F2:F9F2=IF(E2=3,"???",IF(E2=15,"F Low",IF(E2=18,"F",IF(E2=40,"E",IF(E2=50,"C Low",IF(E2=55,"C",IF(E2=65,"B",IF(E2=100,"A","D.O"))))))))
 
Last edited:
Upvote 0
Solution
Your formula works for the exact input. The reason f2 does not work is because you don't have a defined value for what 3 is. But the function works for on f3 (15 = "F Low").

I'm guessing you might be wanting to put those scores as ranges? So if the score is under 15 it's F Low. To do that you would need to use the greater than or less than >=.

Another way you could accomplish this is a simple vlookup table and have these all defined in another table to reference to. Nested if statements can be complicated when you use that many variables. I would do a vlookup with values 1 to 100 and then put the grades in the next column over. Then use a vlookup instead of an the If statement.
 
Upvote 0
You may have entered column E as Text.
You could use a Lookup formula.


T202205a.xlsm
EF
1Result
23???
315F Low
418F
540E
650C Low
755C
865B
9100A
10
4a
Cell Formulas
RangeFormula
F2:F9F2=IF(E2=3,"???",IF(E2=15,"F Low",IF(E2=18,"F",IF(E2=40,"E",IF(E2=50,"C Low",IF(E2=55,"C",IF(E2=65,"B",IF(E2=100,"A","D.O"))))))))
OMG, it's working...thank you very much.
 
Upvote 0
Your formula works for the exact input. The reason f2 does not work is because you don't have a defined value for what 3 is. But the function works for on f3 (15 = "F Low").

I'm guessing you might be wanting to put those scores as ranges? So if the score is under 15 it's F Low. To do that you would need to use the greater than or less than >=.

Another way you could accomplish this is a simple vlookup table and have these all defined in another table to reference to. Nested if statements can be complicated when you use that many variables. I would do a vlookup with values 1 to 100 and then put the grades in the next column over. Then use a vlookup instead of an the If statement.
Thank you for your advice, I would try for VLOOKUP.

Thank you very much.
 
Upvote 0
A guess

T202205a.xlsm
EFGHIJ
1%Result
23%unknown0 -3.0%0unknown
314%F Low3.01% - 15.0%3.01%F Low
417%F 15.01% - 18.0%15.01%F
5
4a
Cell Formulas
RangeFormula
F2:F4F2=LOOKUP(E2,I2:J4)
 
Upvote 0
A guess

T202205a.xlsm
EFGHIJ
1%Result
23%unknown0 -3.0%0unknown
314%F Low3.01% - 15.0%3.01%F Low
417%F 15.01% - 18.0%15.01%F
5
4a
Cell Formulas
RangeFormula
F2:F4F2=LOOKUP(E2,I2:J4)

So H Column for scoring as ranges and then using VLOOKUP/LOOKUP in F2.
The same concept for J:K Columns.

Thank you.
 
Upvote 0
It will help if you explain what your are trying to do!
My mini example is a guess.
Column H is not used in the calculation; it is explanation text.
The Table for the Lookup is in Columns I:J.

Try reading Excel's Help information for Lookup and Vlookup.
 
Upvote 0

Forum statistics

Threads
1,215,647
Messages
6,126,005
Members
449,280
Latest member
Miahr

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