+ Reply to Thread
Results 1 to 11 of 11

Placing Unit Price into Pricing Brackets - Use IFSTATEMENTS?

  1. #1
    Registered User
    Join Date
    02-16-2014
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    4

    Placing Unit Price into Pricing Brackets - Use IFSTATEMENTS?

    Hello

    I would like a formula which will display certain price bands depending on what the value of a cell is.

    I have column A titled "Average Unit Price" displaying the average unit price.

    Column B is titled "Price band category", and depending on what value is in Column A, i would like column B to display the following price bands -

    $0 - $99
    $100 - $299
    $300 - $499
    $500+.

    I have not achieved much despite spending some time on this and i am a little puzzled as to the best function to actually use?

    I can only work out a small part of the formula which will only display the first price band category using a basic IF Statement as follows:

    =IF(A1<=99,"$0 - $99","")

    The above formula displays $0 - $99 if the average unit price in Column A is between the two numbers which is what i want, but how would i add the further price bands? every time I attempt this Excel shouts at me saying there are too many arguments.

    Can anyone please offer assistance? what would be the best function to use? How can i add further arguments to an IF statement without making Excel angry? is it possible for 4 different outcomes to happen using IF statements?

    Any help is massively appreciated.

    Regards

    Lewis

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Placing Unit Price into Pricing Brackets - Use IFSTATEMENTS?

    $0 - $99
    $100 - $299
    $300 - $499
    $500+.

    if(A1>=500, "$500+", IF( A1>=300 , "$300 - $499", IF( A1>=100, "$100 - $299", "$0 - $99")))
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Placing Unit Price into Pricing Brackets - Use IFSTATEMENTS?

    =IF(A1="","",LOOKUP(A1,{0,100,300,500},{"$0-$99","$100-$299","$300-$499","$500+"}))
    99.99 will show up as $0-$99 is that what you want?
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Placing Unit Price into Pricing Brackets - Use IFSTATEMENTS?

    VLOOKUP is your friend - see if the attached does what you want. The table used for the VLOOKUP query could be hidden or placed on a separate sheet.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-16-2014
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Placing Unit Price into Pricing Brackets - Use IFSTATEMENTS?

    Etaf and Martindwilson, both your formulas work 100% the way i want them too, thank you so much for your help.

    Thank you AliGW for your assistance, its not exactly what i was looking for but you have provided a different point of view and i am very grateful for your input. It looks like I have some learning to do!

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Placing Unit Price into Pricing Brackets - Use IFSTATEMENTS?

    with that table you dont need vlookup just
    =LOOKUP(A2,$F$2:$G$5)

  7. #7
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Placing Unit Price into Pricing Brackets - Use IFSTATEMENTS?

    your welcome
    if my assistance has helped, and only if you wish to , there is a reputation icon * on the left hand side - you can add to my reputation here

  8. #8
    Registered User
    Join Date
    02-16-2014
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Placing Unit Price into Pricing Brackets - Use IFSTATEMENTS?

    Done,

    Sorry to be a pain but I just want to get this right in my head, in your formula have you made Excel look at the next argument if the previous statement was false? so it checks the cell and =if(A1>=500, it will display the price band "$500+", if not it goes to the next argument =IF( A1>=300 , "$300 - $499" and so on?

    I hope that makes sense?

  9. #9
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Placing Unit Price into Pricing Brackets - Use IFSTATEMENTS?

    yep thats correct
    it does the first test and then if false does the 2nd test in order entered

    then when it reaches
    IF( A1>=100, "$100 - $299", "$0 - $99"))
    if its not greater than or equal = 100 then it must be below as we have checked all other possibilities

    you could have started at the end of the scale
    so

    =IF( A1 < 100, "$0 - $99", IF( A1 < 300, "$100 - $299", IF( A1 < 500 , "$300 - $499" , "$500+" ) ) )

  10. #10
    Registered User
    Join Date
    02-16-2014
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Placing Unit Price into Pricing Brackets - Use IFSTATEMENTS?

    brilliant,

    I forgot to mention on my last post that if all possibilities have been checked then "$0 - $99" will be displayed, so the fact you have said that backs up what i was thinking! very much appreciate the confirmation, Excel can be a right madam when she wants to be.

    Thanks for your efforts everyone

  11. #11
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Placing Unit Price into Pricing Brackets - Use IFSTATEMENTS?

    your welcome

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Determining unit price from a pricing matrix...
    By pmantey in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-17-2014, 10:34 PM
  2. Replies: 3
    Last Post: 01-03-2013, 12:32 AM
  3. Replies: 3
    Last Post: 12-27-2012, 01:20 PM
  4. Replies: 4
    Last Post: 08-15-2012, 09:49 AM
  5. Pricing Brackets
    By simon238 in forum Excel General
    Replies: 3
    Last Post: 07-20-2011, 05:14 PM

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