if empty say empty, if not do this formula

davso87

New Member
Joined
Jan 23, 2018
Messages
4
Hi all,

Fairly new to the forum, however im learning excel at a fast rate.

Basically i need help in a "heatmap" im creating for work. We have pick locations in which we pick stock from (obviously).
now the heat map lists the location and how many are due to move from it.
how i have it is it looks at the location and looks at another worksheet and says howmany are going out for this. i can get it to do this.
what i cant get it to do is if no item is in location to say "free" or "empty", but if there is stock in there but demand to say "no demand"

Im probably making it sounds really complicated.

the current formula im using is this.

=IF(ISNA(VLOOKUP(B2,Despatches!A:B,2,FALSE)),"EMPTY",VLOOKUP(B2,Despatches!A:B,2))

i dont just want it to find n/a's and change them to "empty" i want it to say if the cell is blank then leave the result as blank.
I really hope im making sense, if not please let me know


Kind Regards

Adam
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Is this what you want
Code:
=IF(ISNA(VLOOKUP(B2,Despatches!A:B,2,FALSE)),"",VLOOKUP(B2,Despatches!A:B,2))
 
Upvote 0
Thanks for your reply!
kind of, but before it does this i want it to look at "B2" and if its blank leave it blank, if not then do this formula

Adam
 
Upvote 0
i think i may have solved it, i have put in :-
=IF(ISBLANK(B2),"empty",IF(ISNA(VLOOKUP(B2,Despatches!A:B,2,FALSE)),"no demand",VLOOKUP(B2,Despatches!A:B,2,FALSE)))

it appears to work, i just have to make sure!!
 
Upvote 0
Also...
Code:
=IF(B2="","empty",IF(ISNA(VLOOKUP(B2,Despatches!A:B,2,FALSE)),"no demand",VLOOKUP(B2,Despatches!A:B,2,FALSE)))
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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