summarize values by sum in Pivot table not working

%3CLINGO-SUB%20id%3D%22lingo-sub-1025436%22%20slang%3D%22en-US%22%3Esummarize%20values%20by%20sum%20in%20Pivot%20table%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1025436%22%20slang%3D%22en-US%22%3E%3CP%3Eworking%20in%20pivot%20table%20and%20summarize%20values%20by%20sum%20is%20not%20working%20(the%20output%20is%20%220%22)%2C%20whilst%20summarizing%20by%20count%20gives%20an%20output%20of%20%22682185%22%3B%20this%20as%20the%20table%20is%20having%20so%20many%20lines.%3C%2FP%3E%3CP%3EAny%20idea%20how%20to%20solve%20the%20issue%20so%20I%20have%20the%20values%20by%20sum%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1025436%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPIVOT%20TABLE%20PROBLEM%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1025921%22%20slang%3D%22en-US%22%3ERe%3A%20summarize%20values%20by%20sum%20in%20Pivot%20table%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1025921%22%20slang%3D%22en-US%22%3EHello%2C%20you're%20getting%20zero%20after%20Summarizing%20value%20By%20Sum%20because%20the%20field%20you%20drag%20and%20drop%20inside%20the%20PivotTable%20Values%20axis%20contains%20%22text%22...%20Not%20number%3CBR%20%2F%3E%3CBR%20%2F%3EIn%20the%20first%20caption%20attached%2C%20I%20drop%20Product%20Category%20field%20that%20contains%20text%2C%20into%20the%20Values%20axis%3CBR%20%2F%3E%3CBR%20%2F%3EIn%20the%20second%20caption%2C%20when%20I%20summarized%20values%20by%20sum%2C%20I%20got%20zeros%20all%20through%3CBR%20%2F%3E%3CBR%20%2F%3ESo%2C%20you%20need%20to%20drop%20field%20can%20contains%20summable%20number%20into%20the%20values%20axis%20and%20then%20you%20can%20summarize%20values%20by%20sum.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3EKindly%20let%20me%20know%20if%20this%20helps%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1025937%22%20slang%3D%22en-US%22%3ERe%3A%20summarize%20values%20by%20sum%20in%20Pivot%20table%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1025937%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F421698%22%20target%3D%22_blank%22%3E%40Abiola1%3C%2FA%3E%26nbsp%3Bthanks%20for%20your%20reply%2C%20but%20this%20does%20not%20make%20a%20difference.%20In%20the%20raw%20data%20I%20ahave%20made%20sure%20the%20data%20in%20the%20columns%20are%20seen%20as%20numbers%20(number%20format).%3C%2FP%3E%3CP%3EAny%20other%20idea%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1025991%22%20slang%3D%22en-US%22%3ERe%3A%20summarize%20values%20by%20sum%20in%20Pivot%20table%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1025991%22%20slang%3D%22en-US%22%3EHello%2C%20kindly%20take%20a%20sample%20of%20the%20pivot%20table%20report%20and%20attach%20please%20for%20clarity%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1026078%22%20slang%3D%22en-US%22%3ERe%3A%20summarize%20values%20by%20sum%20in%20Pivot%20table%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1026078%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F421698%22%20target%3D%22_blank%22%3E%40Abiola1%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3Epls%20find%20attached.%20I%20have%20taken%20a%20few%20lines%20of%20the%20raw%20data%20(as%20the%20whole%20file%20contains%20more%20than%20800K%20lines).%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F158463iFE1462533C6F83AD%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22snap%202.JPG%22%20title%3D%22snap%202.JPG%22%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F158462i6DF2D222AB3EDC5B%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22snap%201.JPG%22%20title%3D%22snap%201.JPG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1026258%22%20slang%3D%22en-US%22%3ERe%3A%20summarize%20values%20by%20sum%20in%20Pivot%20table%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1026258%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F444487%22%20target%3D%22_blank%22%3E%40713326%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20attach%20your%20sample%20file%2C%20not%20just%20a%20picture%20of%20your%20results.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1028503%22%20slang%3D%22en-US%22%3ERe%3A%20summarize%20values%20by%20sum%20in%20Pivot%20table%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1028503%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F444487%22%20target%3D%22_blank%22%3E%40713326%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EEven%20if%20you%20apply%20number%20format%20and%20values%20are%20seen%20as%20numbers%2C%20actually%20they%20could%20be%20texts.%20It'll%20be%20more%20reliable%20if%20you%20check%20any%20value%20in%20your%20source%20table%20by%20formula%20like%20%3DISTEXT(B10)%20in%20any%20empty%20cell.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1028517%22%20slang%3D%22en-US%22%3ERe%3A%20summarize%20values%20by%20sum%20in%20Pivot%20table%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1028517%22%20slang%3D%22en-US%22%3EHello%2C%20kindly%20verify%20from%20the%20source%20data%20whether%20the%20column%20is%20in%20fact%20number%3B%20not%20text%20values...%20You%20can%20use%20ISTEXT%20function..%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1029660%22%20slang%3D%22en-US%22%3ERe%3A%20summarize%20values%20by%20sum%20in%20Pivot%20table%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1029660%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F403176%22%20target%3D%22_blank%22%3E%40Riny_van_Eekelen%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPls%20find%20attached.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1029661%22%20slang%3D%22en-US%22%3ERe%3A%20summarize%20values%20by%20sum%20in%20Pivot%20table%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1029661%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3Esorry%2C%20but%20I%20am%20not%20really%20an%20expert%20in%20Excel.%3C%2FP%3E%3CP%3EWhat%20if%20the%20outcome%20is%20FALSE.%20What%20do%20i%20need%20to%20do%3F%20And%20what%20if%20outcome%20is%20TRUE%3F%20I%20assume%20I%20need%20to%20use%20ISTEXT%20function%20for%20those%20cells%20where%20i%20have%20the%20issue%20it%20wont%20sum%20the%20numbers%20but%20only%20count%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1029865%22%20slang%3D%22en-US%22%3ERe%3A%20summarize%20values%20by%20sum%20in%20Pivot%20table%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1029865%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F444487%22%20target%3D%22_blank%22%3E%40713326%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20problem%20is%20exactly%20what%20the%20other%20respondents%20suspected.%20Your%20formula%20in%20the%20%22Count%22%20column%20%26nbsp%3B(Col%20I)%20contains%20text.%20It%20uses%20the%20SUBSTITUTE%20function%20to%20create%20a%20text%20of%20the%20cells%20in%20the%20preceding%20columns.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20exactly%20is%20the%20result%20you%20expect%20to%20see%20in%20your%20column%20I%20(%22Count%22)%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1029904%22%20slang%3D%22en-US%22%3ERe%3A%20summarize%20values%20by%20sum%20in%20Pivot%20table%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1029904%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F444487%22%20target%3D%22_blank%22%3E%40713326%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIt's%20nothing%20to%20do%20with%20ISTEXT()%2C%20it%20only%20to%20be%20sure%20do%20you%20have%20text%20in%20the%20cell%20(returns%20TRUE)%20or%20not%20(returns%20FALSE).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAs%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F403176%22%20target%3D%22_blank%22%3E%40Riny_van_Eekelen%3C%2FA%3E%26nbsp%3Bmentioned%2C%20in%20Count%20columns%20you%20have%20texts%20since%20SUBSTITUTE()%20which%20you%20use%20returns%20texts%20only.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETaking%20into%20account%20that%20in%20Excel%20TRUE%20is%20equivalent%20of%201%20and%20FALSE%20of%20zero%2C%20you%20may%20use%20for%20Count%20formula%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%3DF2%2BG2%2BH2%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3Einstead%20of%20SUBSTITUTE().%20When%20PivotTable%20sums%20correctly%2C%20please%20see%20attached.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1964294%22%20slang%3D%22fr-FR%22%3ERe%3A%20summarize%20values%20by%20sum%20in%20Pivot%20table%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1964294%22%20slang%3D%22fr-FR%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F444487%22%20target%3D%22_blank%22%3E%40713326%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20had%20the%20%220%22%20issue%20with%20%22sum%20values%22.%26nbsp%3B%3C%2FP%3E%3CP%3EA%20simple%20refresh%20in%20the%20pivot%20column%20saved%20my%20day.%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%222020-12-07_21-38-10.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F238471i6887C5372B8BCDC0%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%222020-12-07_21-38-10.png%22%20alt%3D%222020-12-07-21-38-10.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%E2%80%83%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1986033%22%20slang%3D%22en-US%22%3ERe%3A%20summarize%20values%20by%20sum%20in%20Pivot%20table%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1986033%22%20slang%3D%22en-US%22%3EIf%20you%20need%20to%20do%20these%20in%20bulk%2C%20use%20this%20guide%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Foffice%2Fconvert-numbers-stored-as-text-to-numbers-40105f2a-fe79-4477-a171-c5bad0f0a885%23%3A~%3Atext%3DSelect%2520the%2520cells%2520that%2520have%2Cconverts%2520the%2520text%2520to%2520numbers%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Foffice%2Fconvert-numbers-stored-as-text-to-numbers-40105f2a-fe79-4477-a171-c5bad0f0a885%23%3A~%3Atext%3DSelect%2520the%2520cells%2520that%2520have%2Cconverts%2520the%2520text%2520to%2520numbers%3C%2FA%3E.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2020425%22%20slang%3D%22en-US%22%3ERe%3A%20summarize%20values%20by%20sum%20in%20Pivot%20table%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2020425%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F444487%22%20target%3D%22_blank%22%3E%40713326%3C%2FA%3E%26nbsp%3BValues%20inside%20a%20cell%20should%20not%20have%20space.%20To%20close%20the%20gap%20in%20the%20cells-%20Please%20use%20%22Text%20to%20Column%22%20from%20Data%20tab%20in%20excel.%20Sum%20value%20in%20pivot%20table%20will%20show%20%220%22%20only%20when%20the%20value%20in%20the%20cell%20has%20blank%20space%20as%20show%20in%20my%20example.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EExample%3A%20for%20blank%20space%20in%20a%20cell.%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Godson_Das_1-1609250481273.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F243315iC39DA6B34ADC5BD1%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Godson_Das_1-1609250481273.png%22%20alt%3D%22Godson_Das_1-1609250481273.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Godson_Das_0-1609250287712.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F243314i30BAC6B708965F48%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Godson_Das_0-1609250287712.png%22%20alt%3D%22Godson_Das_0-1609250287712.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EDo%20not%20select%20%22Comma%22.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

