+ Reply to Thread
Results 1 to 3 of 3

Nested formula with some greaterthan/less than calculations

  1. #1
    Registered User
    Join Date
    07-03-2013
    Location
    Greensboro, NC
    MS-Off Ver
    Excel 2010
    Posts
    25

    Nested formula with some greaterthan/less than calculations

    So, I have a field that returns a number. I need a formula that will return text based on that number:

    less than 30 = poor
    less than 50 = below average
    50 to 60 = normal
    60+ = above average
    70+ = excellent

    Thoughts? When I wrote it out, it would work for anything less than 50, but for anything more it always returns "normal". Got somthing to do with how it reads the > sign, I think, but I'm not sure.

    Thanks!

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Nested formula with some greaterthan/less than calculations

    Try LOOKUP

    First, build a lookup table, in say E1:F5
    E1:E5 = 0 30 50 60 70
    F1:F5 = poor | below average | normal etc...

    Then use
    =LOOKUP(A1,$E$1:$E$5)
    A1 is your field that returns a number.

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Nested formula with some greaterthan/less than calculations

    =LOOKUP(A1,{0,30,50,61,71},{"poor","below average","normal","above average","excellent"})
    Life's a spreadsheet, Excel!
    Say thanks, Click *

+ 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