# Pivot Table Not Returning Sum, Only Returns "0"

#### mcsdls

##### New Member
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 Associate AB EO FMLA TA Grand Total Adams, Carol 3 6 2 11 Betton, Kellye 4 49 1 54 Birch, Pamela 2 5 1 8 Grand Total 9 11 49 4 73

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

THIS ONE IS WRONG
 Row Labels Sum of Points Adams, Carol 0 Berry, Linda 0 Betton, Kellye 0 Birch, Pamela 0 Grand Total 0

<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

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

#### arthurbr

##### Well-known Member
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

#### mcsdls

##### New Member
This worked. Thank you for the help. I'll keep this in mind for sure! Thank you

Replies
0
Views
195
Replies
7
Views
155
Replies
0
Views
125
Replies
1
Views
190
Replies
0
Views
198

1,129,867
Messages
5,638,757
Members
417,051
Latest member
arthur_w

### 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.

### Which adblocker are you using?

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

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