+ Reply to Thread
Results 1 to 6 of 6

How to copy select cells and paste identically in another column?

  1. #1
    Registered User
    Join Date
    04-14-2006
    Posts
    24

    How to copy select cells and paste identically in another column?

    I have a column AC (resulting from processing from AA) the orginal data entry column) that has the following values

    AC1 2
    AC2 55
    AC3 4
    AC4 #value!
    AC5 75
    AC6 8
    AC7 #value!

    i need to select all numerical values only which i do by Go to and selecting constants and numbers. This is then copied to clipboard

    i would want to know how to paste this over the original column AA such that the values land up in AA1, AA2, AA3, AA5 and AA6 but the original values of AA4 and AA7 remain the same.

    When I do so the copied values overwrite all the existing ones and produce a shorter column as all values were not selected
    Last edited by perfection; 10-17-2010 at 03:39 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: How to copy select cells and paste identically in another column?

    Reverse the logic - run GoTo -> Special on the Column but select Errors (& OK) - once selected press Del key to clear contents.

  3. #3
    Valued Forum Contributor
    Join Date
    10-17-2010
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013, 2016, 2019, 365
    Posts
    294

    Re: How to copy select cells and paste identically in another column?

    I think I'd be inclined to generate a column that gives you the full set of values you want first. In 2007 or later, the IFERROR() function is convenient.
    So, in cell AD1:
    =IFERROR(AC1,AA1)
    This takes the value in AC1 unless it is an error, in which case it takes AA1.
    Copy that down, and you should have a column with the numbers you want. Of course, you could wrap the IFERROR() function around whatever you have in column AC, to save on columns...

    If using 2003 or earlier, you'll need the slightly longer
    =IF(ISERROR(AC1),AA1,AC1)

  4. #4
    Registered User
    Join Date
    04-14-2006
    Posts
    24

    Re: How to copy select cells and paste identically in another column?

    Thanks DonkeyOte
    But when i do that the errors get deleted and then copying and pasting the column values cause blanks in AA4 and AA7 whose values i want to retain

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: How to copy select cells and paste identically in another column?

    see outofthehat's suggestion

  6. #6
    Registered User
    Join Date
    04-14-2006
    Posts
    24

    Re: How to copy select cells and paste identically in another column?

    outofthehat
    the formula you supplied did exactly what i wanted
    Thanks

+ 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