The value of the pivot table sum is not working.

La -  
 Arthur-92 -
Hello,

The sum value of my Pivot Table is not working: I have incorrect sums.

My table consists of the following:
- 1 tab "Pivot Table" with 2 columns: 1 column "WORK CODE" and 1 column "QUANTITIES".
- 1 tab "raw data" (this is the table I want to use in the Pivot Table to classify the data).

For example, for the code TECME007, it shows 0 quantities in my Pivot Table while if we refer to the "raw data" tab of my Excel table, summing TECME007 gives 2,330.

Do you know where my error is? I have tried in vain but cannot find it.

Link to access my table: https://www.cjoint.com/c/LFEojw1zYQc

Thank you in advance

Best regards

10 réponses

arthur-92
 
Where do the numbers you entered come from?
First of all, the standard is to right-align numbers. If these are uploaded numbers, make sure they are in number format and not text format, and possibly use the cnum() function to get them in the correct format.
As for the second question, I don’t see it. Double-check your formulas...
1
yclik Posted messages 3865 Registration date   Status Membre Last intervention   1 603
 
Hello
check if there is an apostrophe in front of the numbers after data import
Select a cell containing a number and see in the formula bar if there's an apostrophe in front
1
Raymond PENTIER Posted messages 58546 Registration date   Status Contributeur Last intervention   17 474
 
Good evening Lola, and welcome among the new members.

Do you know where my mistake is? I have tried in vain, I can't find it.
.
yclick provided you with the solution: "try replacing . with ,"

Can you tell me what was wrong with my table?
?
Arthur gave you the answer: "check that they are in number format and not in text format and possibly use the cnum() function to get numbers in the correct format."
Indeed, even when replacing
.
with
,
, in a Text data, it remains in Text format. You must then enter the number 1 in an available cell; you do Copy; select columns B, C, and D; you do Paste Special Multiply.
Now you only have numeric data, and not a mix of numbers and texts ...

--
It’s great, retirement! Especially in the West Indies...
Raymond (INSA, AFPA)
1
Lola_2753 Posted messages 13 Status Membre 2
 
Hello Raymond,

- I replaced the periods with commas (Search: . and replace with ,)
- For the second point, I don't know how to use the cnum() function, I would like it if someone could explain how this function works concretely (I looked it up online, but I didn't quite understand).
I understand why I need to multiply by 1 (that way I keep the values in the cells), however, I can't find the special paste for multiplication (attached is a screenshot). When I do a special paste, it suggests converting it to text (unicode text or text), is it because my data is already numeric?

0
arthur-92 > Lola_2753 Posted messages 13 Status Membre
 
Hello,
Here is an example of using the function =cnum().
https://www.cjoint.com/c/LGekki5hn70
I'm re-posting your original file as it was before any modifications, and I have applied the function =cnum() to it.
Also, check the online help.
https://cjoint.com/c/LGekDsKUTR0
Best regards.
1
Lola_2753 Posted messages 13 Status Membre 2 > arthur-92
 
Hello,

Thank you, I just understood the =cnum() function thanks to your example.

I have a small question: if I use the =cnum() function, do I not need to use the special paste multiplication? It’s either one or the other?
0
arthur-92 > Lola_2753 Posted messages 13 Status Membre
 
Absolutely. Several methods have been suggested to you, don't mix them up...
1
arthur-92 > arthur-92
 
Next:
Have you looked at the file:
https://www.cjoint.com/c/LGekki5hn70 posted at 12:34 PM?
It doesn't appear to have been downloaded from Cjoint.
1
Raymond PENTIER Posted messages 58546 Registration date   Status Contributeur Last intervention   17 474
 
(... continuation)

I filtered my data, I believe this sum function takes into account the data that is adjacent
...
That's exactly it: Just because you've hidden some rows with your filter doesn't mean that the values they contain escape the operation!
If you want to sum only the displayed rows (after filtering), you need to use the formula
=SUBTOTAL(9;B2:B400)
which results in 270.70 (and certainly not 2,330, which comes from who knows where!) ...

--
Retirement is great! Especially in the West Indies...
Raymond (INSA, AFPA)
1
Lola_2753 Posted messages 13 Status Membre 2
 
Regarding the issue with the sum function when filtering data, the formula =SUBTOTAL works. Thank you very much.
2
yclik Posted messages 3865 Registration date   Status Membre Last intervention   1 603
 
Hello
It seems that not all decimal separators are the same
there are . and ,
see decimal separator settings in Excel
test by replacing . with ,
0
La
 
Even replacing the . with , doesn't work

I don't understand where the problem is then
0
arthur-92
 
Hello,
Please check if this table, with correctly entered data, produces the expected results:
https://cjoint.com/c/LGbj6xUXKOP
Best regards.
0
Lola_2753 Posted messages 13 Status Membre 2
 
Hello,

It works, thank you so much! Can you tell me what was wrong with my table (so that I don't make the same mistake next time)?

I also have a small problem with the function =SUM:
When I use the function =SUM(.....:.....), I get an incorrect result, whereas when I do it "manually" by adding the cells one by one =B1+B2+etc. I get the correct result. I have filtered my data, and I believe this sum function takes into account the data that is adjacent to the cells I am interested in (I'm not sure if I'm clear, but below is a screenshot).
So, do you know how I could use the =SUM function without having this issue?



Thank you in advance,

Best regards
0
Raymond PENTIER Posted messages 58546 Registration date   Status Contributeur Last intervention   17 474
 


Response to messages #14 and 15:


--
It's great, retirement! Especially in the Antilles... Raymond (INSA, AFPA)
0
Lola_2753 Posted messages 13 Status Membre 2
 
Hello Raymond,

It's not working. When I click on special paste, I'm only given 2 options: Unicode text or text.
0
Lola_2753 Posted messages 13 Status Membre 2
 
It's all good, I found out what was wrong (I had entered the number 1 in a single empty cell while my table contains + 1 cells, so I needed to enter the number 1 in each empty cell so that the number of empty cells would be equivalent to the number of "filled" cells making up my table...). The special paste multiplication works!

Thank you so much for your time and your explanations!
0
Raymond PENTIER Posted messages 58546 Registration date   Status Contributeur Last intervention   17 474
 
No, Lola; it is perfectly pointless to select multiple cells with a value of 1...
Start the operation again; you'll see! Unless you have a stripped-down version of Excel...

--
Retirement is great! Especially in the Caribbean...
Raymond (INSA, AFPA)
0