Convert Names to Numbers (text to numbers)

pwebley

Board Regular
Joined
Mar 2, 2011
Messages
69
Is there a way to convert a name to a numerical value using formulas. Example:
John = 123

The name would actually convert to a number because of the value of each character. Any help would be appreciated.
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
I have a list of names that I would like to sort alphabetically using a formula

Based on the above


Excel 2010
AB
1Name
2LauraAndrew
3JanetAnne
4NancyJanet
5AnneJohn
6MichaelLaura
7MargaretMargaret
8AndrewMichael
9JohnNancy
Sheet1
Cell Formulas
RangeFormula
B2{=INDEX($A$2:$A$9,MATCH(ROWS($A$2:A2),COUNTIF($A$2:$A$9,"<="&$A$2:$A$9),0))}
Press CTRL+SHIFT+ENTER to enter array formulas.


Or without the array formula


Excel 2010
ABC
1NameHelper
2Laura5Andrew
3Janet3Anne
4Nancy8Janet
5Anne2John
6Michael7Laura
7Margaret6Margaret
8Andrew1Michael
9John4Nancy
Sheet1
Cell Formulas
RangeFormula
B2=COUNTIF($A$2:$A$9,"<="&A2)
C2=INDEX($A$2:$A$9,MATCH(ROWS($B$2:B2),$B$2:$B$9,0))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,550
Messages
6,179,462
Members
452,915
Latest member
hannnahheileen

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