+ Reply to Thread
Results 1 to 6 of 6

Letters representing numbers

  1. #1
    Registered User
    Join Date
    03-12-2018
    Location
    London
    MS-Off Ver
    2008
    Posts
    9

    Letters representing numbers

    Hi how to make when a word is typed in one cell to sum the numbers of each letter and show me the result?
    For example A=1, B=2, C=3...so if i type the word 'Baby' it will give me 30, ABC = 6.

  2. #2
    Forum Moderator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    365
    Posts
    20,554

    Re: Letters representing numbers

    Is there a maximum number of letters that can be typed into the cell? It is possible to do this with a formula but it will be a long formula, and VBA might be preferred.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Moderator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    365
    Posts
    20,554

    Re: Letters representing numbers

    Here is a formula that will work for up to 6 letters. If you have anything but letters in the string you will get odd results.

    =-LEN(A1)*(CODE("A")-1)+IFERROR(CODE(MID(UPPER(A1),1,1)),0)+IFERROR(CODE(MID(UPPER(A1),2,1)),0)+IFERROR(CODE(MID(UPPER(A1),3,1)),0)+IFERROR(CODE(MID(UPPER(A1),4,1)),0)+IFERROR(CODE(MID(UPPER(A1),5,1)),0)+IFERROR(CODE(MID(UPPER(A1),6,1)),0)

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Letters representing numbers

    Maybe if you enter words into separate cells it can be done with single formula.
    Enter formula in C1 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    WORDS.JPG
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Letters representing numbers

    Here is another possible scenario
    1. Enter formula in cell E1 and drag formula across to cell Z1 and copy down to row 26
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    2. Enter in D1 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Select columns E:Z and hide them
    WORDS_2.JPG
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    03-12-2018
    Location
    London
    MS-Off Ver
    2008
    Posts
    9

    Re: Letters representing numbers

    Thank you both very much

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 13
    Last Post: 07-30-2014, 12:03 PM
  2. [SOLVED] How to combine a variables representing letters into a word?
    By Voxxyn in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-14-2014, 02:30 AM
  3. Replies: 5
    Last Post: 01-06-2014, 03:31 PM
  4. [SOLVED] Calculate row sum based on letters representing values in each cell
    By antmer in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-03-2013, 05:27 AM
  5. [SOLVED] Can I have words representing numbers in a formula?
    By PeterM in forum Excel General
    Replies: 4
    Last Post: 08-07-2006, 04:35 PM
  6. how to convert whole numbers representing seconds to mm:ss
    By Elvin in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-06-2006, 01:49 PM
  7. [SOLVED] FORMULAS FOR ADDING LETTERS REPRESENTING NUMBERS
    By koolone in forum Excel General
    Replies: 1
    Last Post: 04-08-2005, 08:06 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1