+ Reply to Thread
Results 1 to 8 of 8

TRUE / FALSE multiple criteria

  1. #1
    Registered User
    Join Date
    08-17-2016
    Location
    Australia
    MS-Off Ver
    Office 365 Business
    Posts
    90

    TRUE / FALSE multiple criteria

    Happy New Year all.

    I've been using the below formula which works a treat up until now. Where I had one Supplier, I now have multiple but some product names are identical therefore I need to add an additional criteria.

    =IF(ISERROR(VLOOKUP(B2,'DATA PULL'!B:B,1,FALSE)),FALSE,TRUE)

    The additional data would be in A2 and 'DATA PULL'!A:A

    Any help modifying the above formula would be greatly appreciated.


    Matt

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: TRUE / FALSE multiple criteria

    so you are not looking to pull back the results of the find, just true or false if what is in B2 is in either data pull BB or data pull AA?
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: TRUE / FALSE multiple criteria

    if you are just looking to return a true or false maybe a simple countif like this...
    =IF(COUNTIF('DATA PULL'!B:B,B2)+COUNTIF('DATA PULL'!A:A,A2)>0,TRUE,FALSE)

    edited, must not have been reading closely enough to notice the A2 part so I adjusted the formula.
    Last edited by Sam Capricci; 01-07-2020 at 08:18 AM.

  4. #4
    Registered User
    Join Date
    08-17-2016
    Location
    Australia
    MS-Off Ver
    Office 365 Business
    Posts
    90

    Re: TRUE / FALSE multiple criteria

    That seems to be giving me a TRUE if either condition is met. I need both conditions to be correct before a TRUE is given

  5. #5
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: TRUE / FALSE multiple criteria

    currently I'm just guessing as you haven't given much information about what you are trying to do. How often will it find the value in B2 in either data pull? In other words can what is in B2 be found more than once in data pull B:B?

    maybe this... =IF(COUNTIF('DATA PULL'!B:B,B2)+COUNTIF('DATA PULL'!A:A,A2)=2,TRUE,FALSE)

    Ditto here, adjusted to A2 though it appears you got it solved anyway, more for the record.
    Last edited by Sam Capricci; 01-07-2020 at 08:19 AM.

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

    Re: TRUE / FALSE multiple criteria

    If you upload a sample file as stated in the yellow banner at the top of this page, you may get better answers, but I'm going to guess here. I think you were comparing a value in column B to another sheet column B, and now you want to compare both values in both A and B to another sheet columns A and B? If so, this may help:

    =IF(SUMPRODUCT(--(A2='DATA PULL'!A:A),--(B2='DATA PULL'!B:B))>0,TRUE,FALSE)

  7. #7
    Registered User
    Join Date
    08-17-2016
    Location
    Australia
    MS-Off Ver
    Office 365 Business
    Posts
    90

    Re: TRUE / FALSE multiple criteria

    Awesome! Thank you. What with "--"? I had something similar that didn't work, what does this do to the formula?

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

    Re: TRUE / FALSE multiple criteria

    The "--" changes a True or False to a 1 or 0.

+ 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. Replies: 1
    Last Post: 06-26-2019, 09:25 AM
  2. [SOLVED] True or False based on multiple criteria
    By Dan_B in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-27-2017, 07:26 AM
  3. Replies: 2
    Last Post: 05-26-2015, 07:29 PM
  4. [SOLVED] TRUE/FALSE Based on multiple criteria
    By bond002 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-11-2014, 06:46 AM
  5. [SOLVED] Multiple TRUE,FALSE criteria
    By quibilty in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-25-2013, 11:47 PM
  6. [SOLVED] Determining True/false based on multiple criteria
    By byeong in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-27-2012, 12:04 PM

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