+ Reply to Thread
Results 1 to 6 of 6

Matching 2 values to a table

  1. #1
    Registered User
    Join Date
    09-17-2015
    Location
    tlv
    MS-Off Ver
    2007
    Posts
    16

    Matching 2 values to a table

    Hi,

    I have a table of shifts (2 columns) In order to check that you work by the work rules.
    for example: if you work saturday morning you cant work sunday afternoon.


    list 01______________________ list 02
    saturday morning____________ sunday afternoon
    friday afternoon...____________ saturday evning....

    (the list containig the wrong combinations)


    I need to check IF cell A1 (shift) AND A2 (next day shift) = same combination(RAW) in the list = TRUE.

    Tried usin IF with MATCH ( if raws numbers from the match equals each other then TRUE) but

    the problem is some values (shift name) repetitive so no ggod :-(


    HELP!!!

  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,320

    Re: Matching 2 values to a table

    Please post a file showing expected results.

  3. #3
    Registered User
    Join Date
    09-17-2015
    Location
    tlv
    MS-Off Ver
    2007
    Posts
    16

    Re: Matching 2 values to a table

    Added the file along with what i tried

    TNX!!

    shay.xlsx

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Matching 2 values to a table

    Your formula is returning the correct answer...
    =IF(MATCH(E8,J8:J16,0)=MATCH(E10,I8:I16,0),"X","V")
    =MATCH(E8,J8:J16,0)=4
    =MATCH(E10,I8:I16,0)=5
    =IF(4=5,"X","V")

    Maybe you meant...
    =IF(MATCH(E8,J8:J16,0)<>MATCH(E10,I8:I16,0),"X","V")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    09-17-2015
    Location
    tlv
    MS-Off Ver
    2007
    Posts
    16

    Re: Matching 2 values to a table

    In the example file I Need it to show X becouse that shift is not allowd (in the file its showing the option i highlighted in blue)
    If the combination is in the table show X as an indicator

  6. #6
    Registered User
    Join Date
    09-17-2015
    Location
    tlv
    MS-Off Ver
    2007
    Posts
    16

    Re: Matching 2 values to a table

    Bumping for some help...

+ 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. Matching multiple cell values on a table
    By nautilus38 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-21-2015, 01:01 PM
  2. Sum Values in a Table Matching Specific Row and Column Values
    By dubasteins in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-15-2014, 09:06 AM
  3. Macro to sum matching values in a table
    By fmaywood in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-30-2013, 08:45 AM
  4. Matching a result to a certain value from a STAS table values
    By andreiscreciu in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-03-2013, 04:47 PM
  5. How to get values from a table matching two diiferent criteria.
    By SSS86 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-25-2012, 12:49 AM
  6. Table Lookup using 3 matching column values
    By mluetkem in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-09-2012, 01:38 PM
  7. [SOLVED] Matching certain index values to dates in a separate table
    By DrD in forum Excel General
    Replies: 2
    Last Post: 07-11-2012, 05:55 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