SOLVED
Home

Office 365 Excel - Bar graph and zero values

%3CLINGO-SUB%20id%3D%22lingo-sub-444951%22%20slang%3D%22en-US%22%3EOffice%20365%20Excel%20-%20Bar%20graph%20and%20zero%20values%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-444951%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20data%20being%20pulled%20from%20other%20cells%20via%20formulas....%20ex.%26nbsp%3B%3DIF(ISBLANK(S103)%2C%22%20%22%2C(S103))%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3BThis%20populates%20a%20cell%20in%20a%20chart%20that%20is%20used%20in%20a%20graph.%26nbsp%3B%20It%20is%20currently%20formatted%20as%20%22Custom%3A%200.0%3B-0.0%3B%3B%22%20so%20that%20if%20the%20formula%20returns%20Blank%20that%20nothing%20is%20showing%20in%20the%20bar%20graph%20(specifically%20if%20it%20is%20blank%20I%20DO%20NOT%20want%20a%20zero%20to%20show%20in%20the%20graph).%26nbsp%3B%20However.....If%20the%20formula%20pulls%20a%20value%20of%200.0%20from%20a%20cell%20I%20DO%20want%20it%20to%20show%200.0%20in%20the%20chart%20and%20also%20then%20graph%20the%200.0.%26nbsp%3B%20I%20am%20struggling%20making%20both%20of%20these%20work%20at%20the%20same%20time.%26nbsp%3B%20I%20have%20tried%20%3DIF(ISBLANK(I127)%2C%22%20%22%2CIF(I127%3D0.0%2C0.0%2C(I127)))%20and%20also%20%3DIF(ISBLANK(S127)%2C%22%20%22%2CIF(S127%3D0%2C%220.0%22%2C(S127)))%20without%20success.%26nbsp%3B%20I%20think%20it%20is%20just%20the%20correct%20custom%20formatting%20that%20will%20solve%20this%3F%20Help!!%3F%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20time%2C%3C%2FP%3E%3CP%3EChris%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-444951%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ECharting%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-455436%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20Excel%20-%20Bar%20graph%20and%20zero%20values%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-455436%22%20slang%3D%22en-US%22%3E%3CP%3EAnyone%3F%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-456097%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20Excel%20-%20Bar%20graph%20and%20zero%20values%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-456097%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F320088%22%20target%3D%22_blank%22%3E%40Yukontornado69%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHi%20Chris%2C%3C%2FP%3E%0A%3CP%3EIf%20you%20apply%20custom%20format%20like%20this%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20304px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F108925i0FA84D4403AD775A%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22image.png%22%20title%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3Eit%20shows%20zero%20in%20desirable%20format%20if%20the%20value%20is%200%2C%20and%20nothing%20if%20the%20cell%20is%20blank.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-462655%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20Excel%20-%20Bar%20graph%20and%20zero%20values%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-462655%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%3ESergei%20you%20are%20the%20man!%26nbsp%3B%20I%20have%20been%20pulling%20my%20hair%20out%20with%20the%20custom%20formatting%20for%20this%20LOL.%26nbsp%3B%20I%20was%20close%20but%20kept%20dancing%20around%20the%20correct%20answer!%26nbsp%3B%20Again%2C%20thank%20you%20so%20much%20for%20your%20response.%26nbsp%3B%20I%20am%20sure%20you%20read%20this%20and%20laughed%20at%20my%20struggle!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHave%20an%20amazing%20day%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EChris%20Ames%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-462984%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20Excel%20-%20Bar%20graph%20and%20zero%20values%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-462984%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F320088%22%20target%3D%22_blank%22%3E%40Yukontornado69%3C%2FA%3E%20%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EChris%2C%20each%20of%20us%20every%20day%20finds%20something%20new%20in%20Excel%2C%20it's%20infinite.%20That's%20why%20I%20like%20it.%3C%2FP%3E%0A%3CP%3EGlad%20to%20help.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-466528%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20Excel%20-%20Bar%20graph%20and%20zero%20values%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-466528%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%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%20Sergei%2C%3C%2FP%3E%3CP%3EWell....upon%20further%20testing%20it%20did%20not%20fix%20my%20issue%26nbsp%3B%20%26nbsp%3B%3D(%26nbsp%3B%20%26nbsp%3B%20If%20I%20uploaded%20my%20sheet%2C%20would%20you%20be%20willing%20to%20take%20a%20look%20at%20it%20so%20you%20can%20see%20exactly%20what%20is%20happening%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20in%20advance%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EChris%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-467746%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20Excel%20-%20Bar%20graph%20and%20zero%20values%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-467746%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F320088%22%20target%3D%22_blank%22%3E%40Yukontornado69%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHi%20Chris%20-%20sure%2C%20please%20submit%20the%20sample%2C%20with%20real%20file%20it's%20always%20easier%20to%20find%20the%20reason%20for%20the%20issue.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-468468%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20Excel%20-%20Bar%20graph%20and%20zero%20values%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-468468%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%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAwesome%2C%20thank%20you!%26nbsp%3B%20See%20attached%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20are%20working%20with%20the%20%223rd%20Next%20Appt%20MASTER%22%20tab.%26nbsp%3B%20At%20the%20bottom%20of%20the%20sheet%20there%20is%20a%20chart%20and%20graph%20labeled%20as%20%22Third%20Next%20Available%20Apointment%20(Days)%20FY%202019.%26nbsp%3B%20The%20chart%20months%20in%20G156%3AR156%20are%20currently%20using%20my%20old%20custom%20formatting%20of%200.00%3B-0.00%3B%3B%20because%20I%20tried%20your%20suggestion%20without%20success.%26nbsp%3B%20These%20cells%20are%20populated%20from%20the%20above%20monthly%20charts.%20If%20the%20charts%20calculated%20monthly%20in%20column%20%22I%22%20or%20%22S%22%20is%20a%20number%20greater%20than%200.0%2C%20it%20populates%20the%20bottom%20chart%20and%20graph%20correctly%3A%20See%20any%20month%20that%20has%20a%20value%20greater%20than%200.0.%26nbsp%3B%20However%2C%20Starting%20in%20Jan%2019%2C%20Feb%2019%20and%20Mar%2019%20(S103%2C%20I127%20and%20S127)%20the%20calculated%20amounts%20will%20be%200.0.%26nbsp%3B%20Once%20you%20insert%20%220.0%22%20into%20those%20cells%2C%20the%20below%20chart%20displays%20the%20value%20as%20it%20should%20but%20it%20does%20not%20graph%20it%20as%200.0%20(see%20Mar%2019%20%5BS127%5D%20as%20an%20example).%26nbsp%3B%20Basically%20I%20only%20want%20a%20value%20to%20show%20in%20the%20graph%20when%20there%20is%20a%20value%20of%200.0%20or%20greater%20in%20the%20cells%20G156%3AR156.%26nbsp%3B%20If%20the%20month%20is%20still%20empty%2C%20then%20no%20zero%20or%20value%20to%20show%20in%20the%20graph.%26nbsp%3B%20I%20really%20appreciate%20you%20looking%20at%20this!%3C%2FP%3E%3CP%3EChris%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-468841%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20Excel%20-%20Bar%20graph%20and%20zero%20values%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-468841%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F320088%22%20target%3D%22_blank%22%3E%40Yukontornado69%3C%2FA%3E%20%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYes%2C%20chart%20converts%20empty%20string%20(%22%22)%20to%20zero.%20As%20workaround%2C%20in%20G156%3AR156%20you%20may%20use%20formula%20like%3C%2FP%3E%0A%3CPRE%3E%3DIF(ISBLANK(I7)%2C-1E-20%2CI7)%3C%2FPRE%3E%0A%3CP%3Einstead%20of%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%3DIF(ISBLANK(I7)%2C%22%20%22%2CI7)%3C%2FPRE%3E%0A%3CP%3Eand%20apply%20to%20these%20cells%20custom%20format%3C%2FP%3E%0A%3CPRE%3E%5B%26lt%3B0%5D%22%22%3B%5B%26gt%3B%3D0%5D0.0%3C%2FPRE%3E%0A%3CP%3EI%20assume%20all%20your%20numbers%20are%20zero%20or%20positive%20ones.%3C%2FP%3E%0A%3CP%3EThat%20returns%20such%20cells%20formating%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20789px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F109412i11C7A64D7669EB41%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22image.png%22%20title%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3Eand%20the%20same%20for%20the%20chart%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20751px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F109413iF6685A01D7ED95BF%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22image.png%22%20title%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-471536%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20Excel%20-%20Bar%20graph%20and%20zero%20values%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-471536%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%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESergei%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOk%2C%20wow%20that%20worked%20perfectly!%26nbsp%3B%20I%20understand%20how%20the%20custom%20formatting%20change%20reads%20and%20works.%26nbsp%3B%20However%2C%20could%20you%20school%20me%20a%20little%20bit%20on%20how%20your%20new%20formula%20works%20in%20the%20cells%20G156%3AR156%20please%3F%26nbsp%3B%20I%20am%20not%20sure%20what%20the%20%22-1E-20%22%20is%20doing%20or%20how%20it%20works%20that%20replaces%20the%20show%20blank%20%22%22.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20in%20advance%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EChris%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-472828%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20Excel%20-%20Bar%20graph%20and%20zero%20values%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-472828%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Chris%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThese%20cells%20are%20not%20blanks%20or%20numbers%2C%20values%20into%20them%20are%20returned%20by%20formula.%20Formula%20in%20your%20variant%20returns%20some%20positive%20number%20or%20text%20(actually%20space%20or%20empty%20string).%20Within%20the%20chart%20empty%20strings%20are%20interpreted%20as%20zeroes%20when%20we%20apply%20number%20formats.%20The%20idea%20for%20the%20workaround%20is%20to%20have%20numbers%20only.%20Instead%20of%20empty%20string%20formula%20returns%20quite%20small%20negative%20number%20(1e-20%20in%20this%20case)%20which%20from%20visualization%20point%20of%20view%20is%20equivalent%20of%20nothing.%3C%2FP%3E%0A%3CP%3EAfter%20that%20we%20apply%20custom%20number%20format%20which%20for%20negative%20numbers%20shows%20empty%20string%2C%20for%20positive%20ones%20applies%20desired%20number%20format.%20I%20assume%20here%20what%20you%20don't%20have%20real%20negative%20numbers%20in%20data%20set.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-474991%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20Excel%20-%20Bar%20graph%20and%20zero%20values%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-474991%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%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESergei%2C%3C%2FP%3E%3CP%3EThat%20is%20a%20very%20interesting%20way%20to%20solve%20this%20problem!%26nbsp%3B%20Meaning%20that%20I%20would%20have%20NEVER%20gotten%20to%20that%20answer%2C%20lol.%26nbsp%3B%20I%20would%20have%20danced%20around%20a%20solution%20for%20a%20very%20long%20time.%26nbsp%3B%20I%20appreciate%20your%20skills%20and%20I%20hope%20that%20I%20can%20reach%20out%20to%20you%20in%20the%20future%20to%20steal%20more%20of%20your%20knowledge!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-475590%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20Excel%20-%20Bar%20graph%20and%20zero%20values%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-475590%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F320088%22%20target%3D%22_blank%22%3E%40Yukontornado69%3C%2FA%3E%26nbsp%3B%2C%20thank%20you.%20But%20that's%20not%20the%20universal%20solution%2C%20just%20workaround%20for%20this%20concrete%20case.%20For%20another%20data%20that%20could%20be%20something%20else.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Yukontornado69
Occasional Contributor

I have data being pulled from other cells via formulas.... ex. =IF(ISBLANK(S103)," ",(S103))     This populates a cell in a chart that is used in a graph.  It is currently formatted as "Custom: 0.0;-0.0;;" so that if the formula returns Blank that nothing is showing in the bar graph (specifically if it is blank I DO NOT want a zero to show in the graph).  However.....If the formula pulls a value of 0.0 from a cell I DO want it to show 0.0 in the chart and also then graph the 0.0.  I am struggling making both of these work at the same time.  I have tried =IF(ISBLANK(I127)," ",IF(I127=0.0,0.0,(I127))) and also =IF(ISBLANK(S127)," ",IF(S127=0,"0.0",(S127))) without success.  I think it is just the correct custom formatting that will solve this? Help!!??

 

Thank you for your time,

Chris

12 Replies

@Yukontornado69 

Hi Chris,

If you apply custom format like this

image.png

it shows zero in desirable format if the value is 0, and nothing if the cell is blank.

@Sergei Baklan 

Sergei you are the man!  I have been pulling my hair out with the custom formatting for this LOL.  I was close but kept dancing around the correct answer!  Again, thank you so much for your response.  I am sure you read this and laughed at my struggle!

 

Have an amazing day,

 

Chris Ames

@Yukontornado69 ,

 

Chris, each of us every day finds something new in Excel, it's infinite. That's why I like it.

Glad to help.

@Sergei Baklan 

 

Hi Sergei,

Well....upon further testing it did not fix my issue   =(    If I uploaded my sheet, would you be willing to take a look at it so you can see exactly what is happening?

 

Thank you in advance,

 

Chris

@Yukontornado69 

 

Hi Chris - sure, please submit the sample, with real file it's always easier to find the reason for the issue.

@Sergei Baklan 

 

Awesome, thank you!  See attached:

 

We are working with the "3rd Next Appt MASTER" tab.  At the bottom of the sheet there is a chart and graph labeled as "Third Next Available Apointment (Days) FY 2019.  The chart months in G156:R156 are currently using my old custom formatting of 0.00;-0.00;; because I tried your suggestion without success.  These cells are populated from the above monthly charts. If the charts calculated monthly in column "I" or "S" is a number greater than 0.0, it populates the bottom chart and graph correctly: See any month that has a value greater than 0.0.  However, Starting in Jan 19, Feb 19 and Mar 19 (S103, I127 and S127) the calculated amounts will be 0.0.  Once you insert "0.0" into those cells, the below chart displays the value as it should but it does not graph it as 0.0 (see Mar 19 [S127] as an example).  Basically I only want a value to show in the graph when there is a value of 0.0 or greater in the cells G156:R156.  If the month is still empty, then no zero or value to show in the graph.  I really appreciate you looking at this!

Chris

Solution

@Yukontornado69 ,

 

Yes, chart converts empty string ("") to zero. As workaround, in G156:R156 you may use formula like

=IF(ISBLANK(I7),-1E-20,I7)

instead of 

=IF(ISBLANK(I7)," ",I7)

and apply to these cells custom format

[<0]"";[>=0]0.0

I assume all your numbers are zero or positive ones.

That returns such cells formating

image.png

and the same for the chart

image.png

@Sergei Baklan 

 

Sergei,

 

Ok, wow that worked perfectly!  I understand how the custom formatting change reads and works.  However, could you school me a little bit on how your new formula works in the cells G156:R156 please?  I am not sure what the "-1E-20" is doing or how it works that replaces the show blank "".  

Thank you in advance,

 

Chris

Hi Chris,

 

These cells are not blanks or numbers, values into them are returned by formula. Formula in your variant returns some positive number or text (actually space or empty string). Within the chart empty strings are interpreted as zeroes when we apply number formats. The idea for the workaround is to have numbers only. Instead of empty string formula returns quite small negative number (1e-20 in this case) which from visualization point of view is equivalent of nothing.

After that we apply custom number format which for negative numbers shows empty string, for positive ones applies desired number format. I assume here what you don't have real negative numbers in data set.

 

 

@Sergei Baklan 

 

Sergei,

That is a very interesting way to solve this problem!  Meaning that I would have NEVER gotten to that answer, lol.  I would have danced around a solution for a very long time.  I appreciate your skills and I hope that I can reach out to you in the future to steal more of your knowledge!

@Yukontornado69 , thank you. But that's not the universal solution, just workaround for this concrete case. For another data that could be something else.

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
30 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies