Formula to stop returning a date of 00-Jan-00

Peggy2015

Board Regular
Joined
Oct 19, 2015
Messages
109
Hello,

I have the following formula in my spread sheet: =IFERROR(VLOOKUP(A5,'Staff Data'!A:K,8,FALSE),""), however the results it brings back is: 00-Jan-00. How do I write a better, more robust, formula that ignores blank cells so it doesn't give me 00-Jan-00?

thanks for your help.

Best wishes,
Peggy
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Hi
You could nest in a IF-sentence more:
=IF(VLOOKUP(A5,'Staff Data'!A:K,8,FALSE)<>0;IFERROR(VLOOKUP(A5,'Staff Data'!A:K,8,FALSE),"");"")
 
Upvote 0
Hello,

Thanks for the formula. Unfortunately, I now get #NA when the formula is looking up my criteria in cell A5, for example, and the information does not exist in 'Staff Data'! at all.

I also tried Index,Match, but it didn't like that either - same reply #NA when the data does not exist in the spreadsheet it is looking up the information. How can I work around this? I thought about putting in a nested formula for IFNA, but that didn't work for me. I might have been writing the formula incorrectly?

Thanks,
Peggy


Hi
You could nest in a IF-sentence more:
=IF(VLOOKUP(A5,'Staff Data'!A:K,8,FALSE)<>0;IFERROR(VLOOKUP(A5,'Staff Data'!A:K,8,FALSE),"");"")
 
Upvote 0
Hi
My mistake - this should work:

=IFERROR(IF((VLOOKUP(A5;'Staff Data'!A:K;8;FALSE))<>0;VLOOKUP(A5;''Staff Data''!A:K;8;FALSE);"");"")
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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