Return corresponding names in descending order based on next column values.

alirezae90

New Member
Joined
Jan 20, 2019
Messages
8
Hi everyone,

Column A1:A5 contains unique names/references
Column B1:B5 contains numbers

I want column C1:C5 to be those names but based on their corresponding values in descending order.

I don't want to do any filtering, a function on C1 to read values from B1:B5 and return corresponding names in descending order.

Any help is appreciated.
 
This CSE formula should do what you want

=INDEX(A:A, 1000*MOD(LARGE($B$1:$B$14+ROW($B$1:$B$14)/1000,ROW(A1)),1), 1)&""


Change the B1:B14 as needed, but leave the A:A alone. (And the A1)
 
Last edited:
Upvote 0

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
This CSE formula should do what you want

=INDEX(A:A, 1000*MOD(LARGE($B$1:$B$14+ROW($B$1:$B$14)/1000,ROW(A1)),1), 1)&""


Change the B1:B14 as needed, but leave the A:A alone. (And the A1)

Again I'm curious as to why we need an array formula, mine seems to do the same!
 
Upvote 0
Again I'm curious as to why we need an array formula, mine seems to do the same!
Potential duplicates in column B.
Your MATCH based approach will return one of those duplicated values twice. My array approach will return them both.
 
Upvote 0

Forum statistics

Threads
1,215,375
Messages
6,124,587
Members
449,174
Latest member
chandan4057

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