SOLVED
Home

Probleam: Icons in condictional formatting change with wrong cells

%3CLINGO-SUB%20id%3D%22lingo-sub-737720%22%20slang%3D%22en-US%22%3EProbleam%3A%20Icons%20in%20condictional%20formatting%20change%20with%20wrong%20cells%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-737720%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20confusing%20problem%20while%20trying%20to%20use%20icons%20in%20conditional%20formatting.%20To%20describe%20the%20problem%20clearly%2C%20I%20opened%20a%20new%20blank%20workbook..%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20like%20to%20use%20pie%20icons%20to%20visualize%20values%20in%20array%20A1%3AA10%2C%20see%20the%20captures%20below.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20657px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F122170i07699DBADEB996DF%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%221.JPG%22%20title%3D%221.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%20722px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F122171i1595471698574293%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%222.JPG%22%20title%3D%222.JPG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20simply%20use%20the%20default%20base%20values%20and%20the%20rules%20shall%20be%20clear.%20The%20pie%20icons%20should%20only%20be%20based%20on%20the%20value%20of%20its%20own%20cell.%20Yet%20they%20seem%20to%20change%20as%20I%20change%20the%20values%20of%20other%20cells%2C%20and%20often%20don't%20make%20sense%20to%20me.%20It%20only%20works%20correctly%20when%20all%20the%20cells%20have%20been%20filled%20in%20with%20values.%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%20style%3D%22width%3A%20273px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F122173iFF21310A4350D296%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%223.png%22%20title%3D%223.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20tried%20with%20different%20workbooks%20and%20changed%20the%20settings%20for%20a%20hundred%20times%2C%20yet%20it%20still%20doesn't%20work....%20Do%20I%20understand%20the%20conditional%20formatting%20rule%26nbsp%3Bin%20a%20wrong%20way%20or%20something%3F%20Could%20someone%20be%20so%20kind%20to%20help%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-737720%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-737852%22%20slang%3D%22en-US%22%3ERe%3A%20Probleam%3A%20Icons%20in%20condictional%20formatting%20change%20with%20wrong%20cells%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-737852%22%20slang%3D%22en-US%22%3E%3CP%3EHey%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F370977%22%20target%3D%22_blank%22%3E%40CathySong%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20reason%20the%20conditional%20formatting%20changes%20as%20you%20type%20in%20a%20value%20is%20because%20Excel%20calculates%20what%20percentage%20the%20value%20you%20type%20in%20is%20to%20the%20entire%20column%20you%20applied%20the%20conditional%20formatting%20to.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERemember%2C%20when%20you%20changed%20the%20data%20type%20to%26nbsp%3B%3CSTRONG%3Epercentage%2C%26nbsp%3B%3C%2FSTRONG%3Ethe%20value%20in%20the%20cells%20was%20only%20formatted%20to%20percentage%2C%20the%20actual%20value%20is%20a%20numerical%20value.%20So%20for%2010%25%20it%20is%20stored%20as%200.1%2C%20for%2020%25%20it%20is%200.2%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%2C%20at%20first%2C%20when%20you%20typed%20in%2010%20in%20column%20A%20and%20excel%20formatted%20it%20to%20a%20percentage%2C%20the%20reason%20the%20black%20circle%20appeared%20is%20because%20Excel%20took%20the%200.1%20(which%20was%20formatted%20to%2010%25)%20and%20divided%20it%20by%20the%20sum%20of%20the%20range%20you%20applied%20the%20formatting%20to%2C%20which%20is%200.1%20%2B%200%20%2B%200%2B%200%2B%200%2B%200%2B%200%2B%200%2B%200%2B%200%20%3D%200.1.%3C%2FP%3E%3CP%3ETherefore%2C%200.1%2F0.1%20%3D%201%2C%20which%20as%20a%20percentage%20is%20100%25%20and%20according%20to%20you%20formatting%20rules%2C%20a%20black%20circle%20should%20appear%20for%20this%20circle%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESame%2C%20with%20the%20second%20incident%20where%20you%20typed%20in%2020%20below%20the%2010%25.%3C%2FP%3E%3CP%3EA%20white%20circle%20is%20shown%20in%20the%20first%20cell%20because%200.1%20%2F%20(0.1%20%2B0.2%20%2B0%2B%200%2B%200%2B%200%2B%200%2B%200%2B%200%2B%200)%20*%20100%20%3D%2016.7%25%2C%20which%20according%20to%20your%20rules%20is%20below%2020%25%20and%20thus%2C%20must%20have%20a%20white%20circle%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-737860%22%20slang%3D%22en-US%22%3ERe%3A%20Probleam%3A%20Icons%20in%20condictional%20formatting%20change%20with%20wrong%20cells%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-737860%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F370977%22%20target%3D%22_blank%22%3E%40CathySong%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThat's%20since%20you%20took%20percent%20as%20the%20type.%20Excel%20takes%20entire%20range%20and%20calculates%20for%20the%20cell%20value%20in%20which%20%25%20it%20within%20the%20range.%20If%20to%20apply%20icon%20only%20based%20on%20concrete%20cell%20value%20select%20Number%20as%20type%20and%20set%20values%20as%200.8%2C%200.6%2C%200.4%2C%200.2%20in%20your%20rule.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EType%20is%20not%20connected%20to%20the%20format%20you%20apply%20to%20your%20cells%20(%25%2C%20date%2C%20whatever).%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-737868%22%20slang%3D%22en-US%22%3ERe%3A%20Probleam%3A%20Icons%20in%20condictional%20formatting%20change%20with%20wrong%20cells%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-737868%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F367553%22%20target%3D%22_blank%22%3E%40Excel_World_Champion%3C%2FA%3E%26nbsp%3BThank%20you%20so%20much!%20I've%20changed%20the%20data%20type%20to%20%22Number%22%20and%20the%20values%20to%200.8%2C%200.6%26nbsp%3B%200.4%2C%200.2%2C%20now%20the%20problem%20has%20been%20solved.%20You%20just%20made%20my%20day!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-737870%22%20slang%3D%22en-US%22%3ERe%3A%20Probleam%3A%20Icons%20in%20condictional%20formatting%20change%20with%20wrong%20cells%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-737870%22%20slang%3D%22en-US%22%3E%3CP%3EHey%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F370977%22%20target%3D%22_blank%22%3E%40CathySong%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%2C%20I%20don't%20think%20that%20your%20conditional%20format%20works%20even%20when%20all%20the%20cells%20are%20filled%20since%2080%25%20shows%20a%20three-quarter%20filled%20cell%2C%20but%20I%20think%20you%20wanted%20it%20to%20show%20a%20fully%20black%20circle.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20you%20can%20do%20to%20fix%20this%20is%20that%20change%20your%20data%20type%20back%20to%20%3CSTRONG%3EGeneral%2C%26nbsp%3B%3C%2FSTRONG%3Eand%20it%20should%20come%20up%20with%200.1%2C%200.2%2C%20etc.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThen%26nbsp%3B%3CSTRONG%3EEdit%20Formatting%20Rule%26nbsp%3B%3C%2FSTRONG%3Eoptions%2C%20Change%20the%26nbsp%3B%3CSTRONG%3EType%26nbsp%3B%3C%2FSTRONG%3Efrom%20percentage%20to%26nbsp%3B%3CSTRONG%3ENumber%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F122181i44E4764C8064F85B%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%221.PNG%22%20title%3D%221.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThen%20just%20reformat%20the%20column%20back%20to%20the%20data%20type%26nbsp%3B%3CSTRONG%3EPercentage%3C%2FSTRONG%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-737890%22%20slang%3D%22en-US%22%3ERe%3A%20Probleam%3A%20Icons%20in%20condictional%20formatting%20change%20with%20wrong%20cells%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-737890%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F367553%22%20target%3D%22_blank%22%3E%40Excel_World_Champion%3C%2FA%3E%26nbsp%3B%2C%20it's%20not%20necessary%20to%20re-format%20source%20cells%2C%20Conditional%20Formatting%20doesn't%20care%20which%20format%20is%20applied%20to%20the%20cells%2C%20it%20takes%20only%20values.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-737912%22%20slang%3D%22en-US%22%3ERe%3A%20Probleam%3A%20Icons%20in%20condictional%20formatting%20change%20with%20wrong%20cells%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-737912%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F367553%22%20target%3D%22_blank%22%3E%40Excel_World_Champion%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20kept%20the%20format%20setting%20in%20the%20cells%20and%20adjusted%20settings%20as%20shown%20below%2C%20it%20works%20well.%20%3A-)%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20649px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F122189iE382C6EAA476DAEB%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%223.JPG%22%20title%3D%223.JPG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
CathySong
New Contributor

