+ Reply to Thread
Results 1 to 7 of 7

Conditional Formatting between sheets

  1. #1
    Forum Contributor
    Join Date
    11-30-2012
    Location
    Seattle, WA
    MS-Off Ver
    Office 2007
    Posts
    212

    Conditional Formatting between sheets

    How do I phrase the conditional formatting formula if I want it to highlight a cell on the sheet 'Boards' based on the contents of a cell on the sheet 'Wk1'?

    In the sample spreadsheet, on the 'boards' tab I would like to highlight a cell in column D only if for the corresponding board registration number on the 'Wk1' tab, column K is "Y". My actual spreadsheet will have 52 tabs to start with and the 'boards' tab will consolidate all the data from the other tabs.
    Attached Files Attached Files
    "Laugh? I thought I'd die!"

    Jimbo?

  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 between sheets

    For D2:Dx where x is the row of data, apply this rule using a formula:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Contributor
    Join Date
    11-30-2012
    Location
    Seattle, WA
    MS-Off Ver
    Office 2007
    Posts
    212

    Re: Conditional Formatting between sheets

    Thanks for the quick response. I tried this and got an error I've never seen before:

    Capture.JPG

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Conditional Formatting between sheets

    That error has been around for a long time - you are not allowed to explicitly reference another worksheet in a CF condition. However, you can usually get round it by making use of a named range. Define the named range data_table to refer to A2:K630 on the Wk1 sheet. Then in the Boards sheet you can select all the cells from D2 to D773 and then click on Conditional Formatting | New Rule | Use a Formula... , then you can use this formula in the dialogue box:

    =VLOOKUP(D2,data_table,11,0)="y"

    Click on the Format button | Fill tab and choose your colour, then OK twice to exit the dialogue box.

    I only found 4 matching records when I applied this to your sample file.

    Hope this helps.

    Pete

  5. #5
    Forum Contributor
    Join Date
    11-30-2012
    Location
    Seattle, WA
    MS-Off Ver
    Office 2007
    Posts
    212

    Re: Conditional Formatting between sheets

    Thank you for your help!

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Conditional Formatting between sheets

    You're welcome - thanks for feeding back.

    Pete

  7. #7
    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 between sheets

    Sorry about that. I thought that restriction was removed in 2007, but it must have been later. I have 2013 and 2016, and it works fine in 2016.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] CONDITIONAL FORMATTING from two sheets
    By azbi in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-28-2015, 01:22 AM
  2. conditional formatting between sheets
    By janenecd in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-24-2015, 08:28 PM
  3. Conditional Formatting Between Two Sheets
    By nxglad in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-12-2013, 05:46 AM
  4. [SOLVED] Conditional formatting across sheets
    By djcfisher in forum Excel General
    Replies: 3
    Last Post: 06-01-2012, 08:33 AM
  5. Conditional Formatting Across Sheets
    By miamihurricanes in forum Excel General
    Replies: 0
    Last Post: 05-12-2011, 04:40 PM
  6. conditional formatting between sheets
    By gfstearns in forum Excel General
    Replies: 1
    Last Post: 03-24-2011, 04:33 PM
  7. Conditional formatting between 2 sheets
    By KINNEY0201 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-16-2010, 09:39 PM

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