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
Count of Occurrence Type
AssociateABEOFMLATAGrand Total
Adams, Carol36211
Betton, Kellye449154
Birch, Pamela2518
Grand Total91149473

<colgroup><col><col><col><col><col><col></colgroup><tbody>
</tbody>

THIS ONE IS WRONG
Row LabelsSum of Points
Adams, Carol0
Berry, Linda0
Betton, Kellye0
Birch, Pamela0
Grand Total0

<colgroup><col><col></colgroup><tbody>
</tbody>


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

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
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,213,544
Messages
6,114,239
Members
448,555
Latest member
RobertJones1986

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