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
CodeZZ
XXXX
SSWW
WWVV
ZZSS
VVPP
PPMM
LLLL
KKKK
MM

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]
[TD="align: center"]Other Workbook[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]VLOOKUP[/TD]
[TD="align: center"]Bad[/TD]
[TD="align: center"]Good[/TD]

[TD="align: center"]2[/TD]

[TD="align: center"]Date1[/TD]
[TD="align: center"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]08-Jun-15[/TD]
[TD="align: center"]08-Jun-15[/TD]

[TD="align: center"]3[/TD]

[TD="align: center"]01-Jan-20[/TD]
[TD="align: center"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]01-Jan-20[/TD]
[TD="align: center"]01-Jan-20[/TD]

[TD="align: center"]4[/TD]

[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]17-Dec-16[/TD]
[TD="align: center"]17-Dec-16[/TD]

[TD="align: center"]5[/TD]

[TD="align: center"]17-Dec-16[/TD]
[TD="align: center"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]00-Jan-00[/TD]
[TD="align: center"][/TD]

[TD="align: center"]6[/TD]

[TD="align: center"]08-Jun-15[/TD]
[TD="align: center"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]00-Jan-00[/TD]
[TD="align: center"][/TD]

[TD="align: center"]7[/TD]

[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]27-May-12[/TD]
[TD="align: center"]27-May-12[/TD]

[TD="align: center"]8[/TD]

[TD="align: center"]27-May-12[/TD]
[TD="align: center"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]05-Nov-07[/TD]
[TD="align: center"]05-Nov-07[/TD]

[TD="align: center"]9[/TD]

[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]00-Jan-00[/TD]
[TD="align: center"][/TD]

[TD="align: center"]10[/TD]

[TD="align: center"]13-May-09[/TD]
[TD="align: center"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]13-May-09[/TD]
[TD="align: center"]13-May-09[/TD]

[TD="align: center"]11[/TD]

[TD="align: center"]05-Nov-07[/TD]
[TD="align: center"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]

</tbody>
Sheet1

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]G2[/TH]
[TD="align: left"]=VLOOKUP(F2,$B$3:$C$11,2,0)[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]H2
[/TH]
[TD="align: left"]=TEXT(VLOOKUP(F2,$B$3:$C$11,2,0)&"","dd-mmm-yy")[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
 
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,224,820
Messages
6,181,154
Members
453,021
Latest member
Justyna P

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