Adding Blank Cell Logic to Existing Formula

meppwc

Well-known Member
Joined
May 16, 2003
Messages
626
Office Version
  1. 365
Platform
  1. Windows
The formula below that is in W247 works correctly. You will notice if the lookup finds a value (the secondary VLOOKUP logis), that the formula returns the value in column 9.
But if the value for column 9 is blank, then I want blank returned.
Currently Excel is populating the value of "1/0/00"
I am struggling with fitting an ISBLANK condition into this formula.
Can someone please assist?


=IF(D247<>"",D247,IF(ISERROR(VLOOKUP(O247,'G-Block CMO-FMO and IP Ranges '!$A$61:$I$400,7,FALSE)),"",VLOOKUP(O247,'G-Block CMO-FMO and IP Ranges '!$A$61:$I$400,9,FALSE)))
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Hi, this is returning value 0 for you and it is in date format m/d/yy.

If you want to change that then without going into too much modification this should work:

Code:
=IF(D247<>"",D247,IF(ISERROR(VLOOKUP(O247,'G-Block CMO-FMO and IP Ranges'!$A$61:$I$400,7,FALSE)),"",IF(VLOOKUP(O247,'G-Block CMO-FMO and IP Ranges'!$A$61:$I$400,9,FALSE)=0,"",VLOOKUP(O247,'G-Block CMO-FMO and IP Ranges'!$A$61:$I$400,9,FALSE))))
 
Last edited:
Upvote 0
The formula below that is in W247 works correctly. You will notice if the lookup finds a value (the secondary VLOOKUP logis), that the formula returns the value in column 9.
But if the value for column 9 is blank, then I want blank returned.
Currently Excel is populating the value of "1/0/00"
I am struggling with fitting an ISBLANK condition into this formula.
Can someone please assist?


Apparently you have a date format in the cell.
Change the format of the cell to:

dd/mm/aaaa;;"";@

https://support.microsoft.com/en-us...stand-settings-in-the-format-cells-dialog-box
 
Upvote 0
You can also change the format of Column W to m/d/yy;"";
 
Upvote 0
Thank you all for the assistance.........DanteAmor.........dd/mm/aaaa;;"";@ worked perfectly. It really "cleaned" things up.
 
Upvote 0
Thank you all for the assistance.........DanteAmor.........dd/mm/aaaa;;"";@ worked perfectly. It really "cleaned" things up.

I'm glad to help you. Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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