VLOOKUP date without #N/A & 00/01/1900

Gwill1983

Board Regular
Joined
Oct 24, 2018
Messages
69
Office Version
  1. 365
Platform
  1. Windows
Hi all,

Really struggling with this one.

I am carrying out a vlookup against cells containing a date. I have established a way to do this to avoid returning #N/A for errors, but this then returns 00/01/1900 for cells containing no data. If I adjust the formula to get rid of the 00/01/1900 then the #N/A appear again!!

The formula I have for removing the #N/A is =IFERROR(VLOOKUP([@[PO Number]],Prev_Report,9,0),"")
The formula I have for removing the 00/01/1900 is =IF(VLOOKUP([@[PO Number]],Prev_Report,9,0)=0,"",VLOOKUP([@[PO Number]],Prev_Report,9,0))

Is there a way of combining these in some way to avoid both?

I only want it to return a result if there is a date in the resulting cell
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Sufiyan97

Active Member
Joined
Apr 12, 2019
Messages
394
Office Version
  1. 2013
Platform
  1. Windows
Is VLOOKUP result in Date Format?
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
62,220
Office Version
  1. 365
Platform
  1. Windows
How about
Excel Formula:
=IFERROR(1/(1/VLOOKUP([@[PO Number]],Prev_Report,9,0)),"")
 
Solution

Gwill1983

Board Regular
Joined
Oct 24, 2018
Messages
69
Office Version
  1. 365
Platform
  1. Windows

ADVERTISEMENT

How about
Excel Formula:
=IFERROR(1/(1/VLOOKUP([@[PO Number]],Prev_Report,9,0)),"")
That doesn't return anything now! It did fix the N#A's and the stupid date though!! 🤣
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
62,220
Office Version
  1. 365
Platform
  1. Windows
Are you sure the values the vlookup returns are numbers & not text?
 

Gwill1983

Board Regular
Joined
Oct 24, 2018
Messages
69
Office Version
  1. 365
Platform
  1. Windows

ADVERTISEMENT

Are you sure the values the vlookup returns are numbers & not text?
100% positive. Both the column containing the VLOOKUP and the column with the returns (column 9 within the prev_report table) are set to short date
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
62,220
Office Version
  1. 365
Platform
  1. Windows
If you format col 9 of the prev_report table what do you see?
 

Gwill1983

Board Regular
Joined
Oct 24, 2018
Messages
69
Office Version
  1. 365
Platform
  1. Windows
If you format col 9 of the prev_report table what do you see?
1622131273659.png
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
62,220
Office Version
  1. 365
Platform
  1. Windows
Oops should have said
If you format col 9 of the prev_report table as General what do you see?
 

Forum statistics

Threads
1,140,999
Messages
5,703,641
Members
421,307
Latest member
morrden86

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
Top