Share via

Help with Excel formula

Anonymous
2023-12-04T20:36:14+00:00

Hello,

Please see picture below. I have a MAX function in cell B20 that finds the highest average of any average in row 17 of the columns from A-J. I would like to know what formula to enter in cell B21 that will output the text in row 1 cell for the column that has the highest average. For example, in the data below, the formula in B21 would look into cell B20, find "590.47" which is the highest average in row 17, which is in cell G17, then return whatever text is in row 1 of column G. (Which is "how is x7" in cell G1)

When the numbers in rows 2 through 16 change, the averages in row 17 would change, and the max in cell B20 would update. So then I would want cell B21 to show whatever is the text in row 1 of the column with the new highest average. Thank you!!

Microsoft 365 and Office | Excel | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2023-12-05T02:25:08+00:00

You may try this one to get the Highest value directly.

=INDEX(A1:J1,LET(b,BYCOL(A2:J16,LAMBDA(a,(SUM(a)))),MATCH(MAX(b),b,0)))

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

Answer accepted by question author

Ashish Mathur 102K Reputation points Volunteer Moderator
2023-12-04T23:58:44+00:00

Hi,

Try this formula

=xlookup(B20,A17:J17,A1:J1)

Hope this helps.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

Answer accepted by question author

Rich~M 20,370 Reputation points Volunteer Moderator
2023-12-04T23:26:01+00:00

Hi Craig. I am an Excel user like you.

Here is a formula that will enter the header from Row 1 of the Column with the Highest value from your MAX function. Enter this in B21.

=INDEX(A1:J1,1,MATCH(B20,A17:J17,0))

.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2023-12-05T14:06:35+00:00

    I just received 3 great answers from you experts!!

    thanks very much for your great assistance!!

    it's nice to know there is help out there when needed!!

    Craig

    Was this answer helpful?

    0 comments No comments