+ Reply to Thread
Results 1 to 3 of 3

Macro to query set of data

  1. #1
    Registered User
    Join Date
    06-15-2012
    Location
    Pennsylvania, USA
    MS-Off Ver
    Excel 2010
    Posts
    46

    Macro to query set of data

    This is what I am trying to do. I have collated some data from about 12 sheets in the workbook on the 13th sheet. Sheet13 has data in rows A:T. Now I would like to be able to "query" the collated data based on a cell on sheet 14. So for example in B2 on the 14th sheet, I want to be able to enter an employee identifier number (which will change depending on which employee I am trying to gather data for), and when I run the macro, it will return all the records (rows of information) for that particular employee from the collated data on sheet13. So that as long as the number entered into cell B2 on Sheet14, is found in column D on Sheet13, I would like for the data record to be displayed in A5:T5 and down on Sheet 14.

    I hope I have explained this well. Thanks in advance for your help

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Macro to query set of data

    Have you tried using a filter for that.

    Excel 2007 => data => filter
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    06-15-2012
    Location
    Pennsylvania, USA
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: Macro to query set of data

    For reasons that I dont want o bore you with, a filter will not be suitable for what I am trying to do. Is there a way to program filtering thorugh macros and dissplay the filtered result in Sheet 14

+ 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