Forum Discussion

etienne m's avatar
etienne m
Copper Contributor
Apr 06, 2017

convert from single column to multiple columns

I have an list of addresses in one column

Name1

Adress1

Postcode1

City1

Name2

Adress2

Postcode2

City2

Name3

Adress3

Postcode3

City3

Name4

Adress4

Postcode4

City4

 

Which must be converted into 4 columns:

Name1                 adress1                  postcode1            city1

Name2                 adress2                  postcode2            city2

Name3                 adress3                  postcode3            city4

Name4                 adress4                  postcode4            city4

 

Any suggestions?

I use Excell 2010 and 2016

Regards,

Etienne

  • Hi,

     

    As variant:

    - if your initial list in column A:A,

    - add index column (let say C) where starting from C1 it will be numbers 1,2,3,..

    - in D1 add formula

    =OFFSET($A$1,($C1-1)*4+0,0)

    in E1

    =OFFSET($A$1,($C1-1)*4+1,0)

    and simular to F1 and G1 (using ..*4+2 and ...*4+3)

    - copy cells from D1 to G1 down

     

     

     

    • JoeMcDaid's avatar
      JoeMcDaid
      Icon for Microsoft rankMicrosoft

      Assuming your data starts in A1. Place the following formula into B1:

       

       

      =OFFSET($A$1,(ROW(A1)-1)*4+COLUMN(B1)-2,0)

       

      And copy down and across.

      • SergeiBaklan's avatar
        SergeiBaklan
        MVP

        Hi Joe,

         

        Yes, but shall be updated a bit for the case if you insert row(s) and/or column(s) into the sheet

Resources