+ Reply to Thread
Results 1 to 7 of 7

Table Match ?

  1. #1
    Registered User
    Join Date
    05-09-2011
    Location
    *
    MS-Off Ver
    Excel 2010
    Posts
    44

    Table Match ?

    Hi
    I have an unusual question, hoping someone could lend a helping hand.

    I am trying to match an entry in a table based on two criteria which is Store and Status from a different table but can't really seem to figure out the correct formula.

    To better illustrate here are two simplified tables.

    Table A
    Order # Store Status
    123 ABC Paid
    123 FGH Returned
    123 XYZ Cancelled

    Table B
    Order # Store
    123 ABC
    123 FGH
    123 XYZ

    What I am hoping to achieve here is to return Status from Table A should there be a match in Table B.

    As you can see Order # may be the same in different stores, I was able to use a vlookup but somehow it is only returning the first line of results.
    My question is since the order can be the same but resides in a different store is it possible to have Excel to return the accurate result?

    Example usage :
    1) Return Status for Order# 123 if Store = XYZ
    2) Return Status for Order# 123 if Store = ABC

    Hope this explains my problem clearly.

    It would be great if anyone can help me out.

    Thanks in advance.
    Last edited by treeantz; 11-29-2011 at 08:33 PM.

  2. #2
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Table Match ?

    Hello treeantz,

    Assume TableB contains in A1:B4, A1 & B1 are headings.

    Try this ARRAY FORMULA (must hit CTRL+SHIFT+ENTER, rather than ENTER) in C2, then copy down.

    =IFERROR(INDEX(TableAStatus,MATCH(1,IF(TableAOrder=A2,IF(TableAStore=B2,1)),0)),"")
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  3. #3
    Registered User
    Join Date
    05-09-2011
    Location
    *
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: Table Match ?

    Hi Haseeb,

    Thanks for reply.
    Can I also ask what is TableAStatus, TableAOrder and TableAStore? I've never used index and match before.

    It would be great if you could advise.

  4. #4
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Table Match ?

    Quote Originally Posted by treeantz View Post
    what is TableAStatus, TableAOrder and TableAStore?
    I just used here for a reference, change all these with appropriate cell references in your table.

  5. #5
    Registered User
    Join Date
    05-09-2011
    Location
    *
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: Table Match ?

    Hi Haseeb, yes I finally got it.
    Thank you very much for your assistance.

  6. #6
    Registered User
    Join Date
    05-09-2011
    Location
    *
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: Table Match ?

    btw do you know how i can change the thread to solved?

  7. #7
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Table Match ?

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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