working in pivot table and summarize values by sum is not working (the output is "0"), whilst summarizing by count gives an output of "682185"; this as the table is having so many lines.

Any idea how to solve the issue so I have the values by sum?

14 Replies
Hello, you're getting zero after Summarizing value By Sum because the field you drag and drop inside the PivotTable Values axis contains "text"... Not number

In the first caption attached, I drop Product Category field that contains text, into the Values axis

In the second caption, when I summarized values by sum, I got zeros all through

So, you need to drop field can contains summable number into the values axis and then you can summarize values by sum.


Kindly let me know if this helps

@Abiola1 thanks for your reply, but this does not make a difference. In the raw data I ahave made sure the data in the columns are seen as numbers (number format).

Any other idea?

 

Hello, kindly take a sample of the pivot table report and attach please for clarity

@Abiola1 

pls find attached. I have taken a few lines of the raw data (as the whole file contains more than 800K lines).snap 2.JPGsnap 1.JPG

@713326 

Please attach your sample file, not just a picture of your results.

@713326 

Even if you apply number format and values are seen as numbers, actually they could be texts. It'll be more reliable if you check any value in your source table by formula like =ISTEXT(B10) in any empty cell.

Hello, kindly verify from the source data whether the column is in fact number; not text values... You can use ISTEXT function..

