+ Reply to Thread
Results 1 to 6 of 6

how to add OR condition to this formula

  1. #1
    Registered User
    Join Date
    10-02-2017
    Location
    Sweden
    MS-Off Ver
    365 with Dynamic Arrays
    Posts
    90

    Question how to add OR condition to this formula

    How to add Or condition to this formula? i have this formula that works =INDEX('Sheet2'!A:A,MATCH(0,COUNTIF('Sheet1'!$A$2:A2,'Sheet2'!A:A)+IF('Sheet2'!B:B<>"Must",1,0),0))

    when i inclue IF('Sheet2'!B:B<>"Shall",1,0) put this OR condition that if it is Must or Shall then include. as this = INDEX('Sheet2'!A:A,MATCH(0,COUNTIF('Sheet1'!$A$2:A2,'Sheet2'!A:A)+IF('Sheet2'!B:B<>"Must",1,0)+IF('Sheet2'!B:B<>"Shall",1,0),0)) it does not work.

    what am i missing?

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: how to add OR condition to this formula

    Perhaps this
    =INDEX('Sheet2'!A:A,MATCH(0,COUNTIF('Sheet1'!$A$2:A2,'Sheet2'!A:A)+IF('Sheet2'!B:B<>"Must",IF('Sheet2'!B:B<>"Shall"1,0),0),0))
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Registered User
    Join Date
    10-02-2017
    Location
    Sweden
    MS-Off Ver
    365 with Dynamic Arrays
    Posts
    90

    Re: how to add OR condition to this formula

    Thank you very much

  4. #4
    Registered User
    Join Date
    10-02-2017
    Location
    Sweden
    MS-Off Ver
    365 with Dynamic Arrays
    Posts
    90

    Re: how to add OR condition to this formula

    somehow it worked in small data set, but failed on my actual data.

  5. #5
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: how to add OR condition to this formula

    I couldn't say why that might be- most likely data issues. I would note though that using entire columns in an array formula is not a good idea.

  6. #6
    Registered User
    Join Date
    10-02-2017
    Location
    Sweden
    MS-Off Ver
    365 with Dynamic Arrays
    Posts
    90

    Re: how to add OR condition to this formula

    thanks very much. i converted it to table and it worked.

    you are a genius!

+ 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] IF condition formula help
    By mastersaanvi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-13-2017, 01:26 AM
  2. [SOLVED] how to add new condition in formula
    By sharadmaxwell in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 05-16-2016, 04:52 AM
  3. Condition formula
    By mahershams in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-09-2013, 08:23 AM
  4. Excel formula if conition formula for 2 condition with consider timings
    By breadwinner in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-18-2013, 11:05 AM
  5. [SOLVED] Help for if condition formula result only either hit or miss from mulitple condition
    By breadwinner in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-09-2013, 07:29 AM
  6. Hello, please need help, add IF formula some more condition.
    By zeko90 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2012, 08:27 AM
  7. If condition formula
    By konquistador in forum Excel General
    Replies: 4
    Last Post: 08-12-2010, 06: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