Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Dear all
I would like to reshape one long column of data into two columns, each containing every other entry of the original column. This is known as "reshaping" from "long" format to "wide" format in statistics programs such as Stata and R. But I would like to be able to do it directly in Excel. To illustrate: The long column: 1 2 3 4 5 6 etc. is reshaped into the two columns: 1 2 3 4 5 6 etc. Could someone help with directions on doing this in Excel? Best regards, Claus -- Claus Dethlefsen, MSc, PhD Biostatistician at Center for Cardiovascular Research Aalborg Hospital Science and Innovation Center Aalborg Hospital Sdr Skovvej 15 DK-9000 Aalborg Denmark |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
One way ..
Assuming data running in A1 down, Put in B1: =INDEX($A:$A,ROW(A1)*2-2+COLUMN(A1)) Copy B1 to C1, then fill down until zeros appear, signalling exhaustion of data extracted from col A -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- "Claus Dethlefsen" wrote: Dear all I would like to reshape one long column of data into two columns, each containing every other entry of the original column. This is known as "reshaping" from "long" format to "wide" format in statistics programs such as Stata and R. But I would like to be able to do it directly in Excel. To illustrate: The long column: 1 2 3 4 5 6 etc. is reshaped into the two columns: 1 2 3 4 5 6 etc. Could someone help with directions on doing this in Excel? Best regards, Claus -- Claus Dethlefsen, MSc, PhD Biostatistician at Center for Cardiovascular Research Aalborg Hospital Science and Innovation Center Aalborg Hospital Sdr Skovvej 15 DK-9000 Aalborg Denmark |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Stop excel from dropping the 0 in the beginning of a number? | Setting up and Configuration of Excel | |||
Open Excel 2003 from Windows Explorer | Excel Discussion (Misc queries) | |||
Need suggestions for some uses of Ms Excel | Excel Discussion (Misc queries) | |||
Excel Range Value issue (Excel 97 Vs Excel 2003) | Excel Discussion (Misc queries) | |||
Excel 2002 and 2000 co-install. Control Which Starts ? | Excel Discussion (Misc queries) |