Hi all,
I've been stuck on an Excel problem for a few hours now, I'm basically creating a template cost sheet for my company but on one of the sheets that calculates machining hours and costs I cannot get a column to add all of the other columns up.
Basically (trying to keep this as simple as possible) each line has up to 4 machining operations as follows:
At the end of each line I need a total box, however as the user could leave some cells empty I need the 'total' formula to work regardless of whether cells are populated.
I've added an excerpt from the sheet below which will hopefully get across what I'm doing, I can send this via email if required too.
I can get one set of operations to work fine by using this formula:
=IF(AND(P6="",Q6="",R6=""),"",IF(Q6="",SUM(P6*R6),IF(R6="",SUM(P6*Q6),SUM(P6*Q6*R6))))
The question is how do I extend this to the other operation groups? Every time I try basically extending this formula it gives me the too many arguments error.
I'd greatly appreciate anyones assistance with this before I pull my hair out.
Thanks in advance
[TABLE="width: 2193"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD="colspan: 4"]Operation 1[/TD]
[TD="colspan: 4"]Operation 2[/TD]
[TD="colspan: 4"]Operation 3[/TD]
[TD="colspan: 4"]Operation 4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Line[/TD]
[TD]Part Description[/TD]
[TD]Operation Name[/TD]
[TD]Hourly Rate[/TD]
[TD]Machining Hours[/TD]
[TD]Manual Multiplier[/TD]
[TD]Operation Name[/TD]
[TD]Hourly Rate[/TD]
[TD]Machining Hours[/TD]
[TD]Manual Multiplier[/TD]
[TD]Operation Name[/TD]
[TD]Hourly Rate[/TD]
[TD]Machining Hours[/TD]
[TD]Manual Multiplier[/TD]
[TD]Operation Name[/TD]
[TD]Hourly Rate[/TD]
[TD]Machining Hours[/TD]
[TD]Manual Multiplier[/TD]
[TD]Total In-Process Cost[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD][/TD]
[TD]Boring[/TD]
[TD="align: right"]£77.94[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]10[/TD]
[TD]Fitting[/TD]
[TD="align: right"]£48.64[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]10[/TD]
[TD]Boring[/TD]
[TD="align: right"]£77.94[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]10[/TD]
[TD]Boring[/TD]
[TD="align: right"]£77.94[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]£7,794[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody><colgroup><col><col><col><col><col span="2"><col><col><col span="2"><col><col><col span="2"><col><col><col span="2"><col></colgroup>[/TABLE]
I've been stuck on an Excel problem for a few hours now, I'm basically creating a template cost sheet for my company but on one of the sheets that calculates machining hours and costs I cannot get a column to add all of the other columns up.
Basically (trying to keep this as simple as possible) each line has up to 4 machining operations as follows:
- Each operation consists of an operation name in the first column selected from a dropdown list
- The second column is the hourly rate which is auto populated from the first column depending on the operation via a lookup formula
- The third column is manual entry, and is the amount of machining hours
- The fourth column is something I've just added which is where my problems have started, i've just called it manual multiplier for now and it's a manual entry box, essentially it just multiplies the sencond and third column
At the end of each line I need a total box, however as the user could leave some cells empty I need the 'total' formula to work regardless of whether cells are populated.
I've added an excerpt from the sheet below which will hopefully get across what I'm doing, I can send this via email if required too.
I can get one set of operations to work fine by using this formula:
=IF(AND(P6="",Q6="",R6=""),"",IF(Q6="",SUM(P6*R6),IF(R6="",SUM(P6*Q6),SUM(P6*Q6*R6))))
The question is how do I extend this to the other operation groups? Every time I try basically extending this formula it gives me the too many arguments error.
I'd greatly appreciate anyones assistance with this before I pull my hair out.
Thanks in advance
[TABLE="width: 2193"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD="colspan: 4"]Operation 1[/TD]
[TD="colspan: 4"]Operation 2[/TD]
[TD="colspan: 4"]Operation 3[/TD]
[TD="colspan: 4"]Operation 4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Line[/TD]
[TD]Part Description[/TD]
[TD]Operation Name[/TD]
[TD]Hourly Rate[/TD]
[TD]Machining Hours[/TD]
[TD]Manual Multiplier[/TD]
[TD]Operation Name[/TD]
[TD]Hourly Rate[/TD]
[TD]Machining Hours[/TD]
[TD]Manual Multiplier[/TD]
[TD]Operation Name[/TD]
[TD]Hourly Rate[/TD]
[TD]Machining Hours[/TD]
[TD]Manual Multiplier[/TD]
[TD]Operation Name[/TD]
[TD]Hourly Rate[/TD]
[TD]Machining Hours[/TD]
[TD]Manual Multiplier[/TD]
[TD]Total In-Process Cost[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD][/TD]
[TD]Boring[/TD]
[TD="align: right"]£77.94[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]10[/TD]
[TD]Fitting[/TD]
[TD="align: right"]£48.64[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]10[/TD]
[TD]Boring[/TD]
[TD="align: right"]£77.94[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]10[/TD]
[TD]Boring[/TD]
[TD="align: right"]£77.94[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]£7,794[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody><colgroup><col><col><col><col><col span="2"><col><col><col span="2"><col><col><col span="2"><col><col><col span="2"><col></colgroup>[/TABLE]