+ Reply to Thread
Results 1 to 2 of 2

Conditional formatting when values equal values from another sheet

  1. #1
    Registered User
    Join Date
    07-15-2013
    Location
    canton, ohio
    MS-Off Ver
    Excel 2010
    Posts
    30

    Conditional formatting when values equal values from another sheet

    Will someone help me figure out how to produce a conditional format based on the following :

    Sheet1 has information in the following columns
    A - Location
    B - SKU

    Sheet2 is a list that I made containing
    A - Location
    B - SKU

    When sheet1 A and B match a combination on sheet2 A and B, I need to bold Sheet 1 A, B, C

    For example,

    Sheet1 :
    A B
    125 8986
    125 3546
    125 7487
    125 3211

    126 8986
    126 3546
    126 7487
    126 3211

    134 8986
    134 3546
    134 7487
    134 3211

    166 8986
    166 3546
    166 7487
    166 3211

    Sheet2
    134 3546
    134 7487


    Would bold the two rows that I bolded on sheet1

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Conditional formatting when values equal values from another sheet

    hi brianlg. you can either do this formula as a helper column in Sheet1 & use the Conditional Formatting to lookup this formula or do these steps to avoid the helper column.

    1. go to Sheet2 & select your range of data say from A1:A10.

    2. you should see a name box below the ribbon & on the left of the formula bar. it shows the cell reference. click on that & type a name. i'll type Reference1. Press ENTER. do the same for B1:B20 & name it Reference2.

    3. go to Sheet1 & select from say A1:B20. go to Home -> Conditional Formatting -> New Rule -> Use a formula to determine which cells to format -> Format values where this formula is true:
    =SUMPRODUCT(--(Reference1&"-"&Reference2=$A1&"-"&$B1))

    4. format to bold & click ok

    using helper column, you can skip step 1 & 2 & use this formula in step 3:
    =SUMPRODUCT(--(Sheet2!$A$1:$A$10&"-"&Sheet2!$B$1:$B$10=$A1&"-"&$B1))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

+ 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. Conditional formatting - value not equal to first row values
    By stisso in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-11-2013, 02:09 PM
  2. Replies: 2
    Last Post: 08-27-2011, 03:05 PM
  3. Replies: 1
    Last Post: 10-05-2005, 08:05 AM
  4. Replies: 1
    Last Post: 10-05-2005, 08:05 AM
  5. Replies: 1
    Last Post: 10-05-2005, 06:05 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