Conditional Formatting on pictures

Lacey

New Member
Joined
Jul 20, 2005
Messages
20
Hi,

I want to create a "stoplight" in my excel file where bubbles are conditionally formatted to be red, yellow, or green if their values are above, below, or equal to another cell that I reference. I know how to do conditional formatting, so I can easily do this with cells, but aesthetically I would like to have red, yellow, and green circles.

So far I've been inserting circles and hand filling them with colors. Is there a way to conditionally format pictures? Or is there a more automated approach to making circles appear certain colors depending on the relationship of their value compared to another cell?

Thanks for your help!

Lacey
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Hi Lacey,

While it is not difficult with a few lines of VBA code to change the color fill of a circle (drawing object or Shape object), there is an easier way that permits the use of Conditional Formatting. Simply get a filled circle from a font such as Monotype Sorts, or use a filled circle character from the Arial Unicode character set using the Charmap.exe utility. Then you can change the color of the circle using standard font color control with Conditional Formatting.

To use the Monotype Sorts approach, simply change the font of the cell to Monotype Sorts, then enter the character "l" (lower case L). It should appear as a small circle. Now just increase the font size until the circle is the size you want.

If you want to use the unicode approach without changing from the Arial font, simply paste the character "●" into the cell, copying it directly from the text of this posting.

Keep Excelling.

Damon
 
Upvote 0
Conditional Formatting on Pictures

Thank you so much! That is a much easier alternative to what I was thinking I would have to do. But now I run into another issue that I didn't think of before...is there a way to have my data in one cell and my "stoplight" in another (that way I can hide the data columns and we can just look at the colors to see what's happening)? When I have the "●" in one cell I can't put number values in with it or when the conditional formatting is referencing the data against the other cell, it doesn't see it as a number value.

I guess what I want is excel to look at cell A and determine if the data is greater than the data in cell B. If it is greater, I want the "●" in cell C to turn green. Is that possible to do? I wouldn't know where to begin...

Thanks!

Lacey
 
Upvote 0
Hi Lacey,

Yes, the Conditional Formatting formula can reference other cells. When you do the Conditional Formatting on the cell in C, select as the condition type "Formula Is", then enter as the condition

=(A1>B1)

which yields TRUE if A1 > B1, and of course set the font color to green.

By using two conditions you could easily have the circle turn green if A1 > B1, amber if A1=B1, and red if A1 < B1. The third (missing) condition would not be needed since you can simply set the font manually to the default color (red?) and let the conditional formatting override this when their conditions are met.

Keep Excelling.

Damon
 
Upvote 0

Forum statistics

Threads
1,215,103
Messages
6,123,105
Members
449,096
Latest member
provoking

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top