Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Xhawk57
 
Posts: n/a
Default combine cells under a common heading

I have a list of names and addresses but if two people live at the same
address they are listed separately. Is there a way to combine cells in which
the cell to right is the same.

example: [ John Smith] [123 Maple Ln]
[ Jane Smith] [123 Maple Ln]

becomes: [John Smith [123 Maple Ln]
Jane Smith ]

any help would be greatly apprecitated.
  #2   Report Post  
Posted to microsoft.public.excel.misc
ewan7279
 
Posts: n/a
Default combine cells under a common heading

Hi,

You can do this by using a helper column next to the address columns, then
hiding the column containing the addresses.

If the first address is in B2, enter into C2:

=IF(B2=B1,"",B2)

This will return a blank value if the address above the one being tested is
the same, or the address if it is not. Drag this formula down the entire
list of addresses then hide the address column.

Is this what you were after?

Ewan.



"Xhawk57" wrote:

I have a list of names and addresses but if two people live at the same
address they are listed separately. Is there a way to combine cells in which
the cell to right is the same.

example: [ John Smith] [123 Maple Ln]
[ Jane Smith] [123 Maple Ln]

becomes: [John Smith [123 Maple Ln]
Jane Smith ]

any help would be greatly apprecitated.

  #3   Report Post  
Posted to microsoft.public.excel.misc
Xhawk57
 
Posts: n/a
Default combine cells under a common heading

I am actually hoping to combine the two names in one cell separated by
alt+enter

so that if: John Smith is in cell A1 and 123 Maple Ln is in cell B1
and Jane Smith is in cell A2 and 123 Maple Ln is in cell B2

i am looking for a formula or series of formulas that will put

: John Smith <alt+enter
Jane Smith in cell A1 (or C1 if nessesary) and
leave 123 Maple ln in cell B1(or D2) while deleting it (or not including it)
in row 2

Help?!

"ewan7279" wrote:

Hi,

You can do this by using a helper column next to the address columns, then
hiding the column containing the addresses.

If the first address is in B2, enter into C2:

=IF(B2=B1,"",B2)

This will return a blank value if the address above the one being tested is
the same, or the address if it is not. Drag this formula down the entire
list of addresses then hide the address column.

Is this what you were after?

Ewan.



"Xhawk57" wrote:

I have a list of names and addresses but if two people live at the same
address they are listed separately. Is there a way to combine cells in which
the cell to right is the same.

example: [ John Smith] [123 Maple Ln]
[ Jane Smith] [123 Maple Ln]

becomes: [John Smith [123 Maple Ln]
Jane Smith ]

any help would be greatly apprecitated.

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 combine cells by selecting range? SPIRIT New Users to Excel 3 August 20th 05 10:40 AM
Can I combine the text from multiple cells automatically KNS Excel Worksheet Functions 5 June 15th 05 06:20 PM
seperating a group of common cells ShineboxNJ Excel Worksheet Functions 4 January 6th 05 11:45 AM
Convert data type of cells to Text,Number,Date and Time Kevin Excel Worksheet Functions 1 December 31st 04 12:57 PM
How can I combine multiple cells in Excel? jallbright24 Excel Discussion (Misc queries) 1 November 29th 04 04:54 PM


All times are GMT +1. The time now is 10:51 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"