+ Reply to Thread
Results 1 to 5 of 5

Help. Conditional Formatting formula for separate sheets

  1. #1
    Registered User
    Join Date
    03-20-2022
    Location
    Kentucky
    MS-Off Ver
    2016
    Posts
    3

    Help. Conditional Formatting formula for separate sheets

    I need help with a conditional formatting formula.
    I have a list on sheet1 Column C that I want to highlight yellow if it appears on sheet2 Column A:A (this list keeps adding up).

    At the end, I will create a macro to run this but I primarily need help with the formula.

    Thank You

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Help. Conditional Formatting formula for separate sheets

    If you are familiar with CF, you would do it the exact same was as if you where doing it in the same sheet.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    03-20-2022
    Location
    Kentucky
    MS-Off Ver
    2016
    Posts
    3

    Re: Help. Conditional Formatting formula for separate sheets

    This is what I have so far but its not working as it should.

    =MATCH(C2,INDIRECT("sheet2!A:A"),0)

    I am only getting a few matches but not all on Column C. Also, some are getting highlighted that should not.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Help. Conditional Formatting formula for separate sheets

    Why are you using INDIRECT, and not just a regular reference there?

    =MATCH(C2,sheet2!A:A,0)

  5. #5
    Registered User
    Join Date
    03-20-2022
    Location
    Kentucky
    MS-Off Ver
    2016
    Posts
    3

    Re: Help. Conditional Formatting formula for separate sheets

    I used this formula on the last column and hid it in the macro at the end:
    IF (COUNTIF(xyxyx!$A:$A, G2)=0, "true", "nottrue"

    and just highlighted the true. worked well

+ 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] Formula for Conditional Formatting based on a separate table of data
    By kkavanagh in forum Excel General
    Replies: 7
    Last Post: 12-14-2021, 01:27 PM
  2. Google Sheets Conditional Formatting Not Accepting this Formula
    By nrguerrieri in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-24-2020, 08:59 PM
  3. [SOLVED] Formula based conditional formatting across multiple sheets
    By bsrivatsa in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-30-2020, 09:51 PM
  4. Conditional formatting not copying properly to separate sheets
    By Keegan1116 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-25-2020, 09:48 AM
  5. [SOLVED] Conditional Formatting Separate Columns
    By Remotruker in forum Excel General
    Replies: 15
    Last Post: 03-31-2015, 04:22 PM
  6. Using conditional formatting within a formula between sheets
    By MsHclassroomhelp in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-14-2015, 01:39 PM
  7. Conditional formatting on separate sheets
    By FDT22 in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 01-21-2013, 04:39 PM

Tags for this Thread

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