Index/Match Duplicate Values With No Helper Cells

wsr429

New Member
Joined
Mar 18, 2023
Messages
9
Office Version
  1. 2016
Platform
  1. MacOS
Hi, I am using Index, Match and Large in order to the locate the highest date (Col A) and then return its corresponding number (Col B) – see attached. It works well using this formula - unless there are duplicate dates (Col A):

IFERROR(INDEX(B1:B8,MATCH(LARGE(A1:A8,1),A1:A8,0),1),"")

I found a similar post (Index Match Duplicate Values With No Helper Cells [SOLVED]) which dealt with the data running across from A1:H2.

But I am not sure what the corresponding formula would be for data which goes down from A1:B8. Is it possible to convert their formula (see below) for my spreadsheet (without using a helper cell)?

INDEX($A1:$H1,MATCH(LARGE($A2:$H2-COLUMN($A2:$H2)/10^10,COLUMNS($A5:A5)),$A2:$H2-COLUMN($A2:$H2)/10^10,0))

I am using Excel for Mac (version 16).

Thank you,

William

Mr Excel Attachment.jpg
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Try the following...

A11, confirmed with CTRL+SHIFT+ENTER, and copied across:

Excel Formula:
=INDEX($B$1:$B$8,MATCH(LARGE($A$1:$A$8+ROW($A$1:$A$8)/10^10,COLUMNS($A11:A11)),$A$1:$A$8+ROW($A$1:$A$8)/10^10,0))

wsr.xlsm
ABCDEFGHI
13/15/20241
24/10/20242
34/10/20243
45/12/20244
55/12/20245
66/18/20246
77/22/20247
87/22/20248
9
10
1187654321
12
Sheet2
Cell Formulas
RangeFormula
A11:H11A11=INDEX($B$1:$B$8,MATCH(LARGE($A$1:$A$8+ROW($A$1:$A$8)/10^10,COLUMNS($A11:A11)),$A$1:$A$8+ROW($A$1:$A$8)/10^10,0))
Press CTRL+SHIFT+ENTER to enter array formulas.


However, if your data will always be sorted by date in ascending order, and you always want to return from last to first when duplicates exist, maybe the following would suffice...

wsr.xlsm
ABCDEFGHI
13/15/20241
24/10/20242
34/10/20243
45/12/20244
55/12/20245
66/18/20246
77/22/20247
87/22/20248
9
10
1187654321
12
Sheet2
Cell Formulas
RangeFormula
A11:H11A11=INDEX($B$1:$B$8,ROWS($B$1:$B$8)-COLUMNS($A11:A11)+1)


Hope this helps!
 
Last edited:
Upvote 0
Thanks so much for your prompt reply, Domenic. Your formula works perfectly in my spreadsheet. I can't guarantee the dates will always be in ascending order so I will use your first formula. Once again, I really appreciate your help!
 
Upvote 0

Forum statistics

Threads
1,224,568
Messages
6,179,580
Members
452,927
Latest member
whitfieldcraig

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