Variable Column_Index_Number in VLOOKUP Formula

Gtabtr1

New Member
Joined
Feb 15, 2017
Messages
39
ID #
Name
Date 1
Date 2
Date 3
29
John
1/9/2011
5/12/2014
42
Bill
6/18/2014
8/16/2017
11/10/2017
112
Jane
9/15/2018

<tbody>
</tbody>







Hi Board! Need your help again. Haven't been able to find an answer that works.

I need to do a vlookup to find the ID# the find the last date in that row.

Thank you in advance.
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Table in A1:E4. ID in G1. Try this:

=LOOKUP(10^10,INDEX($C$2:$E$4,MATCH(G1,$A$2:$A$4,0),0))
 
Upvote 0
Do you mean the last populated date of the three? If so, then =IF(E2<>"",E2,IF(D2<>"",D2,C2)) may work.
ID #NameDate 1Date 2Date 3Last Date
29John1/9/20115/12/20145/12/2014
42Bill6/18/20148/16/201711/10/201711/10/2017
112Jane9/15/20189/15/2018

<colgroup><col span="2"><col span="2"><col span="2"></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,215,454
Messages
6,124,933
Members
449,195
Latest member
Stevenciu

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