+ Reply to Thread
Results 1 to 7 of 7

Conditional formatting with icon sets

  1. #1
    Registered User
    Join Date
    05-24-2011
    Location
    Manchester, England
    MS-Off Ver
    Excel 2010
    Posts
    30

    Conditional formatting with icon sets

    Hi,

    I have attached a Yearly Goals template that I have put in place to rate the players that I coach with regards to their progress made/targtes hit.

    I wanted to use the icon sets available in excel to give the worksheet a professional look. I could not work out how to use the icon set where text was inserted so I used the following formula -

    =IF(H11="R",3,IF(H11="A",2,IF(H11="G",1,"")))

    and had the relevant icon appear in "H12", I then formatted the "H11" cell white font so it look liked when R,A or G was inserted the said icon would appear.

    The problem I keep running into is that because I have made the text column narrow and white font (as I really wanted it so it looks like just an icon appears) coaches that are filling the template in will automatically delete the icon if they have made an errror when inputting their rating!! This then deletes the formula, which in turn means the conditional formatting is not applied.

    To cut my above ramblings short lol!! I was hoping that there was anyway I could use text for icon sets to eliminate the need for using a formula!!

    Thank you

    Col
    Attached Files Attached Files

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Conditional formatting with icon sets

    Icon sets use numbers (as far as I can tell). What you did is a good workaround. To solve the problem of data entry, unlock the cells that you want the coaches to be able to change then protect the sheet.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

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

    Re: Conditional formatting with icon sets

    Does this work for you.

    First I created a list of Red,AmberGreen using the values -1,0,1. To this I applied a custom number format. "Green";"Red";"Amber"

    The data validation in H11:H16 uses the list, which I called, RAG_LIST.

    The CF icon set for H11:H16 uses the traffic lights based on the values
    >=1
    <1 >=0
    <0
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

  4. #4
    Registered User
    Join Date
    05-24-2011
    Location
    Manchester, England
    MS-Off Ver
    Excel 2010
    Posts
    30

    Re: Conditional formatting with icon sets

    Quote Originally Posted by Andy Pope View Post
    Does this work for you.

    First I created a list of Red,AmberGreen using the values -1,0,1. To this I applied a custom number format. "Green";"Red";"Amber"

    The data validation in H11:H16 uses the list, which I called, RAG_LIST.

    The CF icon set for H11:H16 uses the traffic lights based on the values
    >=1
    <1 >=0
    <0
    Could I ask the procedure you used to do the number formatting?? and what is column I for?? Could I also hide the column with RED,GREEN AMBER in it and the data validation still work??

    Thanks
    Colin

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

    Re: Conditional formatting with icon sets

    Yes you can hide the list that is in column P.

    To apply custom number select the cells and press CTRL+1
    Number tab. Select custom and enter new format mask.

  6. #6
    Registered User
    Join Date
    05-24-2011
    Location
    Manchester, England
    MS-Off Ver
    Excel 2010
    Posts
    30

    Re: Conditional formatting with icon sets

    Quote Originally Posted by Andy Pope View Post
    Yes you can hide the list that is in column P.

    To apply custom number select the cells and press CTRL+1
    Number tab. Select custom and enter new format mask.
    Many thanks for your help the worksheet looks great!!

    Just out of curiosity on the number format part. -1,0,1 why was the custom format in this order "Green";"Red";"Amber" I thought red being -1 would either be 1st or last not in the middle??

    Cheers
    Col

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

    Re: Conditional formatting with icon sets

    Have a read up on the number format construct.
    http://office.microsoft.com/en-gb/he...090.aspx?CTT=1

+ 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