+ Reply to Thread
Results 1 to 5 of 5

Compare Worksheets and Return data

  1. #1
    Registered User
    Join Date
    03-13-2007
    Posts
    44

    Compare Worksheets and Return data

    I have to Sheets that I would need to compare and return data.

    If data from Sheet2 (Column A) Matches Sheet1(Column C) (row) then return all data in Sheet2

    Sheet2 has about 8900 Records

    I tried this and it does not work.
    =INDEX(Sheet1!A5:U5,MATCH(A1,Sheet1!C5:C9150),1)

    Hope this makes sense.

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Compare Worksheets and Return data

    Maybe:

    =INDEX(Sheet1!$A$5:$U$9150,MATCH($A1,Sheet1!$C$5:$C$9150,0),COLUMN(A1))

    Copied down and across.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Registered User
    Join Date
    03-13-2007
    Posts
    44

    Re: Compare Worksheets and Return data

    What I mean is:
    Sheet 1 Data:
    A1 = 1234
    B1 = HI
    C1 = This is a test
    D1 = YES

    A2 = 2345
    B2 = Hello
    C2 = Not a test
    D2 = NO

    A3 = 3456
    B3 = C'ya
    C3 = Again a test
    D3 = Maybe

    etc...

    Sheet 2
    A1 = 2345

    a new sheet or sheet 2... should read

    A2 = 2345
    B2 = Hello
    C2 = Not a test
    D2 = NO

    Maybe I need to do VBA on it... Not sure.

  4. #4
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Compare Worksheets and Return data

    Can you upload a sample workbook?

    Dom

  5. #5
    Registered User
    Join Date
    03-13-2007
    Posts
    44

    Re: Compare Worksheets and Return data

    Quote Originally Posted by Domski View Post
    Can you upload a sample workbook?

    Dom
    Here it is... Basically

    If ID's Match from Sheet2 to Sheet1.. then in a new worksheet put in all data (A5:U5) ex: that is from Sheet1.

    Here is some test data...
    Attached Files Attached Files

+ 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