ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   0/01/1900 (https://www.excelbanter.com/excel-discussion-misc-queries/23742-0-01-1900-a.html)

leolin

0/01/1900
 
i have a VLOOKUP formula which returns a date value and i have formatted the
cells to be in date format. however when a value cannot be found (ie. returns
0) the format changes the 0 to 0/01/1900. how can i stop this? id want the
cell to be blank if there is no value.

appreciate your help, thanks!

Arvi Laanemets

Hi

=IF(VLOOKUP(...)=0,"",VLOOKUP(...))

--
When sending mail, use address arvil<attarkon.ee
Arvi Laanemets


"leolin" wrote in message
...
i have a VLOOKUP formula which returns a date value and i have formatted

the
cells to be in date format. however when a value cannot be found (ie.

returns
0) the format changes the 0 to 0/01/1900. how can i stop this? id want the
cell to be blank if there is no value.

appreciate your help, thanks!




Dave Peterson

I think I'd use:

=if(vlookup()="","",vlookup())

just in case there was ever a zero that should be returned.



Arvi Laanemets wrote:

Hi

=IF(VLOOKUP(...)=0,"",VLOOKUP(...))

--
When sending mail, use address arvil<attarkon.ee
Arvi Laanemets

"leolin" wrote in message
...
i have a VLOOKUP formula which returns a date value and i have formatted

the
cells to be in date format. however when a value cannot be found (ie.

returns
0) the format changes the 0 to 0/01/1900. how can i stop this? id want the
cell to be blank if there is no value.

appreciate your help, thanks!


--

Dave Peterson


All times are GMT +1. The time now is 12:58 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com