Returning result between values

tintostu

New Member
Joined
Nov 11, 2005
Messages
40
Hi All

I'm trying to setup a sheet that discounts rates depending on quantity ordered therefore if the order placed is between 0 - 5 the price would be £10, 6 - 15 the price would be £9 etc etc

Please can you help

Thanks

tintostu
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Hi All

I'm trying to setup a sheet that discounts rates depending on quantity ordered therefore if the order placed is between 0 - 5 the price would be £10, 6 - 15 the price would be £9 etc etc

Please can you help

Thanks

tintostu

Create a 2-column table like below, in A:B...

0,10
6,9
16,5
60,2

Now you can invoke:

=LOOKUP(E2,$A$2:$A$10,$B$2:$B$10)

which would yield the appropriate price for the quantity in E2.

It's easier if you name the range in A QUANTITY and the range in B PRICE, so that the formula becomes:

=LOOKUP(E2,QUANTITY,PRICE)

The following would be equivalent:

=VLOOKUP(E2,$A$2:$B$10,2,1)

=INDEX(PRICE,MATCH(E2,QUANTITY,1))
 
Upvote 0

Forum statistics

Threads
1,224,618
Messages
6,179,919
Members
452,949
Latest member
beartooth91

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top