+ Reply to Thread
Results 1 to 2 of 2

Copying rows from another worksheet

  1. #1
    Registered User
    Join Date
    01-07-2007
    Posts
    10

    Copying rows from another worksheet

    What im looking to do is automatically populate sheet2 from the data in sheet1. I need all the rows that contain any data in column "C" to appear in sheet2.

    sheet 1
    A B C D
    1 v 1 2 3
    2 w 3 6
    3 x 7 5
    4 y 9
    5 z 6 5 7

    sheet2
    A B C D
    1 v 1 2 3
    2 x 7 5
    3 z 6 5 7
    4
    Last edited by morbo; 01-27-2010 at 06:23 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Copying rows from another worksheet

    In E1, Sheet1 enter:

    =COUNTA(C$1:C1)

    copied down

    and in F1, enter =MAX(E:E)

    Then in A1 of Sheet2:

    =IF(ROWS($A$1:$A1)>Sheet1!$F$1,"",INDEX(Sheet1!A$1:A$5,MATCH(ROWS($A$1:$A1),Sheet1!$E$1:$E$5,0)))

    adjust ranges to suit and copy down as far as you want and across...

    To hide zeroes, go to Tools|Options and in View tab uncheck Zero Values.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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.6.0 RC 1