+ Reply to Thread
Results 1 to 5 of 5

Help Returning Multiple Values

  1. #1
    Registered User
    Join Date
    06-24-2009
    Location
    usa
    MS-Off Ver
    Excel 2007
    Posts
    4

    Question Help Returning Multiple Values

    i'm having trouble creating a formula for this:

    if (cell) is less than (75), return (60)
    if cell is greater than 75, but less than 101, return 80
    if cell is greater than 101, return 100

    i've tried the IF/AND statements, however, it will only return 2 results (one for false and one for true) -- i need the third result.

    which fuction should i use or how can i modify the IF statement to make this work?

  2. #2
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: Help Returning Multiple Values

    Maybe this

    =IF(A1<75,60,IF(AND(A1>=75,A1<101),80,IF(A1>=101,100)))
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Help Returning Multiple Values

    =LOOKUP(a1, {-9e+307,75,101},{60,80,100})
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    06-24-2009
    Location
    usa
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Help Returning Multiple Values

    the "LOOKUP" function worked great, i'd like to know how it works. i did have to change 75 to 76 though, so it would return 60 if the cell value was 75 - thanks

    - as for the other "IF" formula, i believe i tried that before and it wouldn't work
    Last edited by slavezero; 06-24-2009 at 06:47 PM. Reason: wrong info

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Help Returning Multiple Values

    Change 308 to 307? There's no 308 in the formula.
    if (cell) is less than (75), return (60)
    if cell is greater than 75, but less than 101, return 80
    if cell is greater than 101, return 100
    By that description the formula doesn't return anything for 75 (or 101). I assumed

    if cell < 75, return 60
    if cell >= 75 and < 101, return 80
    if cell >=101, return 100

+ 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