Index text range

theta

Well-known Member
Joined
Jun 9, 2009
Messages
960
Hi all, I have a range of cells as follows :

AAA
AAB
BBA
BBC
CCC
DDD
EEE
FFA
FFB
GAB
GGG

I want to be able to index them (in correct sorted order) so that if I tried to do a lookup on the range INDEX 1 would = AAA, INDEX 2 would = AAB

Trying to make a mailer form. The references on the data sheet are alpha numeric, but I will be using a +1 / -1 button to go to next / previous record. So was thinking of using INDEX / MATCH that will interpret an alphanumeric range and provide the correct item?
 

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
Not sure I understand the problem...
Use the INDEX function...
If those values you posted are in a range say A2:A12
=INDEX($A$2:$A$12,1)

The red 1 is where you put your desired index #.
 
Upvote 0
Chandoo has an example where you can produce a key for each item in a range

=COUNTIF($C$6:$C$15,"<="&C6)

Copied down in column B next to the C5:C15 range

Only works on alphanumeric / alpha. If you put a single number in e.g. 1, then the formula breaks

Need something more flexible
 
Upvote 0
Basically hoping to index unique text items (or numbers) based on their sorted reference/index
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,293
Members
452,902
Latest member
Knuddeluff

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