+ Reply to Thread
Results 1 to 9 of 9

Copying data based on multiple criteria from one sheet to another

  1. #1
    Forum Contributor
    Join Date
    05-16-2013
    Location
    Sydney,Australia
    MS-Off Ver
    Excel 2010
    Posts
    100

    Copying data based on multiple criteria from one sheet to another

    Hi All,

    thanks a lot for taking time to looking to the issue.

    I am after a macro which can filter one sheet based on multiple criteria's then copy and amend that data into next sheet.

    I have attached a file with Source and Dest tabs in it. in the source all but column B is copied to the Dest tab.

    destination tab has more fields than source tab.

    I would like to filter

    filter column B and pick all #N/A
    then filter column D and pick E and M
    then filter column E and pick MEL
    then filter column G and pick APPR, FINSH and OPEN

    then copy this data and append to Dest tab.

    Column B from source tab does not get copied over.

    Thanks
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Copying data based on multiple criteria from one sheet to another

    Need small clarification on your query

    1) Suppose if I Filter #N/A from Column B , however E & M is not available in Column D then what do you want ?
    2) Suppose what filtering Coumn B & D, then there is no MEL in Column E then what ?

    Like wise.........
    Thanks - Naveed
    -----------------------------
    If the suggestion helps you, then Click * to Add Reputation
    To Attach File: Go Advanced>>Manage Attachments>>Add Files (In Top Right Corner)>>SelectFiles>>.........Locate Your File(s)>>Upload Files>>Done (In Bottom Right)
    1. Use [code] code tags [\code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  3. #3
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Copying data based on multiple criteria from one sheet to another

    Mean while u can try this attached fle
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    05-16-2013
    Location
    Sydney,Australia
    MS-Off Ver
    Excel 2010
    Posts
    100

    Re: Copying data based on multiple criteria from one sheet to another

    Thanks a lot Naveed,

    is it possible to give a msg saying "no data found" if we filter and find no data.

    thanks a lot once again.

  5. #5
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Copying data based on multiple criteria from one sheet to another

    Ok Give me some time i will provide u updated one

  6. #6
    Forum Contributor
    Join Date
    05-16-2013
    Location
    Sydney,Australia
    MS-Off Ver
    Excel 2010
    Posts
    100

    Re: Copying data based on multiple criteria from one sheet to another

    hi Naveed,

    I have used errorhandler and that solved the issue. thanks a lot for your help.

    Please Login or Register  to view this content.

  7. #7
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Copying data based on multiple criteria from one sheet to another

    Hmm nice,

    Still you can use if u like
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    05-16-2013
    Location
    Sydney,Australia
    MS-Off Ver
    Excel 2010
    Posts
    100

    Re: Copying data based on multiple criteria from one sheet to another

    Thanks Naveed,

    It works perfectly. thank you a lot for your time.

  9. #9
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Copying data based on multiple criteria from one sheet to another

    Glad to Help you

    Please click on *Add Reputation to say thanks on particular thread.

+ 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: 7
    Last Post: 09-30-2014, 01:44 PM
  2. Copying Data error from master sheet based on Range criteria
    By naga in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-08-2013, 02:11 AM
  3. Copying (but not deleting) data from a master sheet to multiple worksheets based on Col A
    By SmartBalance in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-06-2013, 03:09 PM
  4. Copying a row of data to another sheet based on criteria in first sheet
    By Carl Mukluk in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 02-19-2013, 08:01 AM
  5. Replies: 4
    Last Post: 01-08-2013, 12:37 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