+ Reply to Thread
Results 1 to 3 of 3

Issues with multiple IF functions?

  1. #1
    Registered User
    Join Date
    08-28-2011
    Location
    NSW
    MS-Off Ver
    Excel 2007
    Posts
    1

    Issues with multiple IF functions?

    So what I have is this
    =IF(F7 >15, F7*20%, IF(F7 > 1, F7 *10%, F7 *5%))

    what i'm trying to do is solve

    If a customer purchases 15 or more of any one cake they are able to get a 20% discount on the total cost of the cakes. If they buy more than 1 but less than 15 cakes the discount should be 10%. Any other cakes receive a 5% discount. Cakes are $5.

    the problem is, no matter which value i put in, it's only performing a 5% discount with the formula above, for example:
    if i put 20 in, for a total of $100, it's giving a discount of $4.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Issues with multiple IF functions?

    Hello & Welcome to the Board,

    How about this...

    =LOOKUP(F7,{1;2;15},{0.05;0.1;0.2})*F7

    This should figure out the final price...

    =F7*5-LOOKUP(F7,{1;2;15},{0.05;0.1;0.2})*F7
    Last edited by jeffreybrown; 08-28-2011 at 11:07 PM.
    HTH
    Regards, Jeff

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Issues with multiple IF functions?

    I think there's a reference missing from this formula. If F7 is the QTY, then what cell holds the "per cake" price... E7? If so, then:

    =F7 * (E7 * LOOKUP(F7, {1,2,15}, {1, 0.9, 0.8}))
    _________________
    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.6.0 RC 1