Conditional Format Objects?


D

djbeard83

I have a spreadsheet that tracks prices for different commodities
month-to-month that is frequently used for presentations. Each month is
listed in columns and at the last column there are arrows indicating the most
recent trend (red up arrow for increases month over month, green down arrow
for decreases). Currently I have to manually add or delete these shapes
based on which direction prices are moving. Is there a way to use formulas
or conditional formatting to influence objects such as drawn arrows? It
would be easy to do a conditional formatting to change a cell from red to
green based on a formula, but I don't know of any way to conditional format a
shape. Is this possible?
 
Ad

Advertisements

G

Gord Dibben

If you have Excel 2007 CF has the up/down/sideways arrows.

If running earlier version you will need VBA

I can send a workbook to your email if you contact me through email at

gorddibbATshawDOTca change the obvious.

Or I can upload the file to a site like savefile.


Gord Dibben MS Excel MVP
 
M

MyVeryOwnSelf

I have a spreadsheet that tracks prices for different commodities
month-to-month that is frequently used for presentations. Each month
is listed in columns and at the last column there are arrows
indicating the most recent trend (red up arrow for increases month
over month, green down arrow for decreases).

Here's one way with Excel 2003.

First put in the cell a formula that evaluates to -1 for decreases and +1
for increases.

Then format the cell to have the font "Wingdings 3."

Then select the cell and use
Format > Cells > Number > Custom
And in the "Type" box put
[Red]"XXXX";[Green]"YYYY"
but don't really put XXXX and YYYY.

Instead of XXXX type
Alt-0219
Instead of YYYY type
Alt-0220
That is, hold down the right Alt key while typing the four digits 0219 (or
0220) on the numeric keypad.

This should do it.

If sometime you want to explore other symbols and see their numeric codes,
select some cell and look at
Insert > Symbol > Symbols
Then choose a font like Symbol or Wingdings or Webdings.
 
Ad

Advertisements

D

djbeard83

All of these years I've wondered about what use Wingdings could have. Thanks
for the suggestion - it works great!

MyVeryOwnSelf said:
I have a spreadsheet that tracks prices for different commodities
month-to-month that is frequently used for presentations. Each month
is listed in columns and at the last column there are arrows
indicating the most recent trend (red up arrow for increases month
over month, green down arrow for decreases).

Here's one way with Excel 2003.

First put in the cell a formula that evaluates to -1 for decreases and +1
for increases.

Then format the cell to have the font "Wingdings 3."

Then select the cell and use
Format > Cells > Number > Custom
And in the "Type" box put
[Red]"XXXX";[Green]"YYYY"
but don't really put XXXX and YYYY.

Instead of XXXX type
Alt-0219
Instead of YYYY type
Alt-0220
That is, hold down the right Alt key while typing the four digits 0219 (or
0220) on the numeric keypad.

This should do it.

If sometime you want to explore other symbols and see their numeric codes,
select some cell and look at
Insert > Symbol > Symbols
Then choose a font like Symbol or Wingdings or Webdings.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top