+ Reply to Thread
Results 1 to 6 of 6

Copy rows based on the value in column A

  1. #1
    Registered User
    Join Date
    11-06-2013
    Location
    Glasgow
    MS-Off Ver
    Excel 2003
    Posts
    3

    Copy rows based on the value in column A

    Hi

    I've been looking at this for 30 mins now and think I'm over complicating things in my head and getting nowhere.

    So thought I'd come to the experts

    I need to copy the entire row from one sheet to another (or several) based on the value in column A

    so in column A i have staff names John Bob, Sally, Sue and Felix (names have been changed to protect the innocent)

    how would I copy all rows for Sue onto another sheet. then for Felix on another sheet and so on....

    If I changed the data on the any sheet it would change all, (thats not vital, but useful)

    the data will be constantly added on the first sheet and the named sheets would need to update.

    any takers?

    Thanks in advance.

    let me know if you need anymore info to assist.

    Chuck (not my real name either)

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,875

    Re: Copy rows based on the value in column A

    If you post an example file I can show you how to do it using a few formulae - you can continue to protect the innocent, but just include dummy data in all the columns that you use now, so I can ensure that I pick up all the data.

    Pete

  3. #3
    Registered User
    Join Date
    11-06-2013
    Location
    Glasgow
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Copy rows based on the value in column A

    Book1.xlsx

    so this would be a basic example of how it will look / function

    at this time the sheet I'm using is 1000's of lines deep, and about 30 col's and I have 3 managers to assign.

    I've done this using filter / link, but for some reason the sheet I have doesn't filter after a certain line and I don't want to run the risk of copy and pasting the same line twice.

    would the named sheets update when i save new info on the main sheet?

    Thanks very much for helping.

    I can have the actual sheet I use tomorrow as its in work, if it helps, but its mostly numerical and dates that is being entered.
    Last edited by Chuck_Fickens; 11-06-2013 at 10:06 PM. Reason: edit

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,875

    Re: Copy rows based on the value in column A

    You have names missing in column A of the master sheet, e.g. in A7 and A8. Are these meant to represent that Paul (in A6) is also doing or is responsible for those tasks?

    I think those cells will have to be filled with the appropriate name, to avoid any ambiguity - is there any problem with that?

    Also, you have two grey rows (13 and 19) which are not really part of the data - do you have many more of these in your real file? Could we use another field to indicate the type of work (Current, Other, Older perhaps) and remove the grey rows?

    Pete

  5. #5
    Registered User
    Join Date
    11-06-2013
    Location
    Glasgow
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Copy rows based on the value in column A

    the lines with missing files are just unassigned as yet, untill more is know then they will be assigned to someone, I suppose we
    could have unassigned in there if it helps with filling the box

    the grey rows represent lines i have for work that is current, work that is complete and invoiced and work that has been tendered and awaiting instruction, so its 3 sperate sctions I could turn these into seperate sheets for these, this might make the sheet more readable, I'll make a copy of the actual sheet tomorrow and upload, might be better than a lot of if, buts and maybe's and give you a better idea of the layout

  6. #6
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,694

    Re: Copy rows based on the value in column A

    Pl see the attached file. Is this what you are looking for.
    Attached Files Attached Files

+ 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. [SOLVED] Macro to copy rows based on a critera and copy the name of the column
    By dreddster in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-10-2013, 11:34 AM
  2. [SOLVED] Copy Rows based on value in column
    By anak2muda2 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-03-2013, 11:16 AM
  3. copy rows based on column value
    By justin1643 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-22-2013, 09:47 AM
  4. [SOLVED] Copy rows to new sheet based on value in Column 1
    By lzrdlvr in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-12-2013, 09:15 AM
  5. Copy Column A rows based on Column B value
    By bauthement in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-04-2010, 11:20 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