Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jan Jan is offline
external usenet poster
 
Posts: 5
Default How to in Excel? Do I need a formula for it?

Hello.

I have data in ONE column in every row and would like to have TWO
columns with the same data, but in first column all of the odd rows of
the FIRST column and in the second column all of the even rows of the
FIRST column.
Can someone tell me how to do it?
Thanks for your time and help.
Jan

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default How to in Excel? Do I need a formula for it?

Hi,

To extract the even rows put this in b1 and drag down

=IF(MOD(ROW(A1),2)=0,A1,"")

and in c1 and drag down for the odd rows

=IF(MOD(ROW(A1),2)=1,A1,"")

Mike


"Jan" wrote:

Hello.

I have data in ONE column in every row and would like to have TWO
columns with the same data, but in first column all of the odd rows of
the FIRST column and in the second column all of the even rows of the
FIRST column.
Can someone tell me how to do it?
Thanks for your time and help.
Jan


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default How to in Excel? Do I need a formula for it?

=OFFSET(A$1,2*INT(ROW()-ROW(A$1)),0) for yoir odd column
=OFFSET(A$2,2*INT(ROW()-ROW(A$1)),0) for your even column
--
David Biddulph

"Jan" wrote in message
ups.com...
Hello.

I have data in ONE column in every row and would like to have TWO
columns with the same data, but in first column all of the odd rows of
the FIRST column and in the second column all of the even rows of the
FIRST column.
Can someone tell me how to do it?
Thanks for your time and help.
Jan



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default How to in Excel? Do I need a formula for it?

Assuming your FIRST column is Column A, and your data starts in Row 1, enter
this formula in B1:

=INDIRECT("A"&(ROW()*2)-1)

Then enter this formula in C1:

=INDIRECT("A"&(ROW()+1)*2-2)

Copy both of these formulas down as far as you need.

Then, select all of your data in Columns B and C. Copy. Then, while B and
C are still selected, choose "Paste Special" from the Edit Menu. Check the
"Values" option. Click OK.

Now, delete column A. Your data should now be separated into the two
columns the way you wanted.

HTH,
Elkar


"Jan" wrote:

Hello.

I have data in ONE column in every row and would like to have TWO
columns with the same data, but in first column all of the odd rows of
the FIRST column and in the second column all of the even rows of the
FIRST column.
Can someone tell me how to do it?
Thanks for your time and help.
Jan


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default How to in Excel? Do I need a formula for it?

The INT functions are, of course, unnecessary.
--
David Biddulph

"David Biddulph" <groups [at] biddulph.org.uk wrote in message
...
=OFFSET(A$1,2*INT(ROW()-ROW(A$1)),0) for yoir odd column
=OFFSET(A$2,2*INT(ROW()-ROW(A$1)),0) for your even column
--
David Biddulph

"Jan" wrote in message
ups.com...
Hello.

I have data in ONE column in every row and would like to have TWO
columns with the same data, but in first column all of the odd rows of
the FIRST column and in the second column all of the even rows of the
FIRST column.
Can someone tell me how to do it?
Thanks for your time and help.
Jan





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
When I enter a formula, Excel shows the formula not the results Pat Adams Excel Worksheet Functions 5 April 4th 23 11:18 AM
Excel 2002 Formula: Urgent Conditional Formula Required Right Away - if possible blue[_2_] Excel Discussion (Misc queries) 2 July 11th 07 06:08 PM
Build excel formula using field values as text in the formula val kilbane Excel Worksheet Functions 2 April 18th 07 01:52 PM
Excel 2002 formula displayed not value formula option not checked Dean Excel Worksheet Functions 1 February 28th 06 02:31 PM
How do I view formula results intead of formula in excel? davidinatlanta Excel Worksheet Functions 4 February 7th 06 03:02 PM


All times are GMT +1. The time now is 07:12 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"