+ Reply to Thread
Results 1 to 4 of 4

copy alternative cells

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    10-24-2006
    Location
    INDIA
    MS-Off Ver
    office 2010
    Posts
    190

    copy alternative cells

    I have data in A column,(@3600 names) in that I wnat to copy alternative cells in another sheet

    for example, the data is as follows
    A1:Sagar
    A2:John
    A3:Fred
    A4:Lydia
    A5:Rosy
    A6:Grace

    I want to copy the alternative cells as follows

    Output
    A1: Sagar
    A2: Fred
    A3:Rosy

    can any one help with some solution-Sagar

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    You could use a helper column.

    Either enter this in B1

    =IF(ODD(ROW(B1))=ROW(),1,0)

    Then filter Column B on the Number 0 and delete

    or use

    =IF(ODD(ROW(A1))=ROW(),A1,"")

    and filter on non blanks

    VBA Noob

  3. #3
    Forum Contributor
    Join Date
    10-24-2006
    Location
    INDIA
    MS-Off Ver
    office 2010
    Posts
    190

    copy alternative cells

    Hi,

    Thanks for your help, any other option without filtering blanks

    Bye
    Sagar

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Yes,

    Try

    =IF(OFFSET(A1,ROW(A1)-1,0)="","",OFFSET(A1,ROW(A1)-1,0))

    VBA Noob

+ 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