+ Reply to Thread
Results 1 to 3 of 3

Copy and paste per ID number

  1. #1
    Registered User
    Join Date
    03-31-2010
    Location
    The Netherlands
    MS-Off Ver
    Excel 2007
    Posts
    6

    Copy and paste per ID number

    Hi there,

    I have a rather large dataset (originally over 48,000 rows) in Excel. In the first column, I have ID numbers. Since the data was entered on per event basis, several rows may belong to the same ID. In another column (labelled "Tx_days"), I used an IF-formula such that the cell in that column belonging to the last row of each ID contains a value in that column and the preceding cells do not contain values (I used "" for this in the IF-formula). I would like to copy the value in those cells to the preceding blank cells per ID. However, since my dataset is very large, I would prefer not to have to copy the value to the blank cells one by one. Could anyone please help me with this?

    To be a bit more clear, I would like to go from:
    1
    1
    1
    1 200

    to this:
    1 200
    1 200
    1 200
    1 200

    for each ID.

    Any help would very much be appreciated!
    Attached Files Attached Files
    Last edited by MissPucca; 04-02-2010 at 03:02 PM.

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: Copy and paste per ID number

    You can use the first free column to insert formulas and put, in the last cell (i.e. E33314), the formula:
    =D33314
    while in other cells, i.e. E2:E3313, put the formula:
    =IF(D33313="",E33314,D33313)
    Regards,
    Antonio

  3. #3
    Registered User
    Join Date
    03-31-2010
    Location
    The Netherlands
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Copy and paste per ID number

    Thank you very much, Antonio! I applied the formula in the way you suggested and it worked. Your help really saved me a lot of work, so thanks once again!

+ 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