SOLVED

Sum Pivot Table Results With Other Cells & Show Growth in Headcount in Another Pivot

%3CLINGO-SUB%20id%3D%22lingo-sub-2373213%22%20slang%3D%22en-US%22%3ESum%20Pivot%20Table%20Results%20With%20Other%20Cells%20%26amp%3B%20Show%20Growth%20in%20Headcount%20in%20Another%20Pivot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2373213%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20raw%20data%20that%20I%20summarize%20in%20a%20Pivot%20Table.%20I%20then%20have%20a%20table-like%20area%20for%20inputs%20for%20new%20persons%20coming%20in%20(peach%20area%20for%20inputs%20and%20formulas%20for%20values).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1)%20I%20currently%20use%20a%20SUMIFS%20(example%20uses%20SUMIF%20but%20real%20data%20uses%20multiple%20criteria.%20to%20add%20appropriate%20department%20with%20possible%20inputted%20forecast%20value%20to%20sum%20a%20total.%20Is%20there%20a%20way%20to%20add%20these%20in%20an%20easier%20way%3F%20I%20currently%20am%20going%20through%20the%20painstaking%20process%20of%20formatting%2Fmoving%20the%20sum%20range%20and%20criteria%20ranges%20around.%20How%20can%20I%20sum%20this%20Pivot%20Table%20and%20input%20table%20together%20easier%3F%20Should%20I%20make%20a%20second%20Pivot%20and%20attempt%20to%20sum%20the%20two%20Pivots%20that%20way%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E2)%20I%20also%20want%20to%20use%20a%20Pivot%20on%20the%20input%20table%20to%20show%20discrete%20values%20of%20when%20the%20count%20of%20people%20grows.%20I%20have%20it%20showing%20the%20salary%20when%20the%20person%20starts%20but%20not%20sure%20how%20to%20make%20it%20show%20a%201%20when%20the%20person%20starts.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2373213%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2373454%22%20slang%3D%22en-US%22%3ERe%3A%20Sum%20Pivot%20Table%20Results%20With%20Other%20Cells%20%26amp%3B%20Show%20Growth%20in%20Headcount%20in%20Another%20Pivot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2373454%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F830570%22%20target%3D%22_blank%22%3E%40Jpalaci1%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20Q12%3A%3C%2FP%3E%0A%3CP%3E%3DSUMIFS(Table1%5B%5BAmount%20%5D%3A%5BAmount%20%5D%5D%2CTable1%5B%5BDepartment%5D%3A%5BDepartment%5D%5D%2C%24P12%2CTable1%5B%5BMonth%5D%3A%5BMonth%5D%5D%2CQ%2411)%2BSUMPRODUCT(%24Q%243%3A%24AB%245%2C(%24N%243%3A%24N%245%3D%24P12)*(%24Q%242%3A%24AB%242%3DQ%2411))%3C%2FP%3E%0A%3CP%3EFill%20down%2C%20then%20to%20the%20right%20(or%20vice%20versa).%3C%2FP%3E%0A%3CP%3ENote%20that%20the%20total%20in%20Q19%20is%20now%20correct.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2374466%22%20slang%3D%22en-US%22%3ERe%3A%20Sum%20Pivot%20Table%20Results%20With%20Other%20Cells%20%26amp%3B%20Show%20Growth%20in%20Headcount%20in%20Another%20Pivot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2374466%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F830570%22%20target%3D%22_blank%22%3E%40Jpalaci1%3C%2FA%3E%26nbsp%3BI%20believe%20you%20make%20it%20more%20difficult%20than%20needed.%20You%20start%20with%20raw%20data%20for%20monthly%20salaries%2C%20for%20the%20first%204%20months.%20Then%2C%20you%20have%20yearly%20salaries%20for%20%22newcomers%22%20that%20came%20in%20during%20the%20first%20four%20months%2C%20but%20they%20are%20NOT%20in%20the%20raw%20data%20although%20it%20covers%20the%20same%20period.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhy%20not%20expand%20the%20raw%20data%20table%20with%20monthly%20data%20for%20the%20%22newcomers%22%20as%20demonstrated%20in%20the%20attached%20file.%20The%20pivot%20table%20will%20then%20automatically%20summarise%20the%20first%204%20months%20correctly.%20With%20regard%20to%20head%20count%2C%20you%20may%20count%20names%20in%20stead%20of%20summing%20amounts.%20Assuming%20that%20the%20name%20is%20a%20unique%20identifier%20for%20employees.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAdd%20some%20sub-totals%20to%20the%20pivot%20tables%20to%20get%20department%20totals%20whilst%20maintaining%20full%20detail%20on%20the%20employee%20level%2C%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2379947%22%20slang%3D%22en-US%22%3ERe%3A%20Sum%20Pivot%20Table%20Results%20With%20Other%20Cells%20%26amp%3B%20Show%20Growth%20in%20Headcount%20in%20Another%20Pivot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2379947%22%20slang%3D%22en-US%22%3EThank%20you%20for%20the%20reply.%20You%E2%80%99re%20right%20where%20I%20was%20overthinking.%3C%2FLINGO-BODY%3E
Contributor

I have raw data that I summarize in a Pivot Table. I then have a table-like area for inputs for new persons coming in (peach area for inputs and formulas for values).

 

1) I currently use a SUMIFS (example uses SUMIF but real data uses multiple criteria. to add appropriate department with possible inputted forecast value to sum a total. Is there a way to add these in an easier way? I currently am going through the painstaking process of formatting/moving the sum range and criteria ranges around. How can I sum this Pivot Table and input table together easier? Should I make a second Pivot and attempt to sum the two Pivots that way?

 

2) I also want to use a Pivot on the input table to show discrete values of when the count of people grows. I have it showing the salary when the person starts but not sure how to make it show a 1 when the person starts.

3 Replies
best response confirmed by Jpalaci1 (Contributor)
Solution

@Jpalaci1 

In Q12:

=SUMIFS(Table1[[Amount ]:[Amount ]],Table1[[Department]:[Department]],$P12,Table1[[Month]:[Month]],Q$11)+SUMPRODUCT($Q$3:$AB$5,($N$3:$N$5=$P12)*($Q$2:$AB$2=Q$11))

Fill down, then to the right (or vice versa).

Note that the total in Q19 is now correct.

@Jpalaci1 I believe you make it more difficult than needed. You start with raw data for monthly salaries, for the first 4 months. Then, you have yearly salaries for "newcomers" that came in during the first four months, but they are NOT in the raw data although it covers the same period.

 

Why not expand the raw data table with monthly data for the "newcomers" as demonstrated in the attached file. The pivot table will then automatically summarise the first 4 months correctly. With regard to head count, you may count names in stead of summing amounts. Assuming that the name is a unique identifier for employees.

 

Add some sub-totals to the pivot tables to get department totals whilst maintaining full detail on the employee level,

Thank you for the reply. You’re right where I was overthinking.