+ Reply to Thread
Results 1 to 5 of 5

Thread: Multiple variable IF

  1. #1
    Registered User
    Join Date
    09-07-2010
    Location
    overland park, kansas
    MS-Off Ver
    Excel 2010
    Posts
    1

    Smile Multiple variable IF

    Please see attached.

    I have a pay plan that I need to track.

    Basically if R7 is 50%-54% I need r15 to equal L101*25
    If R7 is 55%-59% I need r15 to equal L101*50
    If R7 is 60%-100% I need R15 to equal L101*75

    Any help on the formula would be greatly appreciated.
    Attached Files Attached Files

  2. #2
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,223

    Re: Multiple variable IF

    Try this formula in R15:

    =L101 * LOOKUP(R7,{0,0.5,0.55,0.6},{0,25,50,75})
    Last edited by JBeaucaire; 09-07-2010 at 05:13 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  3. #3
    Forum Moderator Richard Buttrey's Avatar
    Join Date
    02-15-2008
    Location
    Grappenhall, UK
    MS-Off Ver
    Excel for Windows & Mac - all versions.
    Posts
    6,566

    Re: Multiple variable IF

    Hi,

    Presumably

    =IF(AND(R7>=50%,R7<=54%),L101*25,IF(AND(R7>=55%,R7<=59%),L101*50,IF(AND(R7>=60%,R7<=100%),L101*75,"")))
    returns null if R7 <50 or >100

    HTH
    Richard Buttrey

    If this was useful then please rate it appropriately.

    Click the small star icon at the bottom left of my post.

  4. #4
    Forum Moderator Richard Buttrey's Avatar
    Join Date
    02-15-2008
    Location
    Grappenhall, UK
    MS-Off Ver
    Excel for Windows & Mac - all versions.
    Posts
    6,566

    Re: Multiple variable IF

    Hi JB,

    Small typo but neat formula

    =L101 * LOOKUP(R7,{0,0.5,0.55,0.6},{0,25,50,75}
    Rgds
    Richard Buttrey

    If this was useful then please rate it appropriately.

    Click the small star icon at the bottom left of my post.

  5. #5
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,223

    Re: Multiple variable IF

    Fixed...thanks for the tip, my bad!
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

+ 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.2.0