+ Reply to Thread
Results 1 to 21 of 21

Conditional Formatting Over 2 worksheets

  1. #1
    Registered User
    Join Date
    08-11-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    17

    Conditional Formatting Over 2 worksheets

    Good Afternoon

    I have an issue with conditional formatting in that excel will not allow it to go over 2 worksheets in a workbook.

    On one sheet i have a set of questions with Yes or no answers or tick or cross whichever can be entered.

    On the next sheet i have the list of days Monday - friday

    I want to be able to change the cell to Green if all questions are completed and red if it has not been completed or there is a No or x in the box.

    Is this possiable. It also has to stay on seperate sheets.

    Many Thanks

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

    Re: Conditional Fomatting Over 2 worksheets

    If you used named ranges in the reference sheet, then you can use conditional Formatting over the 2 sheets.
    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 Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Conditional Fomatting Over 2 worksheets

    This will probably be easier to answer if you upload a sample workbook.

    However, Conditional Formatting does not allow references to other worksheets or workbook. On the sheet in which you want to apply the CF, you can use a helper column to return a result, such as true or false, and base the CF on that cell.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  4. #4
    Registered User
    Join Date
    08-11-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Conditional Fomatting Over 2 worksheets

    Quote Originally Posted by NBVC View Post
    If you used named ranges in the reference sheet, then you can use conditional Formatting over the 2 sheets.
    Thanks for your reply

    Would you be able to explain that in idiot terms...I'm not too advanced in excel.

    I have attached the file for you to view if this is easier for you to understand what im trying to do.

    Many 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: Conditional Fomatting Over 2 worksheets

    So, in this workbook you attached, what should exactly be happening in Sheet2 and why?

  6. #6
    Registered User
    Join Date
    08-11-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Conditional Fomatting Over 2 worksheets

    Quote Originally Posted by NBVC View Post
    So, in this workbook you attached, what should exactly be happening in Sheet2 and why?
    In Sheet 2 if any of the questions are Blank or have an X i need the cell under monday to be Red

    If all the cells for monday on sheet 1 have a tick mark then the cell needs to be green below monday.

    Thanks

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

    Re: Conditional Fomatting Over 2 worksheets

    You have more than 1 Monday column in Sheet1.. do all need to be filled?

    If it is only the first Monday column you are concerned with... questions 9 and 10 have no checks so should the Sheet2 Monday be red?

  8. #8
    Registered User
    Join Date
    08-11-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Conditional Fomatting Over 2 worksheets

    Quote Originally Posted by NBVC View Post
    You have more than 1 Monday column in Sheet1.. do all need to be filled?

    If it is only the first Monday column you are concerned with... questions 9 and 10 have no checks so should the Sheet2 Monday be red?
    Sorry i have included the correct copy now.

    I need one for each monday of the month as its a daily checklist. This version has correct questions with only tick or x answers
    Attached Files Attached Files

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

    Re: Conditional Fomatting Over 2 worksheets

    For this maybe it is just as easy to use an alternative to Named ranges...

    We can use INDIRECT() to reference cells on other sheets.

    See attached.

    This is applied only to Monday in cell B2 of Sheet2

    Do the same for each other cell, only changing the referenced ranges to the corresponding ranges on other sheet.

    Alternatively, you can name each range on Sheet1, for example

    G14:G29 would be named Mon1

    H14:H29 would be named Tue1

    etc

    then your CF formulas would be

    =Countif(Mon1,"ü")=15 ...green

    and

    =Countif(Mon1,"ü")<>15 ...red
    Attached Images Attached Images

  10. #10
    Registered User
    Join Date
    08-11-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Conditional Fomatting Over 2 worksheets

    Quote Originally Posted by NBVC View Post
    For this maybe it is just as easy to use an alternative to Named ranges...

    We can use INDIRECT() to reference cells on other sheets.

    See attached.

    This is applied only to Monday in cell B2 of Sheet2

    Do the same for each other cell, only changing the referenced ranges to the corresponding ranges on other sheet.

    Alternatively, you can name each range on Sheet1, for example

    G14:G29 would be named Mon1

    H14:H29 would be named Tue1

    etc

    then your CF formulas would be

    =Countif(Mon1,"ü")=15 ...green

    and

    =Countif(Mon1,"ü")<>15 ...red
    Thanks again for the reply

    I have entered the count if statement for the indirect but it stays red doesnt change to green
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    08-11-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Conditional Fomatting Over 2 worksheets

    Quote Originally Posted by jason_1 View Post
    Thanks again for the reply

    I have entered the count if statement for the indirect but it stays red doesnt change to green
    Ok i sorted that issue

    They have changed what they wanted me to do. They want to add a column into the end of the week with status and if any of the actions in the week have a X the status is Red

    On the dails sheet it doesn't matter if it is a tick or a cross as long as the cells are filled with a ü (Tick) or a cross the cell should be green.

    Sorry about this, i did try to change it but couldn't work out how

  12. #12
    Registered User
    Join Date
    08-11-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Conditional Fomatting Over 2 worksheets

    Quote Originally Posted by jason_1 View Post
    Ok i sorted that issue

    They have changed what they wanted me to do. They want to add a column into the end of the week with status and if any of the actions in the week have a X the status is Red

    On the dails sheet it doesn't matter if it is a tick or a cross as long as the cells are filled with a ü (Tick) or a cross the cell should be green.

    Sorry about this, i did try to change it but couldn't work out how
    The Only issue i can see is if there are all ticks for monday the status for the week would be green, but if you use the count cells option which would be 45 cells to count it would show the status of the week as red as the other cells were blank.

    AHH confusing stuff

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

    Re: Conditional Fomatting Over 2 worksheets

    Post a new sample workbook and show some expected results.

  14. #14
    Registered User
    Join Date
    08-11-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Conditional Fomatting Over 2 worksheets

    Quote Originally Posted by NBVC View Post
    Post a new sample workbook and show some expected results.
    I have now attached the updated copy. sorry for the delay i have been out to dinner after work.

    What i need it to do is to ignore the day until it is filled in so it stays clear.

    With the status for the week, i need it to be green if none of the boxes for the week have a x but to change to red if there is an x that week, but need it to ignore days that arn't filled in or it will be false reporting issues when there are none.

    Hopefuly that makes sense.
    Attached Files Attached Files

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

    Re: Conditional Formatting Over 2 worksheets

    Do you mean as per attached?

    Change "x" to whatever symbol you use to mark "x"
    Attached Images Attached Images

  16. #16
    Registered User
    Join Date
    08-11-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Conditional Formatting Over 2 worksheets

    Ill try to explain this better as it confused me whn i was asked about it.

    Each day a member of staff with tick or x the questions. On sheet 2 i need it to only show green if the day has been completed regardless of what is entered into the box (Tick or X)

    The status of the week is to show issues when an X is entered into the sheet. So if Monday was all ticks the status would be green. If tuesday was all ticks then it would be green still. If there was a question on thursday that was answered with an X then the status would then turn red. then friday if it was all ticks again the status is still red.

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

    Re: Conditional Formatting Over 2 worksheets

    So we are just looking at cell G2, "status"

    Then for red:

    =COUNTIF(INDIRECT("PSE!$G$14:$K$22"),"X")>0

    and for green:

    =COUNTIF(INDIRECT("PSE!$G$14:$K$22"),"X")=0

  18. #18
    Registered User
    Join Date
    08-11-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Conditional Formatting Over 2 worksheets

    Quote Originally Posted by NBVC View Post
    So we are just looking at cell G2, "status"

    Then for red:

    =COUNTIF(INDIRECT("PSE!$G$14:$K$22"),"X")>0

    and for green:

    =COUNTIF(INDIRECT("PSE!$G$14:$K$22"),"X")=0
    Ah that seems to work great

    How do i get the monday to friday to go green after all questions are entered?

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

    Re: Conditional Formatting Over 2 worksheets

    Does it matter if they are "x" or ticks?

    If not

    =Counta(INDIRECT("PSE!$G$14:$G$22"))=9

    repeat for each day changing the range references, respectively

  20. #20
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Conditional Formatting Over 2 worksheets

    Based on the OP's attachment being an exact duplicate in this thread, the OP has cross-posted here under a different name:

    Conditional Formattion Over 2 Worksheets

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

    Re: Conditional Formatting Over 2 worksheets

    Tnanks Palmetto

    Jason,

    Your post does not comply with Rule 8 of our Forum RULES. Cross-posting is when you post the same question in other forums on the web. You'll find people are disinclined to respond to cross-posts because they may be wasting their time solving a problem that has been solved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser)to the cross-post. Expect cross-posts without a link to be closed a message will be posted by the moderator explaining why. We are here to help so help us help you!

+ 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