Auto-Calculate price based on width x height

GuybrushThreep

New Member
Joined
Jul 5, 2011
Messages
5
G'Day! I'm trying to create a excel sheet which will automatically calculate a price based on a given width or height. At the moment we calculate price by manually looking in a price book which has plenty of rows and columns and prices. I want to simplify this by simply entering the dimensions so it automatically calculates price based on the dimensions entered.

E.G.
you enter width of 1500mm in one field, then 900mm in another field, and next to that it automatically shows the price (based on some price list on another spreadsheet or workbook).

Any Help or Advice?
Cheers Mates!
 
Hi, I've set up my tables and data, and everything works, but there is 1 problem. The width's increment in different sizes, for example:

WIDTH = 345mm | 575mm | 1610mm

IF I select a width of say, 345 and a height of 500, THEN it shows up with the appropriate price. However, IF I choose a width of 344 and a height of 500, THEN I get a #N/A in the price field.

Thats because I'm comparing JUST the width to the height, and IF its not 100% same then its a problem. I need to work out a solution that: if I enter a value in-between, then it will round the price up to the next price bracket. Make Sense?

Any suggestions on how I can do that?
 
Upvote 0

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Hi, I've set up my tables and data, and everything works, but there is 1 problem. The width's increment in different sizes, for example:

WIDTH = 345mm | 575mm | 1610mm

IF I select a width of say, 345 and a height of 500, THEN it shows up with the appropriate price. However, IF I choose a width of 344 and a height of 500, THEN I get a #N/A in the price field.

Thats because I'm comparing JUST the width to the height, and IF its not 100% same then its a problem. I need to work out a solution that: if I enter a value in-between, then it will round the price up to the next price bracket. Make Sense?

Any suggestions on how I can do that?


Hi folks, sorry for resurrecting an ancient post but this is exactly my issue today. Can anyone help to resolve it?
 
Upvote 0
Something like:


Excel 2010
ABCDEFGHIJK
110002000300040005000
2Item #WidthHeightPrice500$20.00$30.00$40.00$50.00$60.00
31232188860600$30.00$40.00$50.00$60.00$70.00
4700$40.00$50.00$55.00$70.00$80.00
5800$50.00$60.00$70.00$90.00$100.00
6900$60.00$80.00$100.00$120.00$160.00
Sheet1
Cell Formulas
RangeFormula
D3=VLOOKUP(C3,$F$2:$K$6,LOOKUP(B3,$G$1:$K$1,COLUMN($G$1:$K$1)-5))


If you want to round in the other direction shift/change the corresponding prices, starting from n=0.
 
Upvote 0
This works too:


Excel 2010
ABCDEFGHIJK
110002000300040005000
2Item #WidthHeightPrice500$20.00$30.00$40.00$50.00$60.00
3121187160600$30.00$40.00$50.00$60.00$70.00
4700$40.00$50.00$55.00$70.00$80.00
5800$50.00$60.00$70.00$90.00$100.00
6900$60.00$80.00$100.00$120.00$160.00
Sheet1
Cell Formulas
RangeFormula
D3=SUMPRODUCT(--($G$1:$K$1=CEILING(B3,1000))*--($F$2:$F$6=CEILING(C3,100))*$G$2:$K$6)
 
Upvote 0
Thanks @sheetspread - I can't seem to get your last example to work, I get a #VALUE ! error?

What I'm trying to do (ultimately) is select the next price range if you're over the figures shown in purple. So selecting 1000 width x 500 height would give $20 (Correct), but if I selected 1001 width x 501 height I'd want to show $40

Hope that makes sense?
 
Upvote 0
It worked in my test:


Excel 2010
ABCDEFGHIJK
110002000300040005000
2Item #WidthHeightPrice500$20.00$30.00$40.00$50.00$60.00
31100050020600$30.00$40.00$50.00$60.00$70.00
4100150140700$40.00$50.00$55.00$70.00$80.00
5800$50.00$60.00$70.00$90.00$100.00
6900$60.00$80.00$100.00$120.00$160.00
Sheet1
Cell Formulas
RangeFormula
D3=SUMPRODUCT(--($G$1:$K$1=CEILING(B3,1000))*--($F$2:$F$6=CEILING(C3,100))*$G$2:$K$6)
D4=SUMPRODUCT(--($G$1:$K$1=CEILING(B4,1000))*--($F$2:$F$6=CEILING(C4,100))*$G$2:$K$6)
 
Upvote 0
If your data was downloaded then you might have to convert it from numbers stored as text to actual numbers, which is easy.
 
Upvote 0
Hi All,

Trying my luck here as this is an old thread but 99% of it is relevant for me. The only trouble I'm having is my width and height sizes vary as we sell made-to-measure. Essentially the measurements are in mms and I'm wanting use the sheets for quoting. How do I change the column names to reflect a range of numbers? ie 0-1000, 1001-1100, 1101-1200 etc

Appreciate any help
 
Upvote 0

Forum statistics

Threads
1,223,897
Messages
6,175,269
Members
452,628
Latest member
dd2

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