+ Reply to Thread
Results 1 to 10 of 10

Linking If statement between sheets

  1. #1
    Registered User
    Join Date
    11-29-2020
    Location
    UK
    MS-Off Ver
    10
    Posts
    7

    Linking If statement between sheets

    Hi all. Hopefully a simple one!

    I have two columns of names, a third column has a simple IF statement that generates a YES if the two names in the same row are the same. So far so easy.

    I have another sheet in the same WB with another long list of names. What I can't figure out is how to highlight the cell that contains names on the 2nd sheet that have generated a YES on the first sheet. I'm hoping someone will tell me how simple it is!

    Thanks for any assistance guys & girls....
    Attached Files Attached Files
    Last edited by SteveB666; 11-29-2020 at 07:21 PM.

  2. #2
    Forum Contributor
    Join Date
    01-09-2016
    Location
    Perth Western Australia
    MS-Off Ver
    Office 365
    Posts
    257

    Re: Linking If statement between sheets

    Hi
    Is it possible to upload a desensitised sample of the WorkBook. It would make life simpler in providing a solution for you.
    Cheers

  3. #3
    Registered User
    Join Date
    11-29-2020
    Location
    UK
    MS-Off Ver
    10
    Posts
    7

    Re: Linking If statement between sheets

    And done... I hope. Thanks FoxSeaLady. The highlighting in the 2nd sheet has been done manually by me. This is what I would like automated. The real workbook is about 10,000 rows long.

  4. #4
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,832

    Re: Linking If statement between sheets

    Here's one possible solution. While selecting the cells that you want to highlight on Sheet 2, go to Conditional Formatting and select the option to Use Formula to determine cells to populate.

    In the formula box, try this:

    =ISNUMBER(MATCH(1,(Sheet1!$B:$B=A1)*(Sheet1!$A:$A=A1),0))

    (I left it as checking the whole column a B and A, but I suggest you use the actual rows that you have data.)

    Then format as you please.

  5. #5
    Registered User
    Join Date
    11-29-2020
    Location
    UK
    MS-Off Ver
    10
    Posts
    7

    Re: Linking If statement between sheets

    Thanks Greg, I'll try that out.

  6. #6
    Registered User
    Join Date
    11-29-2020
    Location
    UK
    MS-Off Ver
    10
    Posts
    7

    Re: Linking If statement between sheets

    Hi Greg, if I want to drop the area checked I'd change it like this right:

    =ISNUMBER(MATCH(1,(Sheet1!B1:B10=A1)*(Sheet1!A1:A10=A1),0)) ?

  7. #7
    Registered User
    Join Date
    11-29-2020
    Location
    UK
    MS-Off Ver
    10
    Posts
    7

    Re: Linking If statement between sheets

    Hopefully you didn't read this comment! I was being foolish :-)
    Last edited by SteveB666; 11-29-2020 at 11:51 PM.

  8. #8
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Linking If statement between sheets

    Using countifs:

    =COUNTIFS(Sheet1!$A$1:$A$10,A1,Sheet1!$B$1:$B$10,A1)>0
    Quang PT

  9. #9
    Registered User
    Join Date
    11-29-2020
    Location
    UK
    MS-Off Ver
    10
    Posts
    7

    Re: Linking If statement between sheets

    Within conditional formatting bebo?

  10. #10
    Registered User
    Join Date
    11-29-2020
    Location
    UK
    MS-Off Ver
    10
    Posts
    7

    Re: Linking If statement between sheets

    Ah yes, that works as well. Thanks to both of you.

+ 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] linking two pivot tables with IF statement to compare values
    By JPRICH16 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-14-2019, 09:16 AM
  2. Linking cells between workbooks if IF statement is satisfied
    By Mattgee in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-09-2015, 02:02 AM
  3. Trying to Solve Conditional Formatting Formula Linking 2 sheets linking dates
    By Jetpilot69 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-16-2014, 01:57 PM
  4. Help with linking sheets together.
    By robertthansen in forum Excel General
    Replies: 12
    Last Post: 01-02-2013, 06:40 PM
  5. If Statement Linking to a Non-existent Tab
    By chelseasikoebs in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-01-2009, 05:40 PM
  6. Linking a form button to a worksheet with a condition statement
    By sammyserwar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-13-2007, 06:02 PM
  7. Linking to Sheets
    By racer25 in forum Excel General
    Replies: 1
    Last Post: 11-03-2005, 09:00 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