If/Vlookup statement help

tglane

New Member
Joined
Oct 7, 2010
Messages
5
I'm using the following formula to lookup data from one workbook to another. The data it's pulling is a date. What I also need to do, though, is that if the data pulls a zero, I'd like it to display the "-" character, and not a date of 1/0/1900. What else do I need to add to my formula?

=IF(C678="Yes",VLOOKUP(B678,'[Workbook File Name.xlsx]'!$D$3:$Q$6121,14,FALSE),"-")

Thanks so much!
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Welcome to the board..

You might just tell Excel to Not display 0's.

Tools - Options - View
UNcheck Zero Values
 
Upvote 0
Thanks for the welcome!

That may fix it on my end, but what if I need to share this with someone else? If they don't have that option checked wouldn't it open up for them showing the 1/0/1900 date?
 
Upvote 0
No, it's a sheet level setting. Not an application level setting.
It won't even apply to all sheets, just the one active at the time you set it.
 
Upvote 0
I should clarify my answer...

YES, it will apply when other user's open it.
The setting is saved to the sheet, not the Excel Application.
 
Upvote 0
Awesome! Thanks so much for your help. That makes life so much easier than trying to write it into the formula.
 
Upvote 0

Forum statistics

Threads
1,224,542
Messages
6,179,424
Members
452,914
Latest member
echoix

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