Results 1 to 6 of 6
  1. #1
    5 Star Lounger
    Join Date
    Mar 2001
    Posts
    989
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Alternate columns (2007)

    Hi. I have text appearing down columns A and B. How can I enter a formula in column C that I can copy down, that will pick up alternate column values. That is, to pick up text in A1, then B1, then A2, etc..? Thanks, Andy.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Alternate columns (2007)

    Enter this formula in C1, then fill down:
    <code>
    =OFFSET($A$1,(ROW()-1)/2,MOD(ROW()-1,2))</code>

  3. #3
    WS Lounge VIP rory's Avatar
    Join Date
    Dec 2000
    Location
    Burwash, East Sussex, United Kingdom
    Posts
    6,280
    Thanks
    3
    Thanked 191 Times in 177 Posts

    Re: Alternate columns (2007)

    You could use:
    =INDEX(A:B,(ROW()-1)/2+1,2-MOD(ROW(),2))
    Regards,
    Rory

    Microsoft MVP - Excel

  4. #4
    WS Lounge VIP rory's Avatar
    Join Date
    Dec 2000
    Location
    Burwash, East Sussex, United Kingdom
    Posts
    6,280
    Thanks
    3
    Thanked 191 Times in 177 Posts

    Re: Alternate columns (2007)

    Always more than one way to skin a cat! <img src=/S/grin.gif border=0 alt=grin width=15 height=15>
    Regards,
    Rory

    Microsoft MVP - Excel

  5. #5
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Alternate columns (2007)

    Yep, but the basic idea behind both formulas is the same! <img src=/S/smile.gif border=0 alt=smile width=15 height=15>

    The similarity is even more apparent if you write your formula as =INDEX(A:B,(ROW()-1)/2+1,MOD(ROW()-1,2)+1)

  6. #6
    5 Star Lounger
    Join Date
    Mar 2001
    Posts
    989
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Alternate columns (2007)

    That's brilliant, thanks. Andy.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •