You are here:

# Excel/Formula

Question
I need to create a formula to create pricing for a couple different scenarios ex.

I have 5 or less I need the price to be \$150 if I have 6-10 I need to formula to reflect the price of \$175.

Basically the cost is for 5 or less, then 6-10 then, 11-15 items.  I just want to make the cost see the greater than/ less than count and multiply at the cost for that amount.  Any help would be greatly appreciated.

Two methods spring to mind - with a three way cost, a nested if statement would be one way, but do it largest first smallest last

=if(quantity>15,cost3,if(quantity>10,cost2,if(quantity>5,cost3,cost4)))

Alternatively, you could use vlookup with the match value set to TRUE.
This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here

#### Aidan Heritage

##### Expertise

I have provided first hand support since `95 for Microsoft Office majoring in Word and Excel - support for all versions from 2 onwards. I'm based in the UK, so please allow for time differences when asking me questions from other parts of the world!

##### Experience

My background is in the insurance industry and call centre areas, but have been called upon to provide many varied solutions.

Education/Credentials
I'm educated to UK A level standard, but as I left school some 30 years ago that is rather irrelevent - university of life has provided more of a background!