Pivot Table Not Returning Sum, Only Returns "0"

mcsdls

New Member
Joined
Aug 26, 2019
Messages
4
I am trying to simplify a horrible and old spreadsheet for attendance tracking (there is a worksheet for every employee, SMH). I am moving everything to a new spreadsheet to just be on one sheet with all of the data, and a pivot table to display the count of types of occurrences, and another pivot table to display the amount of points an employee has. On the data worksheet, the points are calculated as such: =IFERROR(IFS(C1696="ta","1",C1696="ab","2",C1696="eo","1",C1696="nc","3",C1696="fmla","0",C1696="br","0",C1696="jd","0",C1696="eo2","2"),"0")

The result of the pivot tables is:

THIS ONE IS CORRECT
[TABLE="width: 360"]
<colgroup><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD]Count of Occurrence Type[/TD]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Associate[/TD]
[TD]AB[/TD]
[TD]EO[/TD]
[TD]FMLA[/TD]
[TD]TA[/TD]
[TD]Grand Total[/TD]
[/TR]
[TR]
[TD]Adams, Carol[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]6[/TD]
[TD][/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]11[/TD]
[/TR]
[TR]
[TD]Betton, Kellye[/TD]
[TD="align: right"]4[/TD]
[TD][/TD]
[TD="align: right"]49[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]54[/TD]
[/TR]
[TR]
[TD]Birch, Pamela[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]5[/TD]
[TD][/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]8[/TD]
[/TR]
[TR]
[TD]Grand Total[/TD]
[TD="align: right"]9[/TD]
[TD="align: right"]11[/TD]
[TD="align: right"]49[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]73[/TD]
[/TR]
</tbody>[/TABLE]

THIS ONE IS WRONG
[TABLE="width: 181"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]Row Labels[/TD]
[TD]Sum of Points[/TD]
[/TR]
[TR]
[TD]Adams, Carol[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]Berry, Linda[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]Betton, Kellye[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]Birch, Pamela[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]Grand Total[/TD]
[TD="align: right"]0[/TD]
[/TR]
</tbody>[/TABLE]


The field for Sum of Points contains the formula. I have changed the result from the iferror from a blank to a zero, formatted the column to numbers, tried changing the display to Classic layout. I have been searching the web but nothing is helping :(. I have the formula plugged in due of the users that will hopefully change ways and convert to this and maintain it. Help would be greatly appreciated!
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
In this formula =IFERROR(IFS(C1696="ta","1",C1696="ab","2",C1696="eo","1",C1696="nc","3",C1696="fmla","0",C1696="br","0",C1696="jd","0",C1696="eo2","2"),"0") text strings are returned instead of numbers.
"0" is text when 0 is a number
Remove the double quotes around each number and try again
FYI ="3"+"2" will work as the plus sign coerces the text to numbers. A PT does not work that way
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,191
Members
452,616
Latest member
intern444

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