+ Reply to Thread
Results 1 to 6 of 6

Shortcut to using many or conditions?

  1. #1
    Registered User
    Join Date
    12-08-2017
    Location
    United States
    MS-Off Ver
    2016
    Posts
    53

    Shortcut to using many or conditions?

    I have a dataset where I need to see if a particular row contains 4 conditions, like the following:

    2/1/2016 EB 112 D13A
    2/1/2016 EB 112 D24A
    2/1/2016 EB 112 F24A
    2/1/2016 EB 112 F24B
    2/1/2016 EB 112 H13A
    2/1/2016 EB 112 H24A
    2/1/2016 EB 122 B13A
    2/1/2016 EB 122 D24A
    2/1/2016 EB 122 D24B
    6/1/2016 EB 112 2C0A
    6/1/2016 EB 112 6C0A

    So if a row in my data contains a certain date, a certain two letter code, a certain three digit number, and a certain 4 digit code, I indicate "yes" or "no. I think I can do this with IF, AND, and OR together, or use MATCH with 4 conditions per row, but I have 50 rows of 4 conditions. Is there an easier way? Thank you.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,151

    Re: Shortcut to using many or conditions?

    Attach a sample workbook (not image).

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    12-08-2017
    Location
    United States
    MS-Off Ver
    2016
    Posts
    53

    Re: Shortcut to using many or conditions?

    I have attached a sample with the condition rows in the lower right side. Thank you.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,151

    Re: Shortcut to using many or conditions?

    If I understand correctly ....

    in P14

    =L14&M14&N14&O14

    copy down

    in I2

    =IFERROR(IF(MATCH(A2&C2&D2&F2,$P$14:$P$68,0),"Yes"),"No")

  5. #5
    Registered User
    Join Date
    12-08-2017
    Location
    United States
    MS-Off Ver
    2016
    Posts
    53

    Re: Shortcut to using many or conditions?

    Quote Originally Posted by JohnTopley View Post
    If I understand correctly ....

    in P14

    =L14&M14&N14&O14

    copy down

    in I2

    =IFERROR(IF(MATCH(A2&C2&D2&F2,$P$14:$P$68,0),"Yes"),"No")
    Thank you, that worked! I apologize for bothering you for such a simple problem.

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,151

    Re: Shortcut to using many or conditions?

    No problem: glad it is 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] Help combining macros to delete rows on conditions and add data into cells on conditions
    By JayJayGC in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-03-2017, 10:14 AM
  2. [SOLVED] Advanced Filter Between Two Columns all OR conditions (4 conditions)
    By nobodyukno in forum Excel General
    Replies: 2
    Last Post: 02-16-2017, 01:13 PM
  3. Replies: 2
    Last Post: 01-14-2016, 03:53 PM
  4. Replies: 3
    Last Post: 02-21-2014, 10:19 AM
  5. [SOLVED] Vlookup - Country conditions (Multiple conditions)
    By dluhut in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-26-2013, 11:42 AM
  6. [SOLVED] Text results with two conditions (lookup with two conditions)
    By Davzx in forum Excel General
    Replies: 8
    Last Post: 05-25-2012, 03:08 AM
  7. using alt as a shortcut key/list of symbols for shortcut keys
    By luv2glyd in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-15-2010, 09:12 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