Results 1 to 3 of 3

Filter based on cell value and copy only relevant data

Threaded View

jamesround86 Filter based on cell value... 03-09-2017, 07:18 PM
jaslake Re: Filter based on cell... 03-11-2017, 04:54 PM
jamesround86 Re: Filter based on cell... 03-13-2017, 11:38 AM
  1. #1
    Registered User
    Join Date
    05-21-2014
    Posts
    13

    Filter based on cell value and copy only relevant data

    Hi

    I'm looking to have a sheet with a drop down to select a 'crew' then from that a second drop down with individuals names from that crew. Once a full selection is made I'm looking for the sheet to reference a table on another worksheet, filter against certain multiple shift codes, and for the codes relevant for that individual, copy the date column only, into a section on the originating sheet.

    I've tinkered with VBA to copy information from a table after filtering for certain multiple criteria so I'm familiar with that, but rather than specifying a AutoFilter Field like 1 or two, I actually want it to do the filter based on the name that was provided on the drop downs on the original sheet and I've no idea how to do this.

    Also on previous iterations of this I've come across a problem where not all the codes I want to search against are present for certain individuals (as an example I want to search on codes ALD and ALN for Annual Leave Day or Night) and copy dates from both search criteria into a Annual Leave column on the original sheet but they might only have the ALD code, this ends up making the whole code process cease due to missing criteria and I need to find a way around this if possible.

    I have attached an example sheet with random names as examples, the drop downs I've already created using a sheet with individuals data on, there's also a truncated version of the shift codes/dates. Once I get my head round the code I need I can adapt this to my original sheet. I appreciate there are more shift codes than I've given definitions for, but I have listed the ones relevant for this example.

    If anything else is needed please let me know, and thanks for looking!
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Excel VBA - Copy Data based on a cell value and filter to new sheet
    By scruz9 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-18-2016, 08:06 AM
  2. [SOLVED] Filter from list, then copy relevant data to new workbook for each instance
    By monkeypants in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-21-2016, 10:12 PM
  3. Filter data then copy relevant data to new workbook for each instance
    By monkeypants in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-18-2016, 09:18 PM
  4. [SOLVED] Copy data from column to relevant row
    By sanjuss2 in forum Excel General
    Replies: 5
    Last Post: 01-20-2016, 02:11 AM
  5. My filter isn't grabbing all the relevant data
    By hnhorner in forum Excel General
    Replies: 10
    Last Post: 07-10-2015, 01:56 PM
  6. [SOLVED] VBA to copy relevant data and populate a template sheet
    By kenadams378 in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 01-31-2013, 02:08 PM
  7. Replies: 4
    Last Post: 07-10-2010, 03:12 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