Sumif in Pivot Table Query

mart_mrexcel

Active Member
Joined
Aug 23, 2008
Messages
310
Office Version
  1. 365
Platform
  1. Windows
I have a table for Employee promotion and i inserted a pivot table having the total heads for each department. My Query is, How can i add a formula in the pivot to insert a column Promotion YES and Promotion Column and sum the total of YES or NO in each Department.

I tried using "=if([Promote Yes/No]="Yes",sum([Promote Yes/No]),0)" but its an error

(Note: i click the "Add this data to the Data Model" when inserting pivot)

This is the Emp TableThis is the PivotThis is expected ResultThis is expected Result
EmployeeDepartmentPromotion Yes/NoRow LabelsCount of EmployeePromotion YESPromotion No
Emp1HRNoFinance211
Emp2FinanceYesHR202
Emp3HRNoOperation211
Emp4FinanceNoProcurement101
Emp5ProcurementNoGrand Total7
Emp6OperationYes
Emp7OperationNo
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
1695819906563.png
1695819906563.png
 
Upvote 1
Solution
Kindly Refer the above Image.
Putting
Department in Row Field
Promotion in Column Field
and Employee in Value Field
 
Upvote 0

Forum statistics

Threads
1,223,898
Messages
6,175,272
Members
452,628
Latest member
dd2

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