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.

[TABLE="width: 500"]
[TR]
[TD]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))[/TD]
[TD]12[/TD]
[TD]=EDATE(A1,B1)[/TD]
[/TR]
[/TABLE]

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

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
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,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

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