Blank Date 01/0/1900

Rahulwork

Active Member
Joined
Jun 9, 2013
Messages
284
hello everyone,

i have a big sheet and data fetch from other workbook via vlookuop

where i have blank cell in base sheet, results are 01/0/1900. i need to fetch month details but bcoz of this it;s showing january which is incorrect. kindly help me to get the month result "0" or blank if we have 01/0/1900 in result
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Hi Rahulwork,

You should fix it in your VLOOKUP when you retrieve the date/not a date.

BCDEFGH
1Other WorkbookVLOOKUPBadGood
2CodeDate1ZZ08-Jun-1508-Jun-15
3XX01-Jan-20XX01-Jan-2001-Jan-20
4SSWW17-Dec-1617-Dec-16
5WW17-Dec-16VV00-Jan-00
6ZZ08-Jun-15SS00-Jan-00
7VVPP27-May-1227-May-12
8PP27-May-12MM05-Nov-0705-Nov-07
9LLLL00-Jan-00
10KK13-May-09KK13-May-0913-May-09
11MM05-Nov-07

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
G2=VLOOKUP(F2,$B$3:$C$11,2,0)
H2
=TEXT(VLOOKUP(F2,$B$3:$C$11,2,0)&"","dd-mmm-yy")

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
Hi Rahulwork,

You should fix it in your VLOOKUP when you retrieve the date/not a date.


=TEXT(VLOOKUP(F2,$B$3:$C$11,2,0)&"","dd-mmm-yy")
I wouldn't do it that way as the results are now text values, not date values, which may cause issues with using them for further analysis - eg analysing by month.

I would do it this way.

Excel Workbook
BCDEFGH
1Other WorkbookVLOOKUPBadGood
2CodeDate1ZZ8-Jun-158-Jun-15
3XX1-Jan-20XX1-Jan-201-Jan-20
4SSWW17-Dec-1617-Dec-16
5WW17-Dec-16VV0-Jan-00
6ZZ8-Jun-15SS0-Jan-00
7VVPP27-May-1227-May-12
8PP27-May-12MM5-Nov-075-Nov-07
9LLLL0-Jan-00
10KK13-May-09KK13-May-0913-May-09
11MM5-Nov-07
Blank Date
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,694
Members
448,979
Latest member
DET4492

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