+ Reply to Thread
Results 1 to 5 of 5

Copy paste into first cell in column, Skip cells with text.

  1. #1
    Registered User
    Join Date
    09-07-2012
    Location
    southampton, england
    MS-Off Ver
    Excel 2007
    Posts
    20

    Copy paste into first cell in column, Skip cells with text.

    Hi,

    I have tried and not got the result i wanted.

    The excel file is straight forward in its explanation, please take a look. I hope someone can help!

    Select copy column

    paste in new sheet

    skip cells with text in (but paste over formula's that equal "")
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    08-11-2012
    Location
    bengalur
    MS-Off Ver
    Excel 2003, 2007
    Posts
    152

    Re: Copy paste into first cell in column, Skip cells with text.

    =TEXT(C1, "dd MMMM YYYY")&"-AM"

    Please use this formula to copy data from C1.

    ________________________________________________________________________________________________________________
    Please click * to say thank you

  3. #3
    Registered User
    Join Date
    09-07-2012
    Location
    southampton, england
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Copy paste into first cell in column, Skip cells with text.

    Thanks but a VBA solution is required.

    The finishrota already has formula displaying information from yet another sheet. If the formula does not find anything (= "") information from baserota is pasted over cell, if cell has text does not paste over.

    thanks

  4. #4
    Forum Contributor
    Join Date
    08-11-2012
    Location
    bengalur
    MS-Off Ver
    Excel 2003, 2007
    Posts
    152

    Re: Copy paste into first cell in column, Skip cells with text.

    Quote Originally Posted by miles.boyle View Post
    Thanks but a VBA solution is required.

    The finishrota already has formula displaying information from yet another sheet. If the formula does not find anything (= "") information from baserota is pasted over cell, if cell has text does not paste over.

    thanks

    We can achieve this using formula

    =if(C1="","", Text(C1,"dd MMMM YYYY") & "-AM")





    ____________________________________________________________________________________________
    Please click * to say thank you

  5. #5
    Registered User
    Join Date
    09-07-2012
    Location
    southampton, england
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Copy paste into first cell in column, Skip cells with text.

    Something like the below:

    Sub test()


    Dim rng As Range
    Dim cell As Range


    Set rng = Range("c1:c400")


    For Each cell In rng


    If isempty(cell) Then
    cell.Value = cell.Offset(0, 1).Value
    End If
    Next

    but if text is present in 'finishedrota' it would paste the value in the next cell instead of skipping it.

+ 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: 1
    Last Post: 08-23-2013, 03:35 PM
  2. [SOLVED] Find text in column A then copy the cell to the right and paste it in sheet2
    By Alring in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-22-2013, 02:11 AM
  3. [SOLVED] Need MACRO to copy the text in the cell left of first selected cells (a column), paste all
    By joobeng in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-16-2013, 06:42 AM
  4. Skip Cells in a Copy/Paste-Style Function
    By Jbm444 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-16-2010, 02:09 PM
  5. Replies: 7
    Last Post: 07-04-2006, 03:20 AM

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