+ Reply to Thread
Results 1 to 10 of 10

Conditional Formatting to Highlight a Cell if found in another list (Same Workbook)

  1. #1
    Valued Forum Contributor
    Join Date
    03-23-2008
    Location
    Tennessee
    MS-Off Ver
    Office 2007
    Posts
    706

    Conditional Formatting to Highlight a Cell if found in another list (Same Workbook)

    Greetings, Gurus.

    First - It appears the search function isn't working. I tried 3 times and just go hng up on "Waiting on Excel Forum...."

    How would I conditionally format a cell so that if it finds the number entered in that cell in another worksheet it will highlight the cell yellow.

    The name of the other worksheet is "NPA Log" if that is needed.

    Thanks in advance for any help you can offer.

    Have a good one.
    Last edited by [email protected]; 01-20-2017 at 08:39 PM.

  2. #2
    Registered User
    Join Date
    10-12-2013
    Location
    Seattle, USA
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    36

    Re: Conditional Formatting to Highlight a Cell if found in another list (Same Workbook)

    When looking to find the number in "another worksheet", do you need to check only a specific cell in that sheet, or a range in that sheet, or the whole sheet?

    Please consider uploading a sample workbook with 2 sheets (one with the cells you are working on, the other being the sheet where you are looking for the match). To upload it, click the Go Advanced button on your post, and on the advanced posting page click Manage Attachments.

  3. #3
    Valued Forum Contributor
    Join Date
    03-23-2008
    Location
    Tennessee
    MS-Off Ver
    Office 2007
    Posts
    706

    Re: Conditional Formatting to Highlight a Cell if found in another list (Same Workbook)

    I am trying to highlight any cells entered in Column E of the "NPA" worksheet yellow if they are found anywhere in Column F of the "NPA Log" worksheet.

    Sample attached.
    Attached Files Attached Files

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Conditional Formatting to Highlight a Cell if found in another list (Same Workbook)

    What version of Excel does this have to work in?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Valued Forum Contributor
    Join Date
    03-23-2008
    Location
    Tennessee
    MS-Off Ver
    Office 2007
    Posts
    706

    Re: Conditional Formatting to Highlight a Cell if found in another list (Same Workbook)

    Hopefully all of them , but I am using Office 2010.

    And by the way, I am terrified of volatile functions or array formulas.

  6. #6
    Registered User
    Join Date
    10-12-2013
    Location
    Seattle, USA
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    36

    Re: Conditional Formatting to Highlight a Cell if found in another list (Same Workbook)

    Use the following formula to determine which cells get the yellow format: =IF(NOT(ISBLANK(E2)),ISNUMBER(MATCH(E2,'NPA Log'!$F:$F,0)),FALSE)

    This is for conditional formatting in cell E2: once you've got it in there, just apply the conditional formatting to as many cells as you need in Col E. Your example is attached with conditional formatting implemented down as far as E17.
    Attached Files Attached Files

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Conditional Formatting to Highlight a Cell if found in another list (Same Workbook)

    If you want it to work in "all of them" then you'll have to create a named range.

    Goto the Formulas tab>Define Name

    Name: KeyNum (or whatever you want to call it)
    Refers to: ='NPA Log'!$F$2:$F$17
    OK

    Then, setup the conditional formatting.

    Let's assume you want to format the range E2:E10 on the NPA sheet.

    Select the ENTIRE range E2:E10 starting from cell E2.
    Cell E2 will be the active cell. The active cell is the
    one cell in the selected range that is not shaded. The
    formula will be relative to the active cell.

    Goto the Home tab>Styles>Conditional Formatting>
    Manage rules>New rule>Use a formula to determine
    which cells to format

    Enter this formula in the box below:

    =MATCH(E2,KeyNum,0)

    Click the Format button
    Select the desired style(s)
    OK out

  8. #8
    Valued Forum Contributor
    Join Date
    03-23-2008
    Location
    Tennessee
    MS-Off Ver
    Office 2007
    Posts
    706

    Re: Conditional Formatting to Highlight a Cell if found in another list (Same Workbook)

    Brilliant, Guys. Thanks. I went with ianpage's solution for now, but I will keep Tony's in my hip pocket if anyone complains their workbook isn't working correctly.

    This one is SOLVED. Thanks again, and have a great weekend!

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Conditional Formatting to Highlight a Cell if found in another list (Same Workbook)

    You're welcome. Thanks for the feedback!

  10. #10
    Registered User
    Join Date
    10-12-2013
    Location
    Seattle, USA
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    36

    Re: Conditional Formatting to Highlight a Cell if found in another list (Same Workbook)

    Ditto! Happy to help.

+ 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. Replies: 4
    Last Post: 01-22-2014, 12:37 AM
  2. Highlight a row if conditional formatting is used in cell
    By brucey2343 in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 08-16-2013, 06:49 AM
  3. Replies: 6
    Last Post: 05-30-2013, 02:09 AM
  4. [SOLVED] Fx to highlight multiple values from a list using conditional Formatting
    By HooligaD in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-08-2013, 03:03 PM
  5. highlight a cell with conditional formatting
    By sp1974 in forum Excel General
    Replies: 0
    Last Post: 09-10-2011, 12:44 AM
  6. Conditional formatting if value in cell is found in a named range
    By Grumpy Grandpa in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-15-2006, 11:35 AM
  7. [SOLVED] How do I highlight a cell using conditional formatting and dates
    By shane561 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-27-2005, 12:10 AM
  8. Conditional formatting-how to highlight a cell
    By jacold in forum Excel General
    Replies: 0
    Last Post: 01-14-2005, 08:10 AM

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