+ Reply to Thread
Results 1 to 7 of 7

ADVANCED: Copy-Pasting Into Every Other Cell Unique Data

  1. #1
    Registered User
    Join Date
    10-02-2014
    Location
    Honolulu, Hawaii
    MS-Off Ver
    2013
    Posts
    2

    Exclamation ADVANCED: Copy-Pasting Into Every Other Cell Unique Data

    This is something that's been driving me crazy. I work in a library and the following data are accession numbers for old 45 and 78 records. Here's a gross simplification of what I am currently looking at in Excel (the single quotes indicate empty cells) -

    2002.400.78.00001
    ' '
    2002.400.78.00002
    ' '
    2002.400.78.00003
    ' '
    2002.400.78.00004
    ' '
    2002.400.78.00005
    ' '

    What I'm trying to do is get the data to look like this -

    2002.400.78.00001
    2002.400.78.00001
    2002.400.78.00002
    2002.400.78.00002
    2002.400.78.00003
    2002.400.78.00003
    2002.400.78.00004
    2002.400.78.00004
    2002.400.78.00005
    2002.400.78.00005

    To break it down more formulaically I want Excel to copy and paste a given accession number into the blank cells that follow it, until it hits the next accession number at which point I'd like the process to repeat. There are a few cases when accession numbers are separated by more than one blank cell. e.g. -

    2002.400.78.00013
    ' '
    ' '
    ' '
    2002.400.78.00014
    ' '
    2002.400.78.00015
    ' '
    2002.400.78.00016
    ' '

    Which I would like to see as -

    2002.400.78.00013
    2002.400.78.00013
    2002.400.78.00013
    2002.400.78.00013
    2002.400.78.00014
    2002.400.78.00014
    2002.400.78.00015
    2002.400.78.00015
    2002.400.78.00016
    2002.400.78.00016

    Any masters out there that could be of assistance? I'm dealing with 12000+ lines of these sorts of data. I've just about thrown the towel in.

    If you need more information holler. Much thanks in advance.

  2. #2
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: ADVANCED: Copy-Pasting Into Every Other Cell Unique Data

    If it was me I'd create a new column (B) next to your data column (A) and put the following formula in

    in B1
    Please Login or Register  to view this content.
    then in B2 down
    Please Login or Register  to view this content.
    copy this down column B then if needed copy and paste as values over column A to replace
    Happy with my advice? Click on the * reputation button below

  3. #3
    Forum Contributor SCLai's Avatar
    Join Date
    08-18-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    129

    Re: ADVANCED: Copy-Pasting Into Every Other Cell Unique Data

    Hi and welcome to the forums

    Assuming your original data to be in Col A, starting in A2:
    1.) Paste this into Cell B2 =IF(A2="",B1,A2)
    2.) Drag the formula throughout your entire range

    Hope this is what you are looking for!


    SC
    Attached Files Attached Files
    Last edited by SCLai; 10-02-2014 at 11:04 PM.
    Do give a * (bottom left) if the post helped!

  4. #4
    Registered User
    Join Date
    07-13-2011
    Location
    St. George, Utah
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: ADVANCED: Copy-Pasting Into Every Other Cell Unique Data

    Perhaps I don't understand fully, but have you tried pasting everything into one column, and then remove duplicates? You might be left with a single blank cell, but then you can remove that and your data should flow.

  5. #5
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: ADVANCED: Copy-Pasting Into Every Other Cell Unique Data

    Mate,

    He doesn't have any duplicates. They're trying to fill the gaps with duplicate values.

  6. #6
    Registered User
    Join Date
    07-13-2011
    Location
    St. George, Utah
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: ADVANCED: Copy-Pasting Into Every Other Cell Unique Data

    the gaps are all identical, so I believe that qualifies as duplicates.

    Didn't read his outcome properly. My mistake.
    Last edited by mmccleve; 10-03-2014 at 12:15 AM. Reason: retracting my suggestion

  7. #7
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: ADVANCED: Copy-Pasting Into Every Other Cell Unique Data

    the gaps are all identical, so I believe that qualifies as duplicates.
    Good point. I didn't think of all those gaps as duplicates.

+ 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. Replies: 3
    Last Post: 08-14-2014, 01:57 PM
  2. Copy/Pasting Hyperlinks and not data within the cell
    By ipausa in forum Excel General
    Replies: 0
    Last Post: 11-07-2011, 12:25 PM
  3. Advanced Filter - unique cell value as one of the criteria
    By efm in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-20-2010, 03:43 AM
  4. Advanced Filter Unique Problems with Relational Data
    By rob0r in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-16-2009, 05:42 AM
  5. Advanced unique cell count with multiple conditions ... help!
    By Flystar in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-24-2005, 10:50 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