+ Reply to Thread
Results 1 to 8 of 8

Copy rows to another sheet base on text in cells

  1. #1
    Registered User
    Join Date
    10-25-2005
    Posts
    21

    Copy rows to another sheet base on text in cells

    Hi

    Could Anyone help with the following problem as details below.

    how to copy rows to another sheet based on text in cells is true

    Regards

    WOB

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

    Re: Copy rows to another sheet base on text in cells

    It would help if you attached a sample Excel workbook, in which you can indicate what you want to achieve.

    Pete

  3. #3
    Registered User
    Join Date
    10-25-2005
    Posts
    21

    Re: Copy rows to another sheet base on text in cells

    Hi Pete_UK,

    Thanks for quick response please find below before(Brown) and after(Green) sample.

    Just need the best way to produce this ideally "After" needs to be on separate sheet tab part number sorted with print range to suit

    As requested this is just a sample of a very big spreadsheet

    Please let me know if you need any more info

    Regards

    WOB
    Attached Images Attached Images

  4. #4
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2021
    Posts
    1,013

    Re: Copy rows to another sheet base on text in cells

    Hi Winston,

    Have you considered copying the tab and using a filter to hide the rows that don't have comments?

    Snook

  5. #5
    Registered User
    Join Date
    10-25-2005
    Posts
    21

    Re: Copy rows to another sheet base on text in cells

    Hi Snook,

    I would need it to be automatic in real time on a separate tab or on same spreadsheet in different area.
    This would be needed 2 to 3 times a day as data is changed by other users.

    Regards

    WOB

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

    Re: Copy rows to another sheet base on text in cells

    You can do this with a couple of formulae, as the attached file illustrates. Put this formula in D2 of Sheet1:

    =IF(C2="","-",MAX(D$1:D1)+1)

    Copy this down beyond your data, so as to accommodate more records being added (the hyphens show where the formula is active). Then in A2 of Sheet2 you can have this formula:

    =IFERROR(INDEX(Sheet1!A:A,MATCH(ROWS($1:1),Sheet1!$D:$D,0)),"")

    Copy this into B2:C2, and then copy the row of formulae down as far as you need (I've copied to row 20 in the example file)

    Hope this helps.

    Pete

    P.S. In future you should attach a sample Excel workbook (not a picture of one) - no-one like to have to re-create a workbook from scratch.

  7. #7
    Registered User
    Join Date
    10-25-2005
    Posts
    21

    Re: Copy rows to another sheet base on text in cells

    Hi Pete_UK

    In a word "FANTASTIC" just what I needed, what can I say but thanks very much for saving me so much time!!!!!!!!!!!!!!!!!!!!!!!.

    Pete where are you from in UK?

    Regards

    WOB

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

    Re: Copy rows to another sheet base on text in cells

    Glad to hear it works for you.

    As it says in my profile, I'm from Warrington, which is mid-way between Manchester and Liverpool.

    If that takes care of your original question, please select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Also, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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 diff cells of a sheet & paste in a NEW row below previously filld rows of other sheet
    By shubhashishdubey in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-27-2014, 12:36 AM
  2. [SOLVED] Copy data from 1 sheet to another sheet base on serial number input
    By Curtis goh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-17-2013, 11:37 PM
  3. Creating rows onto another sheet, base on the indicated number in cell
    By jackowacko in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-08-2013, 12:05 PM
  4. [SOLVED] return values from another sheet base in cells in another sheet
    By utahguy9384 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-27-2012, 12:23 AM
  5. Search header row for common text in cells and copy below rows to new sheet
    By drewship in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-19-2011, 02:23 PM
  6. Copy Rows from Master Sheet to Child Sheets Base on Values
    By Traquair in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-16-2010, 03:19 PM
  7. Copy data to another sheet base on date
    By mypassion1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-07-2009, 04:12 PM
  8. Copy entire row from one sheet to another base on answer
    By nhatrang in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-30-2008, 01:30 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