+ Reply to Thread
Results 1 to 6 of 6

How to calculate Wordvalue (a=1,b=2) icecream=57

  1. #1
    Registered User
    Join Date
    05-16-2020
    Location
    NewYork
    MS-Off Ver
    Office 2013
    Posts
    3

    How to calculate Wordvalue (a=1,b=2) icecream=57

    I want to turn letters into numbers (A=1, B=2, C=3, ..., Z=26) and calculate the sum. For example in cell A1 is the word icecream , cell B1 should then display 57
    (i=9 + c=3 + e=5 +c=3 + r=18 + e=5 + a=1 + m=13 = 57)

    There are online calculators, but I would like to calculate that with Excel (Office 2013), I also found several explanations for German excel, but none for English Excel.

    Thanks!
    Martina

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,482

    Re: How to calculate Wordvalue (a=1,b=2) icecream=57

    One way using array formula, so use CTRL+SHIFT+ENTER to commit formula

    =SUM(CODE(MID(UPPER(SUBSTITUTE(A1," ","")),ROW(A1:INDEX(A:A,LEN(SUBSTITUTE(A1," ","")))),1))-64)
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    05-16-2020
    Location
    NewYork
    MS-Off Ver
    Office 2013
    Posts
    3

    Re: How to calculate Wordvalue (a=1,b=2) icecream=57

    Thanks Andy, it worked for A1 with Icecream. I input your formula and pressed use CTRL+SHIFT+ENTER, it worked.

    However, in A2 there is "New York", result should be 111, instead it displays a wrong value. I changed all the A1 in your formule into A2, but still it did not work there.

    Sorry for this seamingly little question, but which A1 to change or what else to keep in mind?

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,482

    Re: How to calculate Wordvalue (a=1,b=2) icecream=57

    For A2 the formula would be, I have also made the relevant cells absolute

    =SUM(CODE(MID(UPPER(SUBSTITUTE(A2," ","")),ROW($A$1:INDEX($A:$A,LEN(SUBSTITUTE(A2," ","")))),1))-64)

  5. #5
    Registered User
    Join Date
    05-16-2020
    Location
    NewYork
    MS-Off Ver
    Office 2013
    Posts
    3

    Re: How to calculate Wordvalue (a=1,b=2) icecream=57

    Thank you, it worked perfectly :-)

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,068

    Re: How to calculate Wordvalue (a=1,b=2) icecream=57

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

+ 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. Index Match to calculate data - Filter calculate
    By Tgbell in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-03-2019, 01:46 PM
  2. Replies: 1
    Last Post: 01-07-2018, 10:30 AM
  3. Replies: 5
    Last Post: 06-11-2017, 01:51 AM
  4. Code to Calculate the product of two matrices won't calculate
    By njrobby in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-05-2015, 01:37 AM
  5. Target.Calculate to Me.Calculate breaks Copy/Paste
    By vayana in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-27-2013, 10:36 AM
  6. [SOLVED] Calculate values in col B based on value in col B but only calculate final 5 instances
    By arnoldd99 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-04-2013, 11:53 AM

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