Vlookup to return today's data if not found and blank if found

Benny1145

New Member
Joined
May 29, 2022
Messages
3
Hi there,

I'm trying to write a VLOOKUP formula but having a bit of trouble.

I'd like to perform a vlookup that only return to Today's date to a specific cell on that row or blank if FOUND. I am working with two sheets. Sheet 1 and sheet 2

This is what I currently have - =IFERROR(VLOOKUP(B3,sheet2!B:B,1,FALSE),TODAY())

1. This is working but the results appears where i put the Vlookup formula - I what the result in the H column
2. When found it is returning the value - I want it blank
3. The Date is returned as a number - I want it to be formatted as str(dd/mm/yyyy)

Thanks!
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
try
=IF(ISERROR(VLOOKUP(B3,Sheet2!B:B,1,FALSE)),TODAY(),"")

1. This is working but the results appears where i put the Vlookup formula - I what the result in the H column
can you put the formula into column H - not sure i follow exactly
When found it is returning the value - I want it blank
change formula to
=IF(ISERROR(VLOOKUP(B3,Sheet2!B:B,1,FALSE)),TODAY(),"")

3. The Date is returned as a number - I want it to be formatted as str(dd/mm/yyyy)
just format the column as a Date DD/MM/YYYY
 
Upvote 0
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,552
Members
449,088
Latest member
davidcom

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