+ Reply to Thread
Results 1 to 6 of 6

If Value is found on one sheet then highlight on another sheet of same workbook

  1. #1
    Registered User
    Join Date
    10-15-2008
    Location
    North Carolina
    MS-Off Ver
    2016
    Posts
    31

    If Value is found on one sheet then highlight on another sheet of same workbook

    Hi All, I think this is a simple one that I am overlooking. See attached workbook.

    If the serial number is already on EITHER Sheet 1 OR Sheet 2, then when I enter it on Sheet 3 I want it to automatically highlight it on Sheet 1 or Sheet 2 (whichever it may be located).

    I think this would use Conditional Formatting but cannot figure it out.

    I appreciate your help!!
    -prefcomm
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,947

    Re: If Value is found on one sheet then highlight on another sheet of same workbook

    Use the formula option - select cell A2: last cell on the first sheet, and use the formula

    =(SUMPRODUCT((A2<>"")*(A2='Sheet 2'!$A$2:$O$13)*1)+SUMPRODUCT((A2<>"")*(A2='Sheet 3'!$A$2:$O$13)*1))>0

    and similar for the other two sheets

    If you have more than the 12 rows of values, increase the ranges to match.

    Note that you could format those cells as text, and not use

    ="12345678901234567890"
    and just use this:
    12345678901234567890
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    10-15-2008
    Location
    North Carolina
    MS-Off Ver
    2016
    Posts
    31

    Re: If Value is found on one sheet then highlight on another sheet of same workbook

    Hi Bernie, I am unsure where to insert this formula. I usually use formulas like IF, SUM, VLOOKUP, etc and they are inserted within a specific cell. Where do I insert this formula?
    Last edited by prefcomm; 07-14-2017 at 08:43 AM.

  4. #4
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,947

    Re: If Value is found on one sheet then highlight on another sheet of same workbook

    Conditional Formatting has an option to use a formula to determine when a cell should be formatted. So select your cells on Sheet 1, from A2 through the end, and select Conditional Formatting, the formula option, and insert the formula into the formula box and choose your formatting. If you have an issue, I can upload a working version.

  5. #5
    Registered User
    Join Date
    10-15-2008
    Location
    North Carolina
    MS-Off Ver
    2016
    Posts
    31

    Re: If Value is found on one sheet then highlight on another sheet of same workbook

    Thanks Bernie! Question - should I do this on Sheet 3 only so that it looks at Sheet 1 and Sheet 2 to see if the serial number is found?

    When I choose A2:O15 (on ANY of the Sheets) and then do the Conditional Formatting Button and use the "Use a formula..." and insert the formula you have listed here, I get a message that says "You cannot use references to other worksheets or workbooks for Conditional Formatting criteria". Am I missing a step here? Sorry for the inconvenience and thanks again!

    -prefcomm

  6. #6
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,947

    Re: If Value is found on one sheet then highlight on another sheet of same workbook

    I'm using Excel 2016, which allows the cross-sheet reference to work. Here is my working version:
    Attached Files Attached Files

+ 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. Auto fill Log sheet from Negative values found on another sheet.
    By MrKingisin in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-12-2016, 06:41 PM
  2. Finding a column in one sheet and pasting in another sheet- ones I found dont work
    By alirizvi1 in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 06-05-2015, 04:12 PM
  3. Replies: 1
    Last Post: 09-15-2014, 01:03 PM
  4. Replies: 3
    Last Post: 03-04-2014, 01:00 PM
  5. Replies: 20
    Last Post: 01-11-2014, 05:39 AM
  6. Lookup Value from Sheet 4 in Sheet 2, if found copy Sheet 2 Active Row to Sheet 5
    By lgosso23 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-11-2013, 02:51 PM
  7. Replies: 16
    Last Post: 01-20-2013, 09:40 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