+ Reply to Thread
Results 1 to 4 of 4

filter and copy filtered data to another sheet based on combobox selection

  1. #1
    Registered User
    Join Date
    11-08-2015
    Location
    Pakistan
    MS-Off Ver
    2007
    Posts
    2

    filter and copy filtered data to another sheet based on combobox selection

    Hi,

    I have been searching the net for my specific problem, but not finding the solution for it. I have two sheets of data. my data is in sheet2. it has an employee's daywise data in rows with each row corresponding to different months for him. and so on for each employee downwards. What I want to achieve is to have a combobox placed in sheet1 which lists the names of the employees. When I select a particular employee from that combobox, the data gets filtered in sheet2 displaying all those rows where that employee's name is written. And then, only that filtered data is copied to Sheet1 below my defined cells area. Actually I want to perform analysis on that data only in Sheet1, without my ever looking into sheet2 for it. Following is the setup of my data in sheet2:

    Employee FIRM MONTH Day1 Day2 Day3 ........ Day4 Totals
    ABC A Aug
    ABC A Sept
    ABC A OCT
    LMN B Aug
    LMN B Sept
    LMN B Oct

    I would really appreciate if the seniors and experienced ones here attend to my problem at the earliest. because I have been stuck on this for almost a week now. getting late. so would really appreciate your solutions.

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: filter and copy filtered data to another sheet based on combobox selection

    post a sample workbook

    you will need a worksheet change event + autofilter based on Data validation? or actual combobox?
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    11-08-2015
    Location
    Pakistan
    MS-Off Ver
    2007
    Posts
    2

    Re: filter and copy filtered data to another sheet based on combobox selection

    thanx for your reply humdingaling. as for data validation or combobox option, i want you to review the sample file first,
    and then, whichever is more efficient way than the other, it should then be used. my objective is to view the details and
    summary easily. However, i would really welcome your better ideas for improving reporting of this excel file.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: filter and copy filtered data to another sheet based on combobox selection

    not sure you need vba for your solution

    see attached approach used

    the back bone is unique list in column W of data and helper column in column R
    as you dont plan to see data sheet helper column shouldnt matter

    on sheet1...
    cell C3 is a DV based on unique list
    row 6 is normal index/match
    table in red is a combination index/match/match formula
    column n contains a sumif formula to count minutes
    cell M9 contains countif

    your issue will come with it being more dynamic when you want to include periods from and TO
    however that should only effect he headers in the red table
    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)

Similar Threads

  1. Add information to specific Sheet based on ComboBox selection
    By paralegal91 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-29-2014, 04:09 AM
  2. [SOLVED] Based on a selection copy and paste data to another sheet
    By Spherous in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-31-2013, 01:17 AM
  3. [SOLVED] Copy userform data to a second sheet based on ComboBox value?
    By matrixpom in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-08-2012, 09:09 PM
  4. Filter, copy filtered data into another sheet, create a file of that sheet..
    By titushanke in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-17-2012, 02:26 PM
  5. Replies: 2
    Last Post: 05-15-2012, 02:08 AM
  6. Advanced filter with some conditions & copy filtered value to next sheet
    By sudhirkumar3429 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-24-2012, 05:46 AM
  7. Replies: 5
    Last Post: 12-13-2011, 12:40 AM
  8. Filter sheet then assign values into array based on this filtered sheet
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-06-2011, 10:32 AM

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