multiple count Pivot table in Excel

0

I'm trying to put togeter a pivot table from an Excel spreadsheet. The spreadsheets look similar to the following:

DeptHead, Emp,  Increment
x,        A,      2.5%
x,        B,
y,        C,      1.5%
y,        D,
y,        E,      2.0%

I would like to make a pivot table that looks like the following;

DeptHead, CountOfEmp,  CountOfIncrement
x,        2,           1 
y,        3,           2

So it provides a count of total number of Emps and total number Increments for each DeptHead ignoring the blanks. I have tried to do this in many ways in Pivot table, but the two counts are only appearing in rows and not in columns as above.

Is there any way to achieve this please? Thanks

Sivakanesh

Posted 2011-02-01T14:16:08.493

Reputation: 189

Answers

1

enter image description here

Does your layout look like this? And, you might select the 'classic' layout as well, in the 'Display' tab on the 'Pivot Table Options' dialog form.

F106dart

Posted 2011-02-01T14:16:08.493

Reputation: 1 713

Thanks for that, but it looks like Excel 2007. I'm still using 2003 and I don't see the same UI. I have uploaded a sample file if that helps. Thanks. Sample File

– Sivakanesh – 2011-02-09T08:29:34.550

Ah -- sorry; didn't think about 2007 vs 2003.

However: in your "Sample File", and using 2007 (sorry, that's what I have access to!) I clicked in cell B3 (which says "Data") so that it was highlighted. Then, I dragged that cell and dropped it into cell C3. The pivot table rearranged to your desired order. I HOPE it works the same way in 2003 (I think it does.) – F106dart – 2011-02-14T17:09:48.030

1

It could be you are just not placing the fields correctly in the Pivot Table field list.

Place the Emp and Increment fields in the "Values" section.

F106dart

Posted 2011-02-01T14:16:08.493

Reputation: 1 713

You must put Sum Values in the Column Labels Section like in the picture above not in the Row Label Section – kev – 2018-01-12T07:07:09.973

I've done this, but this places the Emp and Increment fields below each other on rows, grouped by DeptHead, rather than putting them in separate columns. – Sivakanesh – 2011-02-03T08:01:35.083