+ Reply to Thread
Results 1 to 3 of 3

Nested IF function, can't figure out the formula

  1. #1
    Registered User
    Join Date
    02-01-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007
    Posts
    1

    Nested IF function, can't figure out the formula

    I need to setup a nested if function in a few cells. I'm still learning excel and can't get it to compute correctly. I know it should be fairly easy. Basically the column with the conditions is a rank (1-50). Each rank has a dollar value placed on it. So I need the formula to read if condition=1 then $10, if condition=2 then $8, if condition=3 then $6, if condition = 4 then $4, if condition = 5-10 then $2, if condition equals 11-20 then $1, if condition equals 21-50 then $0.

    Can anyone help on this? Tia.

  2. #2
    Forum Contributor
    Join Date
    08-04-2011
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2007
    Posts
    109

    Re: Nested IF function, can't figure out the formula

    if value in A1:
    =IF(A1>20,0, IF(A1>10, 1, IF(A1>4, 2, IF(A1=4,4, IF(A1=3,6, IF(A1=2, 8, IF(A1=1, 10,"")))))))

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

    Re: Nested IF function, can't figure out the formula

    Alternate formula:
    =IF(A1<5,12-A1*2,LOOKUP(A1,{5,11,21},{2,1,0}))
    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)

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