+ Reply to Thread
Results 1 to 13 of 13

Please help this Newbie.....Copy entire row into a new sheet based on cell data

  1. #1
    Registered User
    Join Date
    06-14-2015
    Location
    Cookeville, Tennessee
    MS-Off Ver
    2013
    Posts
    6

    Exclamation Please help this Newbie.....Copy entire row into a new sheet based on cell data

    I have a list of people who i need sorted into new worksheets based on the data or number that is in column B.

    Example

    Appleseed, Johnny 5 AP 123 Main Street Your Town, State 45678 (555)555-0123
    Watermelon, Abby 3 PA 456 B Street My Town, State 78901 (222)444-7890


    I want sorted as follows:

    If column B = 1,2,3,4 copy entire row to worksheet 2 Named "PEM"
    If column B = 5,6,7,8 copy entire row to worksheet 3 Named "PMS"
    If column B= 9,10,11,12 copy entire row to worksheet 4 Named "CH"

    I will be placing header rows into each worksheet. I want to keep all information on worksheet 1 and will need each sheet (1-4) sorted A-Z by column A. Also if there is an update on worksheet 1 (deleted, changes in any column, additions) it should be reflected in the prospective worksheets.

    How can I do this? I have no idea on where to start and since I zero training in Excel, I am totally lost!

    Thanks in advance for any help you can offer.

    M

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,815

    Re: Please help this Newbie.....Copy entire row into a new sheet based on cell data

    Does column B contain only numbers? It's hard to tell from your example if "AP" and "PA" are also in column B along with the number or if they are in column C. Could you post a copy of your file? It would be easier to see how your data is organized.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: Please help this Newbie.....Copy entire row into a new sheet based on cell data


    Hi,

    easy with filters …

  4. #4
    Registered User
    Join Date
    06-14-2015
    Location
    Cookeville, Tennessee
    MS-Off Ver
    2013
    Posts
    6

    Re: Please help this Newbie.....Copy entire row into a new sheet based on cell data

    Correct Column B is only numerical using numbers 1-12. The AP and PA are in Column C. I have a total of 5 columns. The data is at work and I am at home currently or I would attach it for you to review. If I could just get a starting point that would allow me to email the info to work and then tinker with it. Sorry, I am not familiar with excel. I only use this one workbook and it is getting tedious having to do all the changes and copy and paste manually. Thanks for your reply.
    Last edited by mdenny73; 06-14-2015 at 11:52 AM. Reason: Added more information

  5. #5
    Registered User
    Join Date
    06-14-2015
    Location
    Cookeville, Tennessee
    MS-Off Ver
    2013
    Posts
    6

    Re: Please help this Newbie.....Copy entire row into a new sheet based on cell data

    Quote Originally Posted by Marc L View Post

    Hi,

    easy with filters …
    I am sure it is, I have no clue where to start though.

  6. #6
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,815

    Re: Please help this Newbie.....Copy entire row into a new sheet based on cell data

    Try this macro. You don't' have to enter the headers in the three destination sheets. The macro will copy over the headers from Sheet1. Run the macro each time there is an addition or change in Sheet1 and this will update the other three sheets.
    Please Login or Register  to view this content.

  7. #7
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,815

    Re: Please help this Newbie.....Copy entire row into a new sheet based on cell data

    Sorry ... somehow this duplicate post was created.

    Try this macro. You don't' have to enter the headers in the three destination sheets. The macro will copy over the headers from Sheet1. Run the macro each time there is an addition or change in Sheet1 and this will update the other three sheets.
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    06-14-2015
    Location
    Cookeville, Tennessee
    MS-Off Ver
    2013
    Posts
    6

    Re: Please help this Newbie.....Copy entire row into a new sheet based on cell data

    Quote Originally Posted by Mumps1 View Post
    Sorry ... somehow this duplicate post was created.

    Try this macro. You don't' have to enter the headers in the three destination sheets. The macro will copy over the headers from Sheet1. Run the macro each time there is an addition or change in Sheet1 and this will update the other three sheets.
    Please Login or Register  to view this content.

    I tried this, no luck.

  9. #9
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,815

    Re: Please help this Newbie.....Copy entire row into a new sheet based on cell data

    Could you post a copy of your file?

  10. #10
    Registered User
    Join Date
    06-14-2015
    Location
    Cookeville, Tennessee
    MS-Off Ver
    2013
    Posts
    6

    Re: Please help this Newbie.....Copy entire row into a new sheet based on cell data

    Quote Originally Posted by Mumps1 View Post
    Could you post a copy of your file?
    I think I added the file correctly.

    I have about 200 students which change frequently as well as the phone and addresses.

    I sort them alphabetically in the (Master) using the column 1 (Student Name) and this sheet contains all students.
    sheet 2 (CHS) should pull everyone from the Master in the grade column that has # 9-12 then place them alphabetically using Student Name
    sheet 3 (PSMS)should pull everyone from the Master in the grade column that has # 5-8 then place them alphabetically using Student Name
    sheet 4 (PVE)should pull everyone from the Master in the grade column that has a k or # 1-4 then place them alphabetically using Student Name

    I have been entering all this manually for a few years and I need something to help me when I update the Master (sheet1).

    I tried adding the macro in the code using the command button, it gave me an error. I am not sure that I know how to add the formula. I appreciate all the help you are giving me and the time you are spending on this.

    Please help!?!?
    Attached Files Attached Files
    Last edited by mdenny73; 07-01-2015 at 12:22 PM. Reason: adde

  11. #11
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,815

    Re: Please help this Newbie.....Copy entire row into a new sheet based on cell data

    Click here to download your file. Just click the button on your MASTER sheet any time there is an addition or change to the data in the MASTER.

  12. #12
    Registered User
    Join Date
    06-14-2015
    Location
    Cookeville, Tennessee
    MS-Off Ver
    2013
    Posts
    6

    Re: Please help this Newbie.....Copy entire row into a new sheet based on cell data

    Mumps1,

    It partially works. It brings over about 9 students but doesn't update the others. What do I need to do now?

  13. #13
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,815

    Re: Please help this Newbie.....Copy entire row into a new sheet based on cell data

    In the sample file that I posted, the macro does what you requested. The data in your actual file may be organized differently affecting the end result. It is difficult to determine the problem without working with the actual file which is currently giving you problems. Is it possible for you to post the actual file, replacing confidential information with generic data in such a way that the data structure is not altered?

+ 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 and paste entire row to second sheet based on cell value
    By SilverMonkey in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 05-25-2015, 08:49 AM
  2. Copy Entire Row To Another Sheet Based On Cell Value
    By jcontes in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-04-2014, 03:22 PM
  3. Copy entire row to another sheet based on cell color
    By Marco-Kun in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-18-2013, 09:13 AM
  4. [SOLVED] Copy entire row to appropriate sheet based on value of cell in row E
    By engineerjason in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 11-12-2012, 07:48 PM
  5. Copy/Cut entire row to another sheet based on cell value
    By excelkeechak in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 11-02-2010, 04:23 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