+ Reply to Thread
Results 1 to 4 of 4

Substituting numbers for letters and totalling value

  1. #1
    Registered User
    Join Date
    10-28-2009
    Location
    Bristol, England
    MS-Off Ver
    Excel 2003
    Posts
    5

    Substituting numbers for letters and totalling value

    I would like to put any one of 20 different text strings in a row of 6 cells, where each text string has been given a different numerical value.

    As I enter a text string into a cell, (only one per cell) the numerical value would appear in box 7 at the end of the row. Each text string entered would increase the numerical total at the end of the row.

    I want to print out the result so that boxes 1 - 6 show text strings and box 7 shows the total of all the numerical values equivalent to the text strings

    The numerical value of each of the text strings can be listed somewhere on the page

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Substituting numbers for letters and totalling value

    If for arguments sake your 20 strings and associated values were listed in A1:B20 (strings in A, values in B) and your 6 strings were to be placed in say A21:F21 with total in G21

    G21: =SUMPRODUCT(COUNTIF(A21:F21,A1:A20),B1:B20)

  3. #3
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474

    Re: Substituting numbers for letters and totalling value

    Here's a similar way...

    =SUMPRODUCT(SUMIF($A$1:$A$20,A21:F21,$B$1:$B$20))

  4. #4
    Registered User
    Join Date
    10-28-2009
    Location
    Bristol, England
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Substituting numbers for letters and totalling value

    Thank you for those answers.
    I'm humbled by the amount of knowledge some people have
    QED

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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