Correct formula except show 0 when cell blank.

Stretlow

Board Regular
Joined
Dec 17, 2008
Messages
131
Hi all.

A little help if you dont mind.


I have this

=LOOKUP(D3,{0,6,12,24,36,48,49},{1000,600,400,200,100,0})

to do some scoring

However when the cell is blank (D3) ie no data in there i need the score to show 0 at the moment it shows 1000

I cant for the life of me get it right.

Any help greatly appreciated.


Stret.
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
You'll have to add a preliminary test before allowing the LOOKUP() to run.

=IF(ISBLANK(D3), 0, LOOKUP(D3,{0,6,12,24,36,48,49},{1000,600,400,200,100,0}))
 
Upvote 0
Or you can use this:
=LOOKUP(D3,{0,6,12,24,36,48,49},{0,1000,600,400,200,100,0})
 
Upvote 0
I'm certain that blank and zero are not the same thing. The original formula appears to give a value of 1000 to scores of zero. To keep the same thing from happening for a blank cell, you would need to test if the cell is blank or not, else you'll always get that 1000 score.
 
Upvote 0

Forum statistics

Threads
1,214,429
Messages
6,119,433
Members
448,897
Latest member
ksjohnson1970

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