@Riny_van_Eekelen 

Pls find attached.

 

@Sergei Baklan 

sorry, but I am not really an expert in Excel.

What if the outcome is FALSE. What do i need to do? And what if outcome is TRUE? I assume I need to use ISTEXT function for those cells where i have the issue it wont sum the numbers but only count?

 

@713326 

The problem is exactly what the other respondents suspected. Your formula in the "Count" column  (Col I) contains text. It uses the SUBSTITUTE function to create a text of the cells in the preceding columns.

 

What exactly is the result you expect to see in your column I ("Count")?

@713326 

It's nothing to do with ISTEXT(), it only to be sure do you have text in the cell (returns TRUE) or not (returns FALSE).

 

As @Riny_van_Eekelen mentioned, in Count columns you have texts since SUBSTITUTE() which you use returns texts only.

 

Taking into account that in Excel TRUE is equivalent of 1 and FALSE of zero, you may use for Count formula

=F2+G2+H2

instead of SUBSTITUTE(). When PivotTable sums correctly, please see attached.

@713326 

I had the "0" issue with "sum values". 

A simple refresh in the pivot column saved my day. 

2020-12-07_21-38-10.png

@713326 Values inside a cell should not have space. To close the gap in the cells- Please use "Text to Column" from Data tab in excel. Sum value in pivot table will show "0" only when the value in the cell has blank space as show in my example. 

 

Example: for blank space in a cell. 

Godson_Das_1-1609250481273.png

 

 

Godson_Das_0-1609250287712.png

Do not select "Comma".