+ Reply to Thread
Results 1 to 4 of 4

Icon sets – conditional formatting

  1. #1
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,689

    Icon sets – conditional formatting

    Hi,

    Can anyone point me in the right direction on this?

    I have values in column AL which contain either 1 ,2 or 3.

    I would like an icon set based on the following:
    1 = Red
    2 = Yellow
    3 = Green

    Can someone advise me how to do this – I have tried format cells based on their values and to show icon sets only but this didn’t work.

    I have uploaded an example.


    Paul
    Attached Files Attached Files
    Last edited by pauldaddyadams; 12-02-2011 at 06:26 AM.

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

    Re: Icon sets – conditional formatting

    Hello,

    the values in column AL are text, not numbers. Hence the conditional formatting cannot evaluate numeric values.

    Change the values to be real numbers, for example by using a formula like

    =BB2+0

    in AL2 and copied down. Then the traffic lights will show.

    cheers,

  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: Icon sets – conditional formatting

    Your formula in column BB returns text values.

    =IFERROR(IF($AY2*AV2>$AY2*AU2,"3",IF($AY2*AV2=$AY2*AU2,"2","1")),"1")

    You can avoid the hassle of converting text to numbers in column AL if if you return numbers in BB in the first place

    =IFERROR(IF($AY2*AV2>$AY2*AU2,3,IF($AY2*AV2=$AY2*AU2,2,1)),1)

  4. #4
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,689

    Re: Icon sets – conditional formatting

    Excellent Thanks teylyn - I would have never have spotted that!

+ 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