+ Reply to Thread
Results 1 to 10 of 10

Using icon sets in conditional formatting

  1. #1
    Registered User
    Join Date
    11-16-2009
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    11

    Using icon sets in conditional formatting

    Hello

    I am trying to set up conditional formating to use icon sets (3 arrows) to demonstrate monthly trends. Each column in my header row is a month and then I have 4 rows below containing figures. I just need to display a green up arrow if the value in B3 is higher than B2, yellow if it is the same and red if it is lower. I then need to expand this across all columns so that B4 compares to B3, B5 to B4, etc. I do not need to compare across rows (ie B3 to C3)
    This sounds like it should be easy to do but I am struggling to get it to work. Any help greatly appreciated.
    Howard

  2. #2
    Valued Forum Contributor JeanRage's Avatar
    Join Date
    03-02-2009
    Location
    Nice, France
    MS-Off Ver
    Excel 2003
    Posts
    705

    Re: Using icon sets in conditional formatting

    Hello,

    Among many possibilities ... see attached ...

    HTH
    Attached Files Attached Files

  3. #3
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Using icon sets in conditional formatting

    Hi,

    you'll need to use a formula to determine the character for the cell. You can choose arrows from the wingdings or webdings font sets that point in the right directions.

    These arrows will have an equivalent character in a font like Arial. Use conditional formatting and check for the existence of that character in the cell.

    For example, the character "ñ" (=Char(241) formatted in wingdings is an up arrow

    If a formula determines that the cell shows a "ñ", that cell can be formatted with wingdings font to show the up arrow.

    Create a conditional format - Highlight cell rules - Equal to and enter

    ñ

    in the first box, then select green for the font color.

    Apply similar rules for the other characters,

    =char(240) for arrow right
    =char(242) for down arrow.

    hth

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Using icon sets in conditional formatting

    Much nicer, your arrows, Jean!

  5. #5
    Registered User
    Join Date
    11-16-2009
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Using icon sets in conditional formatting

    Jean

    sorry but my firewall is blocking that file. Any chance you could zip it and repost?

    Many thanks

    Howard

  6. #6
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Using icon sets in conditional formatting

    Hi, I'm just quoting from the file you can't download:

    [code]Use following three letters. If formatted in Wingdings you get
    é {up arrow}
    è {right arrow}
    ê {down arrow}
    here are the char() codes

    é 233

    è 232

    ê 234


    The arrows look much nicer than the ones I suggested, and the coloring with conditional format stays the same approach.

    hth

  7. #7
    Registered User
    Join Date
    11-16-2009
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Using icon sets in conditional formatting

    OK, so are you saying there is no way to use a formula with conditional formatting to achieve this? I have to manually paste the arrows into each cell?

  8. #8
    Valued Forum Contributor JeanRage's Avatar
    Join Date
    03-02-2009
    Location
    Nice, France
    MS-Off Ver
    Excel 2003
    Posts
    705

    Re: Using icon sets in conditional formatting

    Quote Originally Posted by howardphillis View Post
    OK, so are you saying there is no way to use a formula with conditional formatting to achieve this? I have to manually paste the arrows into each cell?
    No ...
    The solution is to use the specific characters in the formula you are using when setting up your conditional formatting ...

    Should you have a difficulty, just post a sample worksheet ...

    HTH

  9. #9
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: Using icon sets in conditional formatting

    If you want to use the 2007 icons CF you will need to use a help column.
    This column will use a formula to perform a comparison test resulting in 2 or 1 or 0.

    The CF can then be set to use Number
    >=2 Green up arrow
    >=1 Amber arrow
    else Red down arrow

    The numbers can be suppressed in the helper column.

    So for values in B2:B5 use this formula in C3 copied down to C5

    =IF(B3>B2,2,IF(B3=B2,1,0))
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

  10. #10
    Registered User
    Join Date
    11-16-2009
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Using icon sets in conditional formatting

    I've just realised that I was a bit misleading in my original post. I didn't mean that I was comparing B3 to B2, I meant C2 to B2, and D2 to C2, etc.
    But I think I get the general principle Andy, thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1