+ Reply to Thread
Results 1 to 3 of 3

Formula for duplicating a column?

  1. #1
    Registered User
    Join Date
    02-09-2012
    Location
    Langhorne
    MS-Off Ver
    Excel 2003
    Posts
    2

    Formula for duplicating a column?

    Hi all,

    I have a column of operators

    i.e
    1
    -1
    2
    0
    3
    -2
    etc...

    I need that column to be doubled or duplicated in a separate column

    i.e.
    1
    1
    -1
    -1
    2
    2
    0
    0
    3
    3
    -2
    -2
    etc.

    Is there a way to do this other than typing every one in by hand in my "Operator double" column?

    I am trying to find a way to program this formula into excel so I can see the numbers involved, and it is giving me problems.
    pn[2*i] = pn[2*i -2] - (pn[i] - pn[i-1])
    pn[2*i +1] = pn[2*i -1] + (pn[i] - pn[i-1])

    Thanks for the help.
    Last edited by jd8386; 02-09-2012 at 10:43 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,111

    Re: Formula for duplicating a column?

    Try: =INDEX(A:A,INT((ROW(A1)-1)/2)+1)
    Never use Merged Cells in Excel

  3. #3
    Registered User
    Join Date
    02-09-2012
    Location
    Langhorne
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Formula for duplicating a column?

    Excellent! It works. 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