VLOOKUP minus VLOOKUP (Dates)

NJS1982

Board Regular
Joined
Sep 24, 2009
Messages
183
Office Version
  1. 365
Platform
  1. Windows
Hi, wondered if anyone can help me work something out.
I have a formula, below:

(=if(A2="","",if(E2=1, VLOOKUP FORMULA - VLOOKUP FORMULA, 0)

The two VLookups are dates, elsewhere in the sheet. But I don't think I am able to nest two VLOOKUPS like this...does anyone know for sure?
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
You should be able to do that just fine, as long as both VLOOKUPS return actual date values and not any errors (or text entries).
 
Last edited:
Upvote 0
Hmmm, but it doesn't work?

=IF(A2="","",IF(E2=1,VLOOKUP(A2,'GMS Overarching Report'!A1:AN3000,MATCH("App Recd Date",'GMS Overarching Report'!$A$1:$AD$1,0)-VLOOKUP(A2,'GMS Overarching Report'!A1:AN3000,MATCH("First Decision Date",'GMS Overarching Report'!$A$1:$AD$1,0),0))))
 
Upvote 0
If I try INDEX, it seems to work...?

=IF(A2="","",IF(E2=1,INDEX('GMS Overarching Report'!C:C,MATCH(A2,'GMS Overarching Report'!A:A,0))-INDEX('GMS Overarching Report'!B:B,MATCH(A2,'GMS Overarching Report'!A:A,0)),""))
 
Upvote 0
Hmmm, but it doesn't work?
Did you confirm that each VLOOKUP works independently on its own first?
If they do, then you should be able to use them in the larger formula.

INDEX/MATCH is a good substitute for VLOOKUP, are often time more efficient. So if that is working, I would just say go with that.
 
Upvote 0

Forum statistics

Threads
1,214,874
Messages
6,122,034
Members
449,061
Latest member
TheRealJoaquin

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