Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dan dan is offline
external usenet poster
 
Posts: 866
Default Sum prices 4 object made up of varying number of components

This is for drainage pit. I have been trying to incorporate IF and
sumproduct(-- statements and I can't seem to get it right. (Maybe I need to
write a program?)

I have a large number of pits which will be made up of a combination of a
base piece and a number of riser components to make up the height required.
The minimum width of pit is determined by the largest pipe to it, according
to; Pipe Dia<=450 then min. width=670 and Pipe Dia450 then min.
width=670+200(mm).

Prices are for pieces in standard sizes, as follows.
750 (pit width):
Base=900mm(depth)=$a
Risers=600mm=$b
Risers=300mm=$c
Risers=150mm=$d

900 (pit width):
Base=1200(depth)=$w
Risers=600mm=$x
Risers=300mm=$y
Risers=150mm=$z
etc.

All bases are either 900 or 1200 deep.
All pits will require a base and at least 1 riser (as all pit depths greater
than 1200mm (presumably easier then to leave out base in pit height calc)
Spreadsheet has been set up accordingly.

Eg. Pit depth = 1600mm and largest pipe = 500mm.
Therefore, need:
- pit with greater than 700mm so use 750 pit.
- 1 base+2 risers (900+600+1500=1650)
- output price (one pit) = $(a+b+d)

I hope this makes sense, let me know if you need any more info.
I know this is longwinded, but any help would be greatly appreciated; I've
seen the answers on this site and I'm sure one of you can do this!




  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,480
Default Sum prices 4 object made up of varying number of components

Hi Dan

Here is one solution.
Create 2 tables (I used A1:B5 and D1:E5 - but they could be on a separate
sheet if required)
List1
0
150 75
300 120
600 180
900 250

i.e make them in ascending size, but start with 0
Do the same for List2 but obviously in each case you your prices.

InsertNameDefine
Name List1
Refers to =A1:B5
Name List2
Refers to =D1:E5

Put your inputs for Depth and Pipe size in A11 and B11 respectively
InsertnameDefine
Name Depth
Refers to =$A$11
Name Diameter
Refers to =$B$11
Name uselist
Refers to =IF diameter450,List2,List1)

In A15 enter
=IF(CEILING(depth,150)-SUM($A$14:$A14)0,
VLOOKUP(CEILING(depth,150)-SUM($A$14:$A14),uselist,COLUMN()),"")
Copy across to B15
Copy A15:B15 down through cells A16:A25

The Total cost is =SUM(B15:B20)

You could have the 2 lists and the calculation section on another page, just
change the cell references in the Named ranges to match.




--
Regards
Roger Govier

"Dan" wrote in message
...
This is for drainage pit. I have been trying to incorporate IF and
sumproduct(-- statements and I can't seem to get it right. (Maybe I need
to
write a program?)

I have a large number of pits which will be made up of a combination of a
base piece and a number of riser components to make up the height
required.
The minimum width of pit is determined by the largest pipe to it,
according
to; Pipe Dia<=450 then min. width=670 and Pipe Dia450 then min.
width=670+200(mm).

Prices are for pieces in standard sizes, as follows.
750 (pit width):
Base=900mm(depth)=$a
Risers=600mm=$b
Risers=300mm=$c
Risers=150mm=$d

900 (pit width):
Base=1200(depth)=$w
Risers=600mm=$x
Risers=300mm=$y
Risers=150mm=$z
etc.

All bases are either 900 or 1200 deep.
All pits will require a base and at least 1 riser (as all pit depths
greater
than 1200mm (presumably easier then to leave out base in pit height calc)
Spreadsheet has been set up accordingly.

Eg. Pit depth = 1600mm and largest pipe = 500mm.
Therefore, need:
- pit with greater than 700mm so use 750 pit.
- 1 base+2 risers (900+600+1500=1650)
- output price (one pit) = $(a+b+d)

I hope this makes sense, let me know if you need any more info.
I know this is longwinded, but any help would be greatly appreciated; I've
seen the answers on this site and I'm sure one of you can do this!




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I make a chart take into account a varying number of rows? Leo Charts and Charting in Excel 1 June 19th 08 01:44 PM
allocate shipping and handling to varying number of items in an or orchid11652 Excel Discussion (Misc queries) 0 March 4th 08 01:06 AM
How: List in col D whichever number greater; B4 or varying # in Co Building Model Sailboats is great fun Excel Discussion (Misc queries) 3 February 9th 06 12:41 AM
Use a multiplier to change List Prices to Net prices Dangada Excel Worksheet Functions 1 July 6th 05 06:31 AM
VARYING number of sheets in EXCEL Darrin New Users to Excel 3 February 22nd 05 03:07 PM


All times are GMT +1. The time now is 04:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"