+ Reply to Thread
Results 1 to 5 of 5

Need help with a formula (assigning numerical values to letters and creating a sum)

  1. #1
    Registered User
    Join Date
    02-20-2016
    Location
    san francisco, california
    MS-Off Ver
    home & student 2011
    Posts
    7

    Need help with a formula (assigning numerical values to letters and creating a sum)

    Here is my situation.

    In column A, each cell contains random strings of different letters, numbers and spaces. They are all the same length (200 characters)

    Here is what I am looking to do. I want to create my own algorithm (A= 1.05, B= 1.12, etc, all the way up to Z and then also I want to assign values to numbers 0-9, and a value to the space character)

    I want to know, based on my algorithm, what the total value is of all 200 characters in cell A2. I am aiming for a specific total value, so if I could take it a step further I would like to have a formula to remove a few characters from the end of the text string if the total value is above what I am aiming for.

    The second part is not 100% necessary if its too difficult, I can just do it manually if I have to. But I would definitely like to at least accomplish the first part of what I am trying to do if possible.

    If you think I might be better off with a macro/VBA, let me know and I will ask this over there. But I think I can at least conquer part 1 of this equation with regular formulas, maybe a VLOOKUP or something?

    .....

    If I seem unclear as to what I am asking, here is an example:

    A2: Y77EPZ G0BGQV STZNW9 D2VLC FN5DH RZGLEPPPCDZE
    A3: 18U1X03S3X57 ZDUFIPU KRTGKEB E9K N7F VZOZS4SH
    A4: S135UPKB5EP3 W5YVT U4 U8 DOWYM6 YP562ZOE8Q51Q

    IF the letter "A" = 1.1, "B" = 1.25, "C" = 3.2 , "D" = 0.88, etc etc, then what is the sum of all characters in A2? What about the sum of the characters in A3? A4? (Not trying to add the whole column together, just an individual sum for each cell, displayed in the adjacent cell)
    Last edited by arthurspooner; 02-20-2016 at 01:06 PM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,178

    Re: Need help with a formula (assigning numerical values to letters and creating a sum)

    Please post a sample Excel file with example(s)of your requirement

  3. #3
    Registered User
    Join Date
    02-20-2016
    Location
    san francisco, california
    MS-Off Ver
    home & student 2011
    Posts
    7

    Re: Need help with a formula (assigning numerical values to letters and creating a sum)

    Quote Originally Posted by JohnTopley View Post
    Please post a sample Excel file with example(s)of your requirement
    I added an example to the original post, let me know if it is a sufficient enough example. Thank you for your help.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,178

    Re: Need help with a formula (assigning numerical values to letters and creating a sum)

    I think you are correct in suggesting using VBA. I assume the values of each character are held in a table.

  5. #5
    Registered User
    Join Date
    02-20-2016
    Location
    san francisco, california
    MS-Off Ver
    home & student 2011
    Posts
    7

    Re: Need help with a formula (assigning numerical values to letters and creating a sum)

    I went ahead and posted in the VBA section, thanks again.

    I don't have the values stored in excel yet because I am not sure what approach to take, but yes I was planning on making some sort of table.

+ 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. [SOLVED] Formula for creating date range and assigning values
    By jmaggols in forum Excel General
    Replies: 4
    Last Post: 12-09-2015, 11:05 AM
  2. Assigning numerical values to items in a list and generating a sum
    By talrico in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-03-2013, 06:08 AM
  3. Assigning numerical values to words
    By prwillard2 in forum Excel General
    Replies: 5
    Last Post: 03-10-2013, 02:33 PM
  4. [SOLVED] Assigning Numerical Values to Letters and Multiplying Them
    By DNAguy in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 08-16-2012, 09:57 PM
  5. Assigning values to letters
    By ScarletHaze in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-09-2009, 11:39 AM
  6. Replies: 7
    Last Post: 06-16-2008, 05:10 PM
  7. Assigning values to letters
    By Cheri in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-20-2005, 12:00 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