+ Reply to Thread
Results 1 to 23 of 23

converting letters to numbers

  1. #1
    Registered User
    Join Date
    02-11-2014
    Location
    *
    MS-Off Ver
    Excel 2013
    Posts
    17

    converting letters to numbers

    I am using Excel 2013.

    I have a grade book with letter grades (not like school). I need to know how to convert to a letter into a specific number.

    I took averages and using the IF function converted the averages into letters (like school). I tried to use the same process and simply reverse the command but that did not work.

    Please help.

    Thank you.
    PC

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: converting letters to numbers

    Can you post a sample file?

  3. #3
    Registered User
    Join Date
    02-11-2014
    Location
    *
    MS-Off Ver
    Excel 2013
    Posts
    17

    Re: converting letters to numbers

    this pattern continues until the program is completed so it could continue for several more rounds.

  4. #4
    Registered User
    Join Date
    02-11-2014
    Location
    *
    MS-Off Ver
    Excel 2013
    Posts
    17

    Re: converting letters to numbers

    Week 1 Week 2
    # Score 1 Score 2 Score 3
    1 D D D
    2 A B A
    3 A B A
    4 A B A
    5 A A A
    6 A F A
    7 F A A
    8 A B F


    Letter
    Grade
    Key Score 1 Score 2 Score 3
    A 5 8 11
    B 4 7 10
    C 3 6 9
    D 2
    F 1

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: converting letters to numbers

    ??????? how does that relate to post a sample workbook?
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  6. #6
    Registered User
    Join Date
    02-11-2014
    Location
    *
    MS-Off Ver
    Excel 2013
    Posts
    17

    Re: converting letters to numbers

    Until I can figure out how to upload a sample file the above example is the best I can do. My apologies.

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: converting letters to numbers

    to attach

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  8. #8
    Registered User
    Join Date
    02-11-2014
    Location
    *
    MS-Off Ver
    Excel 2013
    Posts
    17

    Re: converting letters to numbers

    I need to be able to code into a cell a range of number which would represent certain letters. For example, in column 1: A=5, B=4, C=3, D=2, F=1. In column 2: A=8, B=7, C=6. In column 3: A=11, B=10, C=9. In column 4:A=14, B=13, C, 12. this pattern repeats for any further columns.

    Any suggestions?

  9. #9
    Registered User
    Join Date
    02-11-2014
    Location
    *
    MS-Off Ver
    Excel 2013
    Posts
    17

    Re: converting letters to numbers

    Does this help?
    Attached Files Attached Files

  10. #10
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: converting letters to numbers

    Like this maybe
    Attached Files Attached Files
    Last edited by martindwilson; 02-11-2014 at 03:32 PM.

  11. #11
    Registered User
    Join Date
    02-11-2014
    Location
    *
    MS-Off Ver
    Excel 2013
    Posts
    17

    Re: converting letters to numbers

    Whoa.

    Thank you (you probably know how long I have been looking for this). I'll let you know if it works, especially if I am able to key in future columns now without available data (as if the top chart was unfilled-- see attachment).
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    02-11-2014
    Location
    *
    MS-Off Ver
    Excel 2013
    Posts
    17

    Re: converting letters to numbers

    Okay, question:

    In your spreadsheet you have the "D" in column 2 ranked as a 5, but it should be an 2. And in column 3 you have "D" as 11, but it should be 2 (because "D"'s and "F"'s never advance beyond their last number (hence the reason for the gray spot on the middle chart).

    How do I configure ranges based on IF THEN? Or can I?

  13. #13
    Registered User
    Join Date
    02-11-2014
    Location
    *
    MS-Off Ver
    Excel 2013
    Posts
    17

    Re: converting letters to numbers

    Hopefully this gives further clarity of what I am trying to accomplish. The middle table is the conversion between the top and the bottom tables.

    (please note that a score of "D" or "F" in columns 2-forward correspond with the last number given in the previous column)

    The top table is not complete because I do not have the data yet but I would like the bottom table setup so when I enter the letter in the top , the bottom table automatically populates.

    Please let me know what you think. Thank you.
    Attached Files Attached Files

  14. #14
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: converting letters to numbers

    I changed the workbook to do just that did you download the last one i posted?

  15. #15
    Registered User
    Join Date
    02-11-2014
    Location
    *
    MS-Off Ver
    Excel 2013
    Posts
    17

    Re: converting letters to numbers

    I did.
    Do I just need to cut and paste the first cell and drag it across to make it apply to all columns?

    Thank you for all your help.

  16. #16
    Registered User
    Join Date
    02-11-2014
    Location
    *
    MS-Off Ver
    Excel 2013
    Posts
    17

    Re: converting letters to numbers

    Man, that is so close!

    The future "D"s and "F"s need to retain the number of the previous column, not the original score. But I am going top play with it and see if I can make it adapt.

    Do you know anything about using linear regression, poison, etc. in Excel?

  17. #17
    Registered User
    Join Date
    02-11-2014
    Location
    *
    MS-Off Ver
    Excel 2013
    Posts
    17

    Re: converting letters to numbers

    Quick example:

    In the attached example uuencoded example, #'s 1 and 2 under the Score 11 column remain the same as the previous number in the Score 10 column (because "D" and "F" do not advance beyond the previous number until Score 12 column where the next "C" or higher exists. Please see attachment.

    How do I augment the code to reflect this progression of specific information?
    Attached Files Attached Files

  18. #18
    Registered User
    Join Date
    02-11-2014
    Location
    *
    MS-Off Ver
    Excel 2013
    Posts
    17

    Re: converting letters to numbers

    Thank you for your continued assistance.

  19. #19
    Registered User
    Join Date
    02-11-2014
    Location
    *
    MS-Off Ver
    Excel 2013
    Posts
    17

    Re: converting letters to numbers

    To give additional example:

    Columns "G24" through "U24" should all be number "2", as is the last highest score available, per the middle chart.

    Columns "G25" through "U25" should all be number "11, and so on, until the top table is filled in. Once it is (with either letters "A,B,C,D,F"), the bottom table should reflect the corresponding number according to the middle chart. Example: if column "G4" is a "C", then column "G24 should be "12", and so forth.

    Please let me know what you think.

    Thank you.
    PC
    Attached Files Attached Files

  20. #20
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: converting letters to numbers

    I do not know if I have understood - is this correct?
    E24: =IFERROR((INDEX(E$15:E$19,MATCH(E4,$C$15:$C$19,0))&"")+0,D24)
    and fill across and down to complete table.
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  21. #21
    Registered User
    Join Date
    02-11-2014
    Location
    *
    MS-Off Ver
    Excel 2013
    Posts
    17

    Re: converting letters to numbers

    This was really close. However the "D"s and "F"s for some reason code back to the two first columns (unless I did something wrong).

    Please see the attachment for more clarity.

    I need the "D"s and "F"s to hold the value of the previous cell (example: so column "U24" has an "F" value in the top table, therefore in the bottom table it should have the value "51" because the last progressive value, in the top table, was "C" in column "T4", which provided the corresponded value of "51" in column "T24"-- same for column "N24" which should be "32" in the bottom table to correctly correlate with the top table where in column "M4" has a value of "A" so in the bottom table column "M24" has a value of "32" to correspond with the middle chart).

    Does this explain better? The formula in the bottom table needs to be able to recognize that when a value of "D" or "F" is present that the numerical value in the bottom table cannot advance beyond the last given number for that row, until a value of "A"/"B"/"C" is given in the top table (and when "A"/"B"/"C" is then given, the new value in the bottom table must correspond correctly to the middle chart).

    Thank you for you assistance.
    Attached Files Attached Files

  22. #22
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: converting letters to numbers

    The formula was for column E and across, not column D. Attachment has it as I intended - is this correct?
    Attached Files Attached Files

  23. #23
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: converting letters to numbers

    ok here is another go the table c34:h41 first column is just =IFERROR(LOOKUP(D4,{"A","B","C","D","F"},{5,4,3,2,1}),"")
    second column filled across is
    =IFERROR(IF(OR(E4={"d","f"}),D34,LOOKUP(E4,{"A","B","C","D","F"},{5,4,3,2,1})+COLUMNS($A$1:B1)*3-3),"")
    Attached Files Attached Files

+ 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] Converting letters to numbers
    By Teacher in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-11-2014, 03:11 PM
  2. converting letters to numbers
    By needexcelhelptoday in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 05-21-2013, 10:55 AM
  3. Excel 2007 : Converting Letters to Numbers
    By Kris_Ngo in forum Excel General
    Replies: 8
    Last Post: 02-23-2010, 10:39 PM
  4. Converting letters to numbers (N and Y to 0 and 1)
    By JenGraf in forum Excel General
    Replies: 3
    Last Post: 08-21-2008, 11:22 AM
  5. converting letters to numbers
    By trav in forum Excel General
    Replies: 9
    Last Post: 02-20-2006, 06:40 PM

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