# Alphabetize a list

#### dogmoo21

##### New Member
I have a column full of words to the right of a column labeling each of those words with a number (I will show an example of everything at the end). I want the third column to correspond to an alphabetized list of the second column. I want to use a formula, not a macro, to organize this third column.

For example:

1 | gun |
2 | bat |

3 | fit |

4 | con |

5 | act |

6 | hem |

7 | eel |

8 | ire |

9 | dad |

...should become:

1 | gun | 5
2 | bat | 2

3 | fit | 4

4 | con | 9

5 | act | 7

6 | hem | 3

7 | eel | 1

8 | ire | 6

9 | dad | 8

If anyone can help me by providing a formula I could use or somewhere I can look for a formula, that would be greatly appreciated.

### Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
??????????????????????????

In your results table, you have "eel" marked as #1 alphabetically, shouldn't "act" be #1? Also, you have "dad" ranked as #8 alphabetically, when it should clearly be before "gun", "fit", "hem", "eel", and ire"

So that's why we're confused

I don't get it....why is "eel" #1, but "bat" is #2 (in the 3rd column)?

hmmmmmm maybe
=COUNTIF(\$B\$1:\$B\$9,"<" & B1)+1

Last edited:
You could put this CSE formula in C1 (entered with Ctrl-Shift-Enter) and drag it downward.
=100*MOD(SMALL(COUNTIF(B:B,"<="&\$B\$1:\$B\$9)+ROW(\$B\$1:\$B\$9)/100,ROW(A9)),1)

Replies
5
Views
139
Replies
10
Views
336
Replies
6
Views
286
Replies
7
Views
143
Replies
3
Views
195

1,206,826
Messages
6,075,092
Members
446,119
Latest member
BrianAndrews

### 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?

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