+ Reply to Thread
Results 1 to 5 of 5

Using IF across multiple sheets

  1. #1
    Registered User
    Join Date
    08-08-2013
    Location
    Boston
    MS-Off Ver
    Excel 2010
    Posts
    2

    Using IF across multiple sheets

    Hello.

    I have tried searching for this on the forum but did not find a solution. If I am missing an already posted solution, please direct me to it.

    The issue: I am trying to compare the value of cell B2 from three different sheets. The value can only be either Y or N. In my fourth sheet, I want to make B2 equal to Y if atleast one of the other B2s is Y, else it should be N.

    Thanks.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,737

    Re: Using IF across multiple sheets

    There are several ways that you could do this - here is one of them:

    =IF(LEN(SUBSTITUTE(Sheet1!B2&Sheet2!B2&Sheet3!B2,"Y",""))<3,"Y","N")

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    365
    Posts
    495

    Re: Using IF across multiple sheets

    I think this one has more resemblence with the way of thinking:

    =IF(OR(Sheet1!B2="Y",Sheet2!B2="Y",Sheet3!B2="Y"),"Y","N")
    When I say semicolon, u say comma!

  4. #4
    Registered User
    Join Date
    08-08-2013
    Location
    Boston
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Using IF across multiple sheets

    Thank you both. I found L-Drr's solution to be more intuitive.

  5. #5
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    365
    Posts
    495

    Re: Using IF across multiple sheets

    Quote Originally Posted by jadeMonkey View Post
    intuitive
    Thát's the word I was looking for

    Thanks for the rep, please mark the thread as solved

+ 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] Macro to copy cells from multiple sheets in workbook to multiple sheets in other workbook
    By KeithMale in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-13-2013, 05:37 PM
  2. Copy same column from multiple sheets to new wkbk with multiple sheets
    By rmcclendon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-08-2012, 09:17 AM
  3. Merge multiple excels with multiple sheets in a master excel with multiple sheets
    By marchi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-15-2012, 10:37 AM
  4. Need to Search for Value Across Multiple Sheets, Value Occur Multiple Times on Sheets
    By davidbriansmith in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-23-2011, 12:31 PM
  5. Replies: 4
    Last Post: 08-17-2006, 01:30 AM

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