+ Reply to Thread
Results 1 to 3 of 3

Compare columns in worksheet and return row value for matching ID

  1. #1
    Registered User
    Join Date
    07-12-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    5

    Compare columns in worksheet and return row value for matching ID

    I have used the merge facility to incoporate all the worksheets into one excel files. As they all have same heading, I have sorted the data, first by their account expiry time (oldest to newest) and then by manager (A-Z)

    For example, system report generated on 15/03/2013, 28/03/2013, 03/04/2013, 15/05/2013, 28/05/2013 and so on and these are sheet names too. What I want is one worksheet called report with the same heading as my merged worksheets and return values where Column C in 28/03/2013 is compared to 15/03/2013 and if the employee ID matches than return the whole row of data for the report.

    the next query would then be for finding employee ID in 03/04/2013 and comparing it with 28/03/2013 worksheet and returning the matched ID in report worksheet.

    This is the layout of the report worksheet.

    Display Name Employee ID Account Status E-mail Department Manager Comment
    15/03/2013 to 28/03/2013
    28/03/2013 to 03/04/2013
    03/04/2013 to 15/05/2013
    15/05/2013 to 28/05/2013

    so for the above report worksheet, if employee id matches the two compared worksheet (15/03/2013 to 28/03/2013) return all value (Display name, employee id, account status, email, department, manager, comment) from the 28/03/2013 and so on.

    if this can be achieved through formula then please suggest how and if through vba than please explain the code if possible as I woudn't understand without any comments.

    Thank you.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Compare columns in worksheet and return row value for matching ID

    You're better of supplying the spreadsheet, change some of the data if its sensitive.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    07-12-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Compare columns in worksheet and return row value for matching ID

    Sample.xlsx

    Thank you for the reply, attached as requested. Please let me know if you need any other information

    Thank you

+ 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: 1
    Last Post: 04-21-2013, 08:36 AM
  2. compare 2 columns from 2 dif. worksheet and return a value
    By Isa2011 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 09-30-2011, 09:07 AM
  3. compare 2 columns form 2 dif. worksheet and return a value
    By Isa2011 in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 09-30-2011, 02:15 AM
  4. Compare Ranges/Return Specific Value for Matching Cells
    By orutulsa in forum Excel General
    Replies: 1
    Last Post: 01-12-2008, 02:53 PM
  5. How to compare data in table and return sum of matching pairs?
    By Chris123 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-03-2007, 10:09 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