Resorting data to match a list using formulas

StarliteLemming

New Member
Joined
Jun 2, 2022
Messages
12
Office Version
  1. 2019
Platform
  1. Windows
I feel like an idiot for asking this question, as I know I've seen the elements of the solution before. I just cannot remember what they are or where I saw them.

Essentially, I want to take a list of indices (row 2, below), sort them numerically, then convert them to values from a lookup table. Using only functions available to all/most versions of Excel.

Here's an example:
Original Data:DACconvert with MATCH(B1, TableRow2, 0)
Data:413
Hidden Intermediate result:1, 3, 4
Desired Final result:A, C, D
Lookup Table
12345
ABCDE

The approach I vaguely remember creates an array of TRUE/FALSE values the length of the lookup table (5), then somehow combines that with the second row of the table. (Note that the table would normally be vertical, but it's easier to enter here horizontally.)

Thanks in advance.
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

Forum statistics

Threads
1,217,361
Messages
6,136,103
Members
449,991
Latest member
IslandofBDA

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