+ Reply to Thread
Results 1 to 4 of 4

Make a Cell Output a Letter

  1. #1
    Registered User
    Join Date
    07-15-2011
    Location
    Shanghai
    MS-Off Ver
    Excel 2010
    Posts
    2

    Make a Cell Output a Letter

    I'm currently working on a basic evaluation survey on excel. I've set it up so that one can input letter grades for each aspect of the survey. The letter grades are converted into numbers, and added up to form a total score. My question is, how do I make the sheet output a letter to the user, that is determined by the total score? (ie. 90 and above is an A, 80 and above is a B, etc.) Any assistance would be appreciated.

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Make a Cell Output a Letter

    Something like this:

    =LOOKUP(A1,{0,40,60,80,90},{"E","D","C","B","A"})

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Registered User
    Join Date
    07-15-2011
    Location
    Shanghai
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Make a Cell Output a Letter

    What about if I want a range of values to display one letter? ie. from 40 to 60 is an "E" ranking.

  4. #4
    Forum Moderator Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,881

    Re: Make a Cell Output a Letter

    The numbers in the first array of values are the lower limit of each range. Based on the formula given, the ranges are

    0-39 returns E
    40-59 returns D
    60-79 returns C
    80-89 returns B
    90+ returns A

+ 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