+ Reply to Thread
Results 1 to 4 of 4

Copying data from one sheet to another if criteria is met.

  1. #1
    Registered User
    Join Date
    04-15-2019
    Location
    New Zealand
    MS-Off Ver
    Office 365
    Posts
    2

    Copying data from one sheet to another if criteria is met.

    Hi I am trying to copy data from sheet1 to various other sheets if certain criteria is meet.
    In my case

    Copy all rows (A-M) where column G = Gisborne/ Wairoa


    Any help would be greatly appreciated

    I have several sheets I need to do this for as I am breaking the data down into separate locations
    the data in sheet1 is exported from another workbook (not sure if that makes any difference)

  2. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Copying data from one sheet to another if criteria is met.

    Hi Ezza, welcome to the forum.
    You forgot to tell us which sheets the data will go to and where on the destination sheets you want the data entered. Try to include your complete details in the original post to avoid a lot of Q&A posts.
    Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
    Just when I think I am smart, I learn something new!

  3. #3
    Registered User
    Join Date
    04-15-2019
    Location
    New Zealand
    MS-Off Ver
    Office 365
    Posts
    2

    Re: Copying data from one sheet to another if criteria is met.

    HI! thanks you and sorry, here's a little more detail
    I need separate sheets for each separate region (total of 7 regions) and I have the 'DATA' sheet which is the data extracted from another workbook.
    if column G in 'DATA' = "Wellington" then copy the entire row into the 'Wellington' Sheet

    My region list is
    Taranaki
    Wellington
    Bay Of Plenty
    Auckland
    Manawatu
    Gisborne
    Wairarapa

    Does that help so I have 7 sheets named after each region and the DATA sheet has the information from columns A-M that I want to copy over, if the region matches column G into the matching worksheet

  4. #4
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Copying data from one sheet to another if criteria is met.

    Please Login or Register  to view this content.
    Install this in code module1. You can run it from the Excel window with Alt + F8, then use the dialog box for macros.

+ 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. Copying data with conditions/criteria using macro to another sheet
    By KuyaGibs in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-20-2017, 05:22 PM
  2. Copying columns of data from one sheet to another based on multiple criteria
    By Dkristensen in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-27-2017, 11:43 AM
  3. [SOLVED] Copying data from one sheet to another if criteria met
    By muk80 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-12-2015, 06:15 PM
  4. [SOLVED] Copying data based on multiple criteria from one sheet to another
    By excellearner121 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-01-2014, 01:52 AM
  5. 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
  6. Automatically copying data to another sheet if criteria is met
    By steve1225 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-07-2013, 12:34 PM
  7. Replies: 4
    Last Post: 01-08-2013, 12:37 PM

Tags for this Thread

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