+ Reply to Thread
Results 1 to 4 of 4

how to merge cell please help

  1. #1
    Chuong Nguyen
    Guest

    how to merge cell please help

    Please help
    i had a excel workbook with few thousand lines of name, address

    A

    1 Name
    2 Adrress1
    3 Adrress2
    4
    5 Name
    6 Adrress1
    7 Adrress2

    I need to merge it into some thing like this

    A B

    1 Name Name, Address1, Address2
    2 Adrress1
    3 Adrress2
    4
    5 Name Name, Address1, Address2
    6 Adrress1
    7 Adrress2

    Please help with a VBA code or Marco
    Thanks

    Best Regards



  2. #2
    Tom Ogilvy
    Guest

    RE: how to merge cell please help

    in B1
    =IF(MOD(ROW(B1),4)=1,A1&","&A1&","&A3,"")

    then drag fill down the column.

    --
    Regards,
    Tom Ogilvy




    "Chuong Nguyen" wrote:

    > Please help
    > i had a excel workbook with few thousand lines of name, address
    >
    > A
    >
    > 1 Name
    > 2 Adrress1
    > 3 Adrress2
    > 4
    > 5 Name
    > 6 Adrress1
    > 7 Adrress2
    >
    > I need to merge it into some thing like this
    >
    > A B
    >
    > 1 Name Name, Address1, Address2
    > 2 Adrress1
    > 3 Adrress2
    > 4
    > 5 Name Name, Address1, Address2
    > 6 Adrress1
    > 7 Adrress2
    >
    > Please help with a VBA code or Marco
    > Thanks
    >
    > Best Regards
    >
    >
    >


  3. #3
    Jeff M
    Guest

    RE: how to merge cell please help

    Tom - do you have a typo in your formula? Don't you want to reference cell A2
    in the formula, as follows:

    =IF(MOD(ROW(B1),4)=1,A1&","&A2&","&A3,"")

    Cheers - Jeff


    "Tom Ogilvy" wrote:

    > in B1
    > =IF(MOD(ROW(B1),4)=1,A1&","&A1&","&A3,"")
    >
    > then drag fill down the column.
    >
    > --
    > Regards,
    > Tom Ogilvy
    >
    >
    >
    >
    > "Chuong Nguyen" wrote:
    >
    > > Please help
    > > i had a excel workbook with few thousand lines of name, address
    > >
    > > A
    > >
    > > 1 Name
    > > 2 Adrress1
    > > 3 Adrress2
    > > 4
    > > 5 Name
    > > 6 Adrress1
    > > 7 Adrress2
    > >
    > > I need to merge it into some thing like this
    > >
    > > A B
    > >
    > > 1 Name Name, Address1, Address2
    > > 2 Adrress1
    > > 3 Adrress2
    > > 4
    > > 5 Name Name, Address1, Address2
    > > 6 Adrress1
    > > 7 Adrress2
    > >
    > > Please help with a VBA code or Marco
    > > Thanks
    > >
    > > Best Regards
    > >
    > >
    > >


  4. #4
    Joerg
    Guest

    Re: how to merge cell please help


    "Chuong Nguyen" <chuonghnguyen@sbcglobal.net> wrote in message
    news:uiGVxrVxGHA.4416@TK2MSFTNGP03.phx.gbl...
    > Please help
    > i had a excel workbook with few thousand lines of name, address
    >
    > A
    >
    > 1 Name
    > 2 Adrress1
    > 3 Adrress2
    > 4
    > 5 Name
    > 6 Adrress1
    > 7 Adrress2
    >
    > I need to merge it into some thing like this
    >
    > A B
    >
    > 1 Name Name, Address1, Address2
    > 2 Adrress1
    > 3 Adrress2
    > 4
    > 5 Name Name, Address1, Address2
    > 6 Adrress1
    > 7 Adrress2
    >
    > Please help with a VBA code or Marco
    > Thanks



    Put this into B1 and copy it downward as needed:
    =IF(A4="",A1&", "&A2&", "&A3,"")

    Cheers,
    Joerg



+ 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