+ Reply to Thread
Results 1 to 3 of 3

Help with nested IF functions. Help -- I'm so confused.

  1. #1
    Registered User
    Join Date
    07-19-2007
    Posts
    4

    Unhappy Help with nested IF functions. Help -- I'm so confused.

    I've been working on this for what seems like hours (probably more like just 1 hour, but time flies....)

    I have a worksheet that I'm using to track sales for a certain product. Buyers get discounts for buying larger amounts. If they buy 1-10 items, the cost is $19.99 per. If they buy 11-25, it's 18.99 per; and if they buy more than 25 items, the price is $17.99 per.

    Column C is quantity purchased and I want Column D to automatically fill in the appropriate price per each.

    So: IF
    C28<11, then 19.99
    C28>10 AND <25, then 18.99
    C28>25 then 17.99,

    I've tried many different forumlas, such as:

    =IF(((C28<11),19.99,IF((C28>10)AND(C28<25)),18.99,IF((C28>25),17.99))))

    And nothing works. I'm almost positive I'm messing up in the second IF value (more than 10, less than 25) and/or with matching my parentheses.

    Can someone help me come up with a forumla that will work? I'm really very frustrated at this point.

    GrannyGamer (Barbara)
    Last edited by grannygamer; 07-19-2007 at 06:36 PM.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Try a traditional IF formula.....

    =IF(C28="","",IF(C28>25,17.99,IF(C28>10,18.99, 19.99)))

    or even, to give the same result....

    =IF(C28="","",LOOKUP(C28,{0,11,26;20,19,18})-0.01)

  3. #3
    Registered User
    Join Date
    07-19-2007
    Posts
    4
    Daddylonglegs,

    WOW ... you did in a matter of minutes what I've been struggling with for hours. I entered it and it worked perfectly.

    I can't thank you enough!!

    GrannyGamer

+ 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