+ Reply to Thread
Results 1 to 5 of 5

Formatting words to change colours

  1. #1
    Forum Contributor
    Join Date
    06-11-2008
    MS-Off Ver
    2003
    Posts
    220

    Formatting words to change colours

    Please see attached doc.

    Sheet one shows 3 tables with percentage figures. Group A, Group B and Group C. Each figure is shown red or green. On sheet 2 is a smaller table showing the month of January. I need the names on sheet 2 to match the cells from the other table on sheet 1. For example in Group A, Dan, Dean and Matt should be shown as Red on sheet 2 and Rich should be in green.

    Hope this makes sense.

    Thanks alot!!
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Formatting words to change colours

    See attached..

    You need to use Named ranges if you are referencing other sheets within Conditional Formatting...

    So I named each group in Sheet1, GroupA, GroupB and GroupC

    Then I named each respective Target Percentage: GroupATarget, GroupBTarget and GroupCTarget

    Then applied conditional Formatting to GroupA names in Sheet2:

    =INDEX(GroupA,MATCH(D7,OFFSET(GroupA,0,MONTH($C$5&" 1, 2010")-1,,1),0),2)<GroupATarget


    and

    =INDEX(GroupA,MATCH(D7,OFFSET(GroupA,0,MONTH($C$5&" 1, 2010")-1,,1),0),2)>=GroupATarget

    and similarly for other 2 groups replaceing GroupA for GroupB and GroupC as appropriate in both formulas.
    Attached Files Attached Files
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    06-11-2008
    MS-Off Ver
    2003
    Posts
    220

    Re: Formatting words to change colours

    Thanks for your time on this, much apreciated. The names on Sheet 2 however dont appear to be changing colour. Any suggestions?

  4. #4
    Forum Contributor
    Join Date
    06-11-2008
    MS-Off Ver
    2003
    Posts
    220

    Conditional formatting cells to show red or green text

    Having thought about it, i think im trying to be too complicated, see attached new version.

    Can i conditional format the cells with the names in column B to be shown in either red or green text?

    The conditional format I have tried and failed with is =IF(B6="Y") then i have formatted the text as green...............=IF(B6="N") then i have formatted the text red.

    It is coming up with an error.

    Thanks,
    Attached Files Attached Files

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Formatting words to change colours

    Are you sure about the previous one not working.. I just tried a couple and still worked....

    Anyways, the new sheet, the formulas should be =C6="Y" and =C6="N"

+ 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