Indexing max from every other cell

TheOx2k

New Member
Joined
May 12, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi, I feel this might be simple, but if you are able to help, would be appreciated.

I have an excel sheet that returns the max value in an array and returns the date from the same column row 2. "=IF(SUMPRODUCT(--(I15:AP15<>""))=0,"",INDEX($K$2:$AR$2,0,MATCH(MAX(I15:AP15),I15:AP15,0)))"

However, I would like to find the max from every other column and return the date from row 2.

I am using "=MAX(FILTER(I15:AP15,MOD(SEQUENCE(,COLUMNS(I15:AP15)),2)=0))" to return the max value for every other column in an array. However, am struggling to return the date from row 2.

Thanks
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Hi & welcome to MrExcel.
How about
Excel Formula:
=TAKE(SORT(FILTER(VSTACK($I$2:$AP$2,I15:AP15),MOD(SEQUENCE(,COLUMNS(I15:AP15)),2)=0),2,-1,1),1,1)
 
Upvote 0
Hi Fluff, thank you very much, that worked a treat.

If I wanted to average the same cells, how would the best way to do that be?
 
Upvote 0
In the 2nd formula you posted just swap Max for Average.
 
Upvote 0

Forum statistics

Threads
1,215,165
Messages
6,123,387
Members
449,098
Latest member
ArturS75

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