I am trying to create a summary table of expenses for a massive project for 35 people (each assigned a "type"). My data set is:
[TABLE="class: grid, width: 600"]
<tbody>[TR]
[TD]Type
[/TD]
[TD]Pay Rate
[/TD]
[TD]Days
[/TD]
[TD]Hotel
[/TD]
[TD]Per Diem
[/TD]
[TD]total
[/TD]
[/TR]
[TR]
[TD]1099
[/TD]
[TD]15.00
[/TD]
[TD]15
[/TD]
[TD]0
[/TD]
[TD]50
[/TD]
[TD]=((pay*8)*days)+hotel+per diem -- $1850
[/TD]
[/TR]
[TR]
[TD]1099
[/TD]
[TD]18.00
[/TD]
[TD]20
[/TD]
[TD]500
[/TD]
[TD]50
[/TD]
[TD]$3430
[/TD]
[/TR]
[TR]
[TD]Internal
[/TD]
[TD]35.00
[/TD]
[TD]10
[/TD]
[TD]200
[/TD]
[TD]50
[/TD]
[TD]$3050
[/TD]
[/TR]
[TR]
[TD]Vendor
[/TD]
[TD]100.00
[/TD]
[TD]10
[/TD]
[TD]0
[/TD]
[TD]50
[/TD]
[TD].....
[/TD]
[/TR]
</tbody>[/TABLE]
My summary table is:
[TABLE="class: grid, width: 600"]
<tbody>[TR]
[TD]Type
[/TD]
[TD]Pay
[/TD]
[TD]Hotel
[/TD]
[TD]Per Diem
[/TD]
[TD]Total
[/TD]
[/TR]
[TR]
[TD]1099
[/TD]
[TD]$5280
[/TD]
[TD]sumifs()
[/TD]
[TD]sumifs()
[/TD]
[TD]sum(b2:d2)
[/TD]
[/TR]
[TR]
[TD]Internal
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Vendor
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The hotel and Per Diem are easily done with sumifs(). I'm running into an issue with the types because each type has to have the individual row calculated then totaled.
It would be something like sum( (b2*8)*c2), (b3*8)*c3), etc. ) but I don't want to hard code it - more are being added everyday, so I'd like to have a simple formula to find, calculate and add everything.
Thanks for any ideas.
Josh
[TABLE="class: grid, width: 600"]
<tbody>[TR]
[TD]Type
[/TD]
[TD]Pay Rate
[/TD]
[TD]Days
[/TD]
[TD]Hotel
[/TD]
[TD]Per Diem
[/TD]
[TD]total
[/TD]
[/TR]
[TR]
[TD]1099
[/TD]
[TD]15.00
[/TD]
[TD]15
[/TD]
[TD]0
[/TD]
[TD]50
[/TD]
[TD]=((pay*8)*days)+hotel+per diem -- $1850
[/TD]
[/TR]
[TR]
[TD]1099
[/TD]
[TD]18.00
[/TD]
[TD]20
[/TD]
[TD]500
[/TD]
[TD]50
[/TD]
[TD]$3430
[/TD]
[/TR]
[TR]
[TD]Internal
[/TD]
[TD]35.00
[/TD]
[TD]10
[/TD]
[TD]200
[/TD]
[TD]50
[/TD]
[TD]$3050
[/TD]
[/TR]
[TR]
[TD]Vendor
[/TD]
[TD]100.00
[/TD]
[TD]10
[/TD]
[TD]0
[/TD]
[TD]50
[/TD]
[TD].....
[/TD]
[/TR]
</tbody>[/TABLE]
My summary table is:
[TABLE="class: grid, width: 600"]
<tbody>[TR]
[TD]Type
[/TD]
[TD]Pay
[/TD]
[TD]Hotel
[/TD]
[TD]Per Diem
[/TD]
[TD]Total
[/TD]
[/TR]
[TR]
[TD]1099
[/TD]
[TD]$5280
[/TD]
[TD]sumifs()
[/TD]
[TD]sumifs()
[/TD]
[TD]sum(b2:d2)
[/TD]
[/TR]
[TR]
[TD]Internal
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Vendor
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The hotel and Per Diem are easily done with sumifs(). I'm running into an issue with the types because each type has to have the individual row calculated then totaled.
It would be something like sum( (b2*8)*c2), (b3*8)*c3), etc. ) but I don't want to hard code it - more are being added everyday, so I'd like to have a simple formula to find, calculate and add everything.
Thanks for any ideas.
Josh