+ Reply to Thread
Results 1 to 8 of 8

Formatting using multiple sheets and search function.

  1. #1
    Registered User
    Join Date
    10-07-2019
    Location
    Sweden
    MS-Off Ver
    Office Busines 2019
    Posts
    8

    Formatting using multiple sheets and search function.

    I want to use conditional formatting on column E but I canít seem to get the formula right. Let me explain what Iím trying to achieve with an example.



    I have 2 sheets in the same workbook. On sheet 1 in column D I have the product codes and in column E I have a value (Both columns have text).

    Then on sheet 2 I have a product reference list. Column A has the product codes and Column C then has a value (Again both columns have text). The same products in both sheets should have the same value in column E(sheet 1) and C(sheet 2).

    What Iím trying to format is column E on sheet 1. I want it to fill orange if the value is not the same as the corresponding product on sheet 2 in the C column. Need help with the formula.



    I hope this has been clear enough to understand.

    I have tried using the =COUNTIF() function but cant get it to work with this.

    Thanks in advance for any help.
    Attached Files Attached Files
    Last edited by Unlimited007; 05-29-2020 at 01:13 PM. Reason: added an attachment

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    13,764

    Re: Formatting using multiple sheets and search function.

    HOW TO ATTACH YOUR SAMPLE WORKBOOK:

    Fast answers need clear examples. Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. Just before posting, scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    10-07-2019
    Location
    Sweden
    MS-Off Ver
    Office Busines 2019
    Posts
    8

    Re: Formatting using multiple sheets and search function.

    I have tried to add an attachment to this comment. Hopefully it appears and it might clear up the text above.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    13,764

    Re: Formatting using multiple sheets and search function.

    I should solve it like this.

    F2 =IF(E2=VLookup(D2,Sheet2!$A$1:$C$5,3,0),"","attention")

    See the attached file.

  5. #5
    Registered User
    Join Date
    10-07-2019
    Location
    Sweden
    MS-Off Ver
    Office Busines 2019
    Posts
    8

    Re: Formatting using multiple sheets and search function.

    Thanks oeldere

    Is there any way to make it compatible with conditional formatting to highlight the cell? I have data on both sides of the column. I dont know if I am able to add columns as we have a program that adds data to the sheet and it might screw with that.

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    13,764

    Re: Formatting using multiple sheets and search function.

    CF (red color) for E2

    =E2<>Vlookup(D2,Sheet2!$A$1:$C$5,3,0)

    See the attached file.

  7. #7
    Registered User
    Join Date
    10-07-2019
    Location
    Sweden
    MS-Off Ver
    Office Busines 2019
    Posts
    8

    Thumbs up Re: Formatting using multiple sheets and search function.

    Thanks a lot for the help oeldere.

  8. #8
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    13,764

    Re: Formatting using multiple sheets and search function.

    Thanks for the rep.

    Glad I could help.

    Thanks for marking the question solved.
    Last edited by oeldere; 05-30-2020 at 02:13 AM.

+ 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. IF Function between 2 sheets with multiple results and formatting - Data export
    By McCaughley7 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-06-2020, 11:22 PM
  2. [SOLVED] Function to search for string across multiple sheets
    By chaddug in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-11-2014, 05:46 PM
  3. Search Function with multiple sheets
    By scotsman88 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-23-2014, 11:22 AM
  4. Search function across multiple work sheets
    By evgn12 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-24-2014, 11:46 AM
  5. LOOKUP Array & Index Function (Search data across multiple sheets)
    By dizzle in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-02-2013, 09:26 AM
  6. Replies: 3
    Last Post: 02-22-2012, 11:40 AM
  7. Running a search function on multiple sheets
    By sjlouis in forum Excel General
    Replies: 1
    Last Post: 01-19-2012, 03:47 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