+ Reply to Thread
Results 1 to 4 of 4

Thread: IF cellJ5=x, then copy entire row into New Sheet

  1. #1
    Registered User
    Join Date
    02-08-2012
    Location
    NY - New York
    MS-Off Ver
    Excel 2007
    Posts
    3

    IF cellJ5=x, then copy entire row into New Sheet

    I have looked at a previous forum which suggests a macro/VBA to move an entire row of information to a new spreadsheet. It does not seem to solve my problem, as the data i need to sort cannot come from the first column.

    So my question is:

    Is it possible to use a qualifier from Spreadsheet 1 that occurs in column "J" and have the entire row copied automatically into another spreadsheet?

    I have attached an example, in which I want to sort different Clients by "Place", which in this case is Column J. I am hoping to sort the data into different sheets so that Place X is in one sheet and Place Y is in another.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2003
    Posts
    2,488

    Re: IF cellJ5=x, then copy entire row into New Sheet

    hi absflaw, welcome to ExcelForum, please check attachment, press "Run"
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    02-08-2012
    Location
    NY - New York
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: IF cellJ5=x, then copy entire row into New Sheet

    Wow. I am grateful for the quick response. It works almost nearly as I need it to, though I am wondering if it's able to update, rather than add previous entries again (once the button is pressed). I am not sure how the thing works. I have attached the exact columns I am working with, not just hypotheticals. As you can see, I am looking for column AB.



    Best,
    Attached Files Attached Files

  4. #4
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,226

    Re: IF cellJ5=x, then copy entire row into New Sheet

    'SHEET1 TO MANY SHEETS
    Here's a macro for parsing rows of data from one sheet to many sheets named for the same values in a specific column.It not only can parse the rows, it can create the sheets if they are missing. There is a sample sheet there where you can test this out.


    When you install this macro, change the vCol to 28 so that it parses by column AB.

    Also change the Sheets("Data") to Sheets("Clients").

    Lastly, vTitles = "A1:AG1"


    That should be it, it should work as is from there. Each time you run it will replace the data on each sheet with the updated data from your CLIENTS sheet, and it will create new client sheets as needed.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  5. #5
    Registered User
    Join Date
    02-08-2012
    Location
    NY - New York
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: IF cellJ5=x, then copy entire row into New Sheet

    This is great!

    Does it have to add the new sheets automatically? I only have 3 names I really want to keep. Is that possible?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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.2.0