+ Reply to Thread
Results 1 to 10 of 10

Match 1st and 2nd columns in 2 sheets and return 3rd,4th and 5th column if match.

  1. #1
    Registered User
    Join Date
    12-14-2013
    Location
    Dubai
    MS-Off Ver
    Excel 2003
    Posts
    7

    Post Match 1st and 2nd columns in 2 sheets and return 3rd,4th and 5th column if match.

    http://www.fileswap.com/dl/aIcDcraKtW/

    Hi Guys,

    What im trying to do is match columns A & B from AUDIT Sheet to Columns A & B in MASTER sheet. If they match then pull columns C, D & E from MASTER into AUDIT.

    The link of the file is given, if any one can help me with this.
    Any help would be of great help.

    Thank in advance.

    Shaz

  2. #2
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,284

    Re: Match 1st and 2nd columns in 2 sheets and return 3rd,4th and 5th column if match.

    Take a look at this.
    Attached Files Attached Files
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  3. #3
    Registered User
    Join Date
    12-14-2013
    Location
    Dubai
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Match 1st and 2nd columns in 2 sheets and return 3rd,4th and 5th column if match.

    Brilliant!!!

    Thanks a million popipipo.....

  4. #4
    Registered User
    Join Date
    12-14-2013
    Location
    Dubai
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Match 1st and 2nd columns in 2 sheets and return 3rd,4th and 5th column if match.

    Ive run into a problem.
    There are many cells in column B without any values, in this case it still has to pull C,D & E even if only column A matches.
    Ive got almost 7000 lines

    Any ideas ?

    Thanks

  5. #5
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,284

    Re: Match 1st and 2nd columns in 2 sheets and return 3rd,4th and 5th column if match.

    please post a little xls example with those empty cells

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Match 1st and 2nd columns in 2 sheets and return 3rd,4th and 5th column if match.

    no need for helper column in this instance
    Attached Files Attached Files
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  7. #7
    Registered User
    Join Date
    12-14-2013
    Location
    Dubai
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Match 1st and 2nd columns in 2 sheets and return 3rd,4th and 5th column if match.

    Thanks martindwilson!
    This worked out great. i was having a problem where it didn't pull data where it should have but then i noticed in most cells there were leading or trailing spaces within the cells so there was not an exact match. removing the spaces solved this
    There is one more issue of duplicate entries in the MASTER sheet.
    File link below will give an idea of what i mean.

    Thanks again for all your help.

    http://www.fileswap.com/dl/pX1qxNeKv/

  8. #8
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Match 1st and 2nd columns in 2 sheets and return 3rd,4th and 5th column if match.

    Moderator's Note:

    Due to firewall etc. other members will not be able to download your file.
    Instead post the file here.
    steps:

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

    thanks.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  9. #9
    Registered User
    Join Date
    12-14-2013
    Location
    Dubai
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Match 1st and 2nd columns in 2 sheets and return 3rd,4th and 5th column if match.

    Sorry..

    Correct file in link below

    http://www.fileswap.com/dl/twP8Bf7iKC/

  10. #10
    Registered User
    Join Date
    12-14-2013
    Location
    Dubai
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Match 1st and 2nd columns in 2 sheets and return 3rd,4th and 5th column if match.

    Copy of STOCK2.xlsx

    Noted "vlady"

+ 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: 20
    Last Post: 04-15-2013, 01:06 PM
  2. [SOLVED] Two Excel sheets trying to match text data and return the match from the second column!
    By bankcott in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-02-2013, 02:17 PM
  3. Replies: 2
    Last Post: 06-29-2011, 01:36 PM
  4. Match 2 columns in 2 sheets and return the 3rd column
    By swadson in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-16-2011, 04:36 PM
  5. Replies: 6
    Last Post: 03-01-2011, 06:23 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