EDate a VLookup when VLookup comes up blank

DerekMeers

New Member
Joined
Aug 31, 2019
Messages
2
Good Afternoon

I am currently trying to add 12 months to a Vlookup formula result.
The Vlookup formula references another workbook.
The formula currently has an if statement to blank out the cell if the vlookup does not find a value.
I am wanting to add 12 months to the vlookup.
If the vlookup is blank, I want the Edate to be blank.

IF(ISNA(VLOOKUP(H10, '[Canada AssetsV2.xlsx]PM & CVIP'!$A$2:$CP$833, 35, FALSE)), " ", VLOOKUP(H10, '[Canada AssetsV2.xlsx]PM & CVIP'!$A$2:$CP$833, 35, FALSE))12=EDATE(A1,B1)

The formula works perfect when there is a date found, but when the date is blank, I receive #VALUE .
I have tried to condition format the cell to make #VALUE white and hidden, but this also doesn't work.

Does anyone have any ideas?

Thank you!
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Hi DerekMeers,

I suspect the retrieved cell 35 columns after the match is found in the remote file contains text and not a date.

Your pasted formula also looks a little funny but that may be due to a pasting problem.

Code:
=IF(ISNA(VLOOKUP(H10, '[Canada AssetsV2.xlsx]PM & CVIP'!$A$2:$CP$833, 35, FALSE)), " ", EDATE(VLOOKUP(H10, '[Canada AssetsV2.xlsx]PM & CVIP'!$A$2:$CP$833, 35, FALSE),12))
 
Upvote 0
The pasting does't help. I actually just figured it out.

=IFERROR(EDATE(A1,B1), " ")

I swear I tried this earlier.
Thank you for your help and sorry for posting in the wrong thread.
 
Upvote 0
The pasting does't help. I actually just figured it out.

=IFERROR(EDATE(A1,B1), " ")

I swear I tried this earlier.
Thank you for your help and sorry for posting in the wrong thread.

EDATE(A1,B1), This is something new to me.
 
Upvote 0

Forum statistics

Threads
1,214,639
Messages
6,120,679
Members
448,977
Latest member
dbonilla0331

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