How to always return the numbers of the first cell of a column Based on their value?

Goldenrules

New Member
Joined
Jul 16, 2022
Messages
25
Office Version
  1. 365
  2. 2021
  3. 2019
Platform
  1. Windows
  2. Mobile
  3. Web
Good day great minds, I have been battling with this fommula for while now and I need yours help on it.

In the first image is a list of 1 - 49 numbers with the trands of each numbers.

And on the second image is the lists of the highest 10 numbers trends and lowest 20 numbers trends.

I used this formula "=LARGE($CM4:$EI4,1) for the largest 10 number which worked perfectly will, including the lowest 20 too.

But instead of it given me those values for me, I want it to return the numbers.

I was able to come up with this formula "=INDEX($BZ$1:$DV$1,1,MATCH(MAX($BZ5:$DV5),$BZ5:$DV5,0))" but it's not working well.

Please kindly help.
 

Attachments

  • Screenshot_20230328-133437.png
    Screenshot_20230328-133437.png
    64.8 KB · Views: 23
  • Screenshot_20230328-133942.png
    Screenshot_20230328-133942.png
    67.2 KB · Views: 20

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Hi,
Have you tested : =INDEX($BZ$1:$DV$5,1,MATCH(MAX($BZ5:$DV5),$BZ5:$DV5,0))
 
Upvote 0
Please permit me to rephrase the question;
How to get or return column header based on specific row value in Excel?

Screenshot_20230328-133437.png
Screenshot_20230328-133942.png


In the first image is a list of 1 - 49 numbers with the trands of each numbers.

And on the second image is the lists of the highest 10 numbers trends and lowest 20 numbers trends.

I used this formula "=LARGE($CM4:$EI4,1) for the largest 10 number which worked perfectly will, including the lowest 20 too.

But instead of it given me those values for me, I want it to Return table head Instead of Value.

I was able to come up with this formula "=INDEX($BZ$1:$DV$1,1,MATCH(MAX($BZ5:$DV5),$BZ5:$DV5,0))" but it's not working well.

Please kindly help.
 
Upvote 0
Hi,
You could test:
Excel Formula:
=INDEX($BZ$1:$DV$1,,MATCH(MAX($BZ5:$DV5),$BZ5:$DV5,0))
 
Upvote 0
Hi,
You could test:
Excel Formula:
=INDEX($BZ$1:$DV$1,,MATCH(MAX($BZ5:$DV5),$BZ5:$DV5,0))
Thanks for your response I have tried it, it works perfectly well for the highest number in the range. But not working for the 2nd, 3th, 4th, 5th highest. Because there are some same numbers within the range.
 
Upvote 0
Glad to hear this could help

In your formula you are using Max which is equivalent to Large(yourRange,1)

If you are after the subsequent results, you will need to use Large(yourRange, n )

where n will take the values you need : 2,3,4, etc ...

Hope this clarifies
 
Upvote 0
Glad to hear this could help

In your formula you are using Max which is equivalent to Large(yourRange,1)

If you are after the subsequent results, you will need to use Large(yourRange, n )

where n will take the values you need : 2,3,4, etc ...

Hope this clarifies
I have used it countless times, but not working as expected. If you can permit me to share the link to the file, because it's on Google sheet.
 
Upvote 0
No problem ... ;)

Even if I have never used Google Sheets ... o_O
 
Upvote 0
I have used it countless times, but not working as expected. If you can permit me to share the link to the file, because it's on Google sheet.
Note that while there are many similarities between Excel and Google Sheets, they are NOT the same, and there actually are differences.
As such, if you are posting a question about Google Sheets, pleasing clearly state you are doing so in your original title/question post, and post it to the appropriate forum, "General Discussion & Other Applications".

1680108224095.png


I have moved this thread for you to that forum.
 
Upvote 0

Forum statistics

Threads
1,223,936
Messages
6,175,507
Members
452,650
Latest member
Tinfish

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