I have a confusing problem while trying to use icons in conditional formatting. To describe the problem clearly, I opened a new blank workbook..

 

I would like to use pie icons to visualize values in array A1:A10, see the captures below.

1.JPG2.JPG

 

I simply use the default base values and the rules shall be clear. The pie icons should only be based on the value of its own cell. Yet they seem to change as I change the values of other cells, and often don't make sense to me. It only works correctly when all the cells have been filled in with values.

 

3.png

 

I tried with different workbooks and changed the settings for a hundred times, yet it still doesn't work.... Do I understand the conditional formatting rule in a wrong way or something? Could someone be so kind to help?

6 Replies

Hey @CathySong 

 

The reason the conditional formatting changes as you type in a value is because Excel calculates what percentage the value you type in is to the entire column you applied the conditional formatting to.

 

Remember, when you changed the data type to percentage, the value in the cells was only formatted to percentage, the actual value is a numerical value. So for 10% it is stored as 0.1, for 20% it is 0.2

 

So, at first, when you typed in 10 in column A and excel formatted it to a percentage, the reason the black circle appeared is because Excel took the 0.1 (which was formatted to 10%) and divided it by the sum of the range you applied the formatting to, which is 0.1 + 0 + 0+ 0+ 0+ 0+ 0+ 0+ 0+ 0 = 0.1.

Therefore, 0.1/0.1 = 1, which as a percentage is 100% and according to you formatting rules, a black circle should appear for this circle

 

Same, with the second incident where you typed in 20 below the 10%.

A white circle is shown in the first cell because 0.1 / (0.1 +0.2 +0+ 0+ 0+ 0+ 0+ 0+ 0+ 0) * 100 = 16.7%, which according to your rules is below 20% and thus, must have a white circle

Solution

@CathySong 

 

That's since you took percent as the type. Excel takes entire range and calculates for the cell value in which % it within the range. If to apply icon only based on concrete cell value select Number as type and set values as 0.8, 0.6, 0.4, 0.2 in your rule.

 

Type is not connected to the format you apply to your cells (%, date, whatever).

@Excel_World_Champion Thank you so much! I've changed the data type to "Number" and the values to 0.8, 0.6  0.4, 0.2, now the problem has been solved. You just made my day!

Hey @CathySong 

 

Also, I don't think that your conditional format works even when all the cells are filled since 80% shows a three-quarter filled cell, but I think you wanted it to show a fully black circle.

 

What you can do to fix this is that change your data type back to General, and it should come up with 0.1, 0.2, etc.

 

Then Edit Formatting Rule options, Change the Type from percentage to Number:

1.PNG

 

Then just reformat the column back to the data type Percentage

@Excel_World_Champion , it's not necessary to re-format source cells, Conditional Formatting doesn't care which format is applied to the cells, it takes only values.

@Excel_World_Champion

 

I kept the format setting in the cells and adjusted settings as shown below, it works well. :-)

3.JPG

 

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
16 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
11 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies
*Updated 9/3* Syncing in Microsoft Edge Preview Channels
Elliot Kirk in Articles on
217 Replies