+ Reply to Thread
Results 1 to 10 of 10

Formula to copy filtered data to another tab

  1. #1
    Forum Contributor
    Join Date
    02-09-2004
    Location
    Cardiff - Wales - UK
    MS-Off Ver
    2013
    Posts
    475

    Question Formula to copy filtered data to another tab

    Hi,

    I have data entered on to a tab called ‘Data’ and what I want to do is to populate the ‘Output’ tab with data filtered from the ‘Data’ tab i.e. filter on column ‘B’ (Type) for ‘Project’, Major Project’ and ‘Minor Project’ only.

    Can anyone please advise me of the formulas required to copy the filtered data from the ‘Data’ tab to the ‘Output’ tab i.e. the filtered data in columns 'A' to 'C'

    I have attached example file which shows the desired result on the Output’ tab.

    I appreciate this could be done via macros/vba or advance filtered but in this instance a formula solution is required

    Many thanks in advance for any assistance received

    Regards


    Rob
    Attached Files Attached Files
    Rob

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Formula to copy filtered data to another tab

    Enter array formula in A2 and copy across and down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    ***Array formula
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.
    You will know the array is active when you see curly braces { } appear around your formula.
    If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Last edited by AlKey; 12-06-2016 at 10:18 AM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: Formula to copy filtered data to another tab

    Hi Robert

    Try this code below

    Please Login or Register  to view this content.
    Last edited by PFDave; 12-06-2016 at 10:14 AM.

  4. #4
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: Formula to copy filtered data to another tab

    Example file attached

  5. #5
    Forum Contributor
    Join Date
    02-09-2004
    Location
    Cardiff - Wales - UK
    MS-Off Ver
    2013
    Posts
    475

    Re: Formula to copy filtered data to another tab

    Alkey & PFDave,

    many thanks for your very prompt replies it is very much appreciated.

    PFDave, as the end user is not used to using macros I've opted to use Alkey solution (However, I will be using your solution myself on another project I'm working on) - many thanks.

    That's said, Alkey, I've just re-read the selection criteria for the drop down selection on the 'Data' tab and it should read 'Project', 'Major Project', 'MSA Small Project', 'MSA Standard Project' and 'Programme' !! Could you advise me on how to amend your formula to accommodate the revised selection criteria.

    Many thanks


    Regards


    Rob

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Formula to copy filtered data to another tab

    Try this
    Please note that search function in this formula will pick up all words that contain "project". And if I understood correctly, you want to add 'Programme' as criteria.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Formula to copy filtered data to another tab

    in output sheet
    a2
    Please Login or Register  to view this content.
    try this and copy across
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  8. #8
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: Formula to copy filtered data to another tab

    Quote Originally Posted by robertguy View Post
    Alkey & PFDave,

    many thanks for your very prompt replies it is very much appreciated.

    PFDave, as the end user is not used to using macros I've opted to use Alkey solution (However, I will be using your solution myself on another project I'm working on) - many thanks.
    Glad I've been some use Rob

  9. #9
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Formula to copy filtered data to another tab

    Here is another way with criteria table
    For this example I created a table in Col L L2:L6
    Enter array formula in A2 on Output sheet and copy across and down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    v A B C D E F G H I J K L
    1 Code Type Number Criteria Table
    2 AAA Project 1 Project
    3 BBB Major Project 2 Major Project
    4 AAA MSA Small Project 4 MSA Small Project
    5 CCC Programme 6 MSA Standard Project
    6 AAA Project 7 Programme
    7 BBB Major Project 8
    8 BBB MSA Standard Project 10
    9 BBB Major Project 16
    10 BBB Project 18
    11 CCC Programme 19
    12 AAA Project 25
    13 BBB Programme 26
    14
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    02-09-2004
    Location
    Cardiff - Wales - UK
    MS-Off Ver
    2013
    Posts
    475

    Re: Formula to copy filtered data to another tab

    Alkey & PFDave & nflsales

    Once again folks many thanks for your suggestions, they all work as required, that said for future maintenance purposes I'm leaning towards Alkey's latest solution as it will be easier for the under users to maintain.

    Thanks again all

    Regards


    Rob

+ 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. Copy paste Formula in Filtered Values
    By kannan1847 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-19-2016, 01:45 AM
  2. How to copy filtered data into filtered data?
    By The_Snook in forum Excel General
    Replies: 1
    Last Post: 08-19-2013, 10:32 AM
  3. Macro that can filter excel data and copy the filtered data to another worksheet
    By glide2131 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-10-2013, 02:43 PM
  4. Replies: 4
    Last Post: 08-16-2012, 06:20 PM
  5. [SOLVED] Copy data into filtered row
    By arlu1201 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-21-2012, 03:23 AM
  6. Copy filtered data to a new row
    By pajson in forum Excel General
    Replies: 1
    Last Post: 05-27-2010, 10:13 AM
  7. Copy filtered data
    By Hans Knudsen in forum Excel General
    Replies: 3
    Last Post: 11-25-2005, 09:35 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