+ Reply to Thread
Results 1 to 5 of 5

Generating a numerical value from a set of letters - comparing two lists?

  1. #1
    Registered User
    Join Date
    11-30-2012
    Location
    Oxford, UK
    MS-Off Ver
    Excel 2010
    Posts
    2

    Generating a numerical value from a set of letters - comparing two lists?

    Hi everyone,

    I've got a column of groups of letters, (in this case exam results) and I would like to generate a numerical value off that, so that I can get some statistics. So I have a column, which has, say, AAA, ABB, CDU, BEC, A*AAA, BD, U... and next to that I would like an index to show how well overall that candidate did.

    So:

    Is there an easy way of separating a single cell with multiple letters into multiple cells with single letters (so I won't have to produce such a large look-up table)

    How do I cycle through my results, compare the result to the value on the look-up table, and print an adjacent column if they are the same.

    Thanks in advance for any help, also, if there's an easier way of solving the problem than my outline above, please tell me!

  2. #2
    Valued Forum Contributor
    Join Date
    08-14-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    573

    Re: Generating a numerical value from a set of letters - comparing two lists?

    Can you upload a sample file?

  3. #3
    Forum Contributor dogberry's Avatar
    Join Date
    07-15-2012
    Location
    Wales, UK
    MS-Off Ver
    Excel 2010
    Posts
    624

    Re: Generating a numerical value from a set of letters - comparing two lists?

    Hi

    I think the easiest way for you to achieve this is to use your text to columns to split it up, unfortunatley I dont think it will cope with A* very well so you may have to correct them manually afterwards. Once you have achieved that if you would like to post a sample worksheet of what you have done and what you are after Im sure someone will help


    Chris
    Click my star if I helped Thanks

  4. #4
    Registered User
    Join Date
    11-30-2012
    Location
    Oxford, UK
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Generating a numerical value from a set of letters - comparing two lists?

    Hi, that text to columns button was useful, I didn't know about that, thanks.

    I'm attaching a file that looks like the one I'll bu using, now, I want to assign a numerical value to each grade, say, A* = 20, A = 15, B = 12, C = 10, D = 8 E = 5, U = 0, then I want to sum the total score in the next empty column. How should I do that, a lot of nested if loops?
    Attached Files Attached Files

  5. #5
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Generating a numerical value from a set of letters - comparing two lists?

    TheDwarfClunk,

    Welcome to the forum!
    Attached is a modified version of your posted workbook.
    Note that there is no need to use Text-To-Columns. The formula can handle it without splitting them into multiple cells.
    Also, because "A" can be mistakenly found when an "A*" is present, the formula converts "A*" to "S" for calculation purposes.

    Row 1 is a header row, so actual data starts on row 2
    In column D is the letter to look up
    In column E is the corresponding value of that letter

    In cell B2 and copied down is this formula to get the total value of the strings that are listed in column A:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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