function in Pivot table

leibale

Active Member
Joined
Sep 12, 2002
Messages
337
Its seems to be very simple question, but I cannot solve it
I have a table with 2 columns: Dapartment, YesNo. the YesNo column have value of 0 for NO and 1 for Yes
Now, I want to use Pivot table to get this result:
Department Yes No
to do it I created a new calculated field within the Pivot Table: if(Yesno=1,0,1)
but the sum of the new field is not good
where is my mistake? I must it inside the pivot. I know I can do it without the pivot table)
thanks
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
yes,
I want 2 columns : first to sum the values of YesNo column so I know how many Yes are, then I want to sum the calculated field in which 1 is 0, and 0 is 1, and get how many No are for each department
thanks
 
Upvote 0
Leibale, what your formula is doing is calculating on the result of your pivot table, I do not know how to do this other than creating another column with your formula.
 
Upvote 0

Forum statistics

Threads
1,224,613
Messages
6,179,896
Members
452,948
Latest member
Dupuhini

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