I'm having some problems with data bars that I hope someone can explain to me. This may get a bit long, so please bear with me...
I have a worksheet with a column containing percentages that represent the level of completion of some tasks. They begin as all zeroes and I select the range of cells and apply Conditional Formatting-->Data Bars-->Gradient Fill, Green Bars. Everything
is good so far, with no bars showing in the percentage cells. Now, if I change one of the cells to 10%, the data bar appears, but instead of filling up 10% of the space for the cell, it fills up 100%. Hmm, "Strange," I think to myself. So I change another
0% to 50% and the 50% cell's data bar fills it completely and the 10% cell data bar shrinks a bit, but is still clearly more than 10% of its cell width. So, they appear to interact. I enter 100% into a cell, and then the 10% and 50% cells now look correct
and the 100% cell is completely filled. Just for the heck of it, I change another cell to 200% and it becomes full and all the other data bars adjust accordingly.
I investigate a bit further and find that the data bars' default setting for minimum and maximum values is set to Automatic, so the above behavior begins to make some sense. So, I change the rule's default from Automatic to Percent, which sets minimum to
0 and maximum to 100. So, I think, that will correct the behavior and I'll get what I want; 10% will have a 10% bar and 50% will have a 50% bar as expected, and the values will no longer be dependent upon one another. But no, this is not what happens. The
behavior remains the same as above.
Next, I try setting the rule to Number and enter a minimum value of 0 and a maximum value of 1. Now, I get the behavior that I wanted all along. It's not the way I probably would have designed it, but at least I now know how it works.
Again, I go back to my workbook and select another sheet where all values are 0% except for one, which is 70%. I apply the Conditional Formatting to create the data bars, and without changing
any settings (everything is still at the default of Automatic), the 70% bar fills only 70% of the cell width. What??? Why are data bars behaving differently on this worksheet?
Lastly, I check another worksheet that already has data bars applied and it looks generally okay (it has some cells with a maximum of 100% in them), but I notice that two adjacent cells--one above the other--both are at 95%, but one fills the entire cell
width and the other fills about 95% as it should. I monkeyed around with various settings to try to correct the 95% cell that was 100% filled, but could find nothing that would correct the issue. I finally cleared all conditional formatting from the sheet
and reapplied the data bars and that corrected the situation.
So, in summary, I'm seeing inconsistent behavior with data bars; sometimes they work as expected where 70% amongst other values of 0% shows up as 70% filled and sometimes shows up as 100% filled unless there is at least one other value that is set to 100%.
Also, in the third and final case, it appears that they can somehow get corrupted such that almost anything can happen. Is what I'm seeing normal with data bars? Which behavior should they have: the initial behavior where they're dependent on the maximum
value or the second behavior where the data bars act independently?
I'd appreciate any input those of you with more experience may be able to provide!
P.S. I am running this on a Dell laptop with Windows 7 Enterprise and SP2 as well as Office 2010 with SP2, so I should be up-to-date with all patches, etc.