Index/Matchfrom Right to Left?

carlidee

New Member
Joined
Sep 15, 2020
Messages
20
Office Version
  1. 2016
Platform
  1. Windows
Hello,

I created a formula to look up the most recent event name and date in a tracker. Was working great in examples 1 and 2 below, but ran into an issue when two events have the same greatest date.

In example 3 below I would want the latest date to say "Interview 2" on "2/1/24" (rather than Interview 1)

Is there a way to start the look up from right to left - or any other ideas to rework formula below?

Thank you!

calc output (col A)calc output (col B)input (col C)input (col D)input (col E)input (col F)input (col G)input (col H)
headerLatest Event NameLatest Event DateEvent 1 NameEvent 1 DateEvent 2 NameEvent 2 DateEvent 3 NameEvent 3 Date
example 1Interview 21/15/24Interview 11/1/24Interview 21/15/24
example 2Interview 11/10/24Interview 11/10/24
example 3Interview 12/1/24Interview 12/1/24Interview 22/1/24
example 3 formulas=INDEX(C4:H4,MATCH(B4,C4:H4,0)+1)=MAX(B4:H4)
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
How about
Excel Formula:
=LOOKUP(2,1/(ISNUMBER(D2:H2)),C2:G2)
 
Upvote 0
How about
Excel Formula:
=LOOKUP(2,1/(ISNUMBER(D2:H2)),C2:G2)
ugh I realized I mis-ordered the columns in the example...should be date then name....

Can you please help fit formula to this structure - also is the formula you recommended for Column B and I would keep Column A as is? Thank you

calc output (col A)calc output (col B)input (col C)input (col D)input (col E)input (col F)input (col G)input (col H)
headerLatest Event DateLatest Event NameEvent 1 DateEvent 1 NameEvent 2 DateEvent 2 NameEvent 3 NameEvent 3 Date
example 11/15/24Interview 21/1/24Interview 11/15/24Interview 2
example 21/10/24Interview 11/10/24Interview 1
example 32/1/24Interview 12/1/24Interview 12/1/24Interview 2
example 3 formulas=MAX(B4:H4)=INDEX(C4:H4,MATCH(B4,C4:H4,0)+1)
 
Upvote 0
Ok, try
Excel Formula:
=LOOKUP(2,1/(ISNUMBER(C2:G2)),D2:H2)
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,959
Members
449,096
Latest member
Anshu121

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