Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 138
Default how to merge cell please help


"Chuong Nguyen" wrote in message
...
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
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
how to merge many cell to one cell with keeping all data Valley Excel Worksheet Functions 0 August 25th 06 01:12 PM
How to merge one cell from many workbooks to one cell on one work Marc Excel Worksheet Functions 2 October 31st 05 02:07 AM
Merge cell & Copy Data from different cell MK Excel Discussion (Misc queries) 0 June 24th 05 10:54 AM
Merge Cell Ren Excel Programming 2 February 21st 05 03:17 PM
How do I merge 2 cells for ex. DE (1 cell) & 01234 (2 cell) into . DaysofSomer Excel Discussion (Misc queries) 1 January 31st 05 07:55 PM


All times are GMT +1. The time now is 04:01 AM.

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"