If statements with a blank result

mmode66

New Member
Joined
Aug 14, 2018
Messages
22
I'm using an IF statement to assign a value to performance, ultimately to gather a Rank in points.
I'm using multiple criteria (about 6) and each has a point assigned based on their performance in that metric.

Issue: Some values in catagories are coming up blank. This is causing my formula to give them max points (example below: They would get "10" even though they were absent or had nothing in that column of data).

Objective: Add a calculation that will take into consideration the blank value and return "1".

Any suggestions? Below is the actual formula I'm using.

=IF(G3>=0.85,"10",IF(G3>=0.8,"9",IF(G3>=0.75,"8",IF(G3>=0.7,"7",IF(G3>=0.65,"6",IF(G3>=0.6,"5",IF(G3>=0.58,"4",IF(G3>=0.55,"3",IF(G3<0.54999,"1")))))))))
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
I just tested out your formula on a blank cell and it returned 1. What is the value that is in cell G3 in this example?
 
Upvote 0
This might work better:

Code:
=IFERROR(VLOOKUP(G3,{0,1;0.55,3;0.58,4;0.6,5;0.65,6;0.7,7;0.75,8;0.8,9;0.85,10},2,TRUE),"")

WBD
 
Last edited:
Upvote 0
WBD, that worked. Not sure how lol But it worked. I'll be spending some time studying that formula so i can understand it better. Thank you for teaching me something new today!
 
Upvote 0
The value in the cell is Blank. I wonder what would cause mine to return a 10?


Is the "blank" a result of a formula as well, or is there absolutely nothing in the cell? (no formula or value) If it's a blank returned by a formula (""), then it will technically return true for all the logical tests as it's numerical value(code) is greater than .85.
 
Upvote 0
Hi,

Don't put quote marks ( "8" ) around numbers unless it's intentional, it turns the number into TEXT, you Only want to use quote marks for Text.
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,213
Members
452,618
Latest member
Tam84

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