Formula Help Please

Chris McNAmee

New Member
Joined
Jan 30, 2019
Messages
7
Hi,
Hoping someone can help me with formula. I need to total pay components in one column be cost centre but the totals need to appear in a different worksheet I only want to pick up certain pay components though eg salary, Overtime etc Thinking I need an Index Match and Sumif or Sum product? any help would be appreciated.
Thanks,
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Hi,

SUMIFS is usually the best for sum with criteria, have you got some sample data you could post?
 
Upvote 0
I have some sample data but i'm unable to post the image or attached anything
[TABLE="width: 1263"]
<colgroup><col><col><col><col><col><col><col><col></colgroup><tbody></tbody>[/TABLE]
 
Upvote 0
[TABLE="width: 1263"]
<colgroup><col><col><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD] [/TD]
[TD]Sheet 1[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[/TR]
[TR]
[TD]Cost Centre[/TD]
[TD]Cost Centre Description[/TD]
[TD]Division Description[/TD]
[TD]ML4 Description[/TD]
[TD="colspan: 2"]Salary[/TD]
[TD="colspan: 2"]Overtime & Penalties[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD]Hours[/TD]
[TD]Amount[/TD]
[TD]Hours[/TD]
[TD]Amount[/TD]
[/TR]
[TR]
[TD]0000[/TD]
[TD]Corporate[/TD]
[TD]Other[/TD]
[TD]Other[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]0001[/TD]
[TD]Adelaide Bank Group[/TD]
[TD]Other[/TD]
[TD]Other[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]0002[/TD]
[TD]Integration Costs[/TD]
[TD]Other[/TD]
[TD]Other[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
[TABLE="width: 633"]
<colgroup><col><col><col span="2"></colgroup><tbody>[TR]
[TD]Sheet2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]Cost Centre[/TD]
[TD]Pay Component Code Description[/TD]
[TD]Pay Component Code[/TD]
[TD] Total [/TD]
[/TR]
[TR]
[TD]0000[/TD]
[TD]Bonus - Superable - Corporate Funded[/TD]
[TD]402.1[/TD]
[TD] $ 621.00[/TD]
[/TR]
[TR]
[TD]0000[/TD]
[TD]First Aid Allow[/TD]
[TD]411[/TD]
[TD] $ 100.47[/TD]
[/TR]
[TR]
[TD]0000[/TD]
[TD]Govt Paid Parental Bonus[/TD]
[TD]412[/TD]
[TD] $ 184,541.34[/TD]
[/TR]
[TR]
[TD]0000[/TD]
[TD]Uniform Repayment[/TD]
[TD]802.1[/TD]
[TD] $ 16,076.31[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
So total of Column D sheet 2 with cost centre code as criteria, where do you want the result to be on sheet 1?
 
Upvote 0
Can you use this?


Book1
ABCDEFGH
1Pay Component Code
2402.1
3
4Cost CentreCost Centre DescriptionDivision DescriptionML4 DescriptionSalaryOvertime & Penalties
5HoursAmountHoursAmount
60000CorporateOtherOther$621.00
70001Adelaide Bank GroupOtherOther$0.00
80002Integration CostsOtherOther$0.00
Sheet1
Cell Formulas
RangeFormula
F6=SUMIFS(Sheet2!$D$2:$D$5,Sheet2!$A$2:$A$5,Sheet1!A6,Sheet2!$C$2:$C$5,$A$2)
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,633
Latest member
DougMo

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