Vlookup giving a 0 for a blank cell, should I use an IF statment?

Seghesio608

New Member
Joined
Nov 25, 2013
Messages
2
Hello,
I want cells that are
>=6 to be have a "P" instead in a different worksheet
3-5 to have a "F" instead in a different worksheet
<=2 to have a "G" instead in a different worksheet

But in my worksheet I have 0 and blank cells. I need the 0 to say "G" and the blanks to remain blank. I have looked online and saw the responses and tried using an IF statement too, but I could not get it to work.

=VLOOKUP('Total Scores'!M10,Sheet3!$A$1:$B$24,2,FALSE)


With IF statement:
=IF(VLOOKUP('Total Scores'!C7,Sheet3!$A$1:$B$24,2,FALSE)=0,"",VLOOKUP('Total Scores'!C7,Sheet3!$A$1:$B$24,2,FALSE)) (Did not work)


I also tried using nested IF statements, so I could avoid Vlookup and could not get that to work either, but if someone knows/thinks that would work better, I would prefer that

Thank you so much!
Erin
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Shouldn't you have something like:

=IF('Total Scores'!C7="","",LOOKUP('Total Scores'!C7,{0,3,6},{"G","F","P"}))
 
Upvote 0
Which version of Excel?
 
Upvote 0

Forum statistics

Threads
1,216,099
Messages
6,128,813
Members
449,469
Latest member
Kingwi11y

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