Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How to Merge Two Cells IF Another Cell Matches

I want to Merge "First Names" when the "Address" is the same in each row.
Such that I could end up with "Mary and Joe" in the First Name Field when the
Addresses matched.
Is there a simple way to do this?
Thanks!
Susanne

Room Teacher First Name Last Name Address
23 Bhatnagar Mary Smith 10010 S Stelling Rd
6 Rucker Joe Smith 10010 S Stelling Rd
9 Wiitala Jane Dogma 10015 Orange Av
19 Renaghan Phill Krissy 1002 Westlynn Wy, 4
1 Bunya Darla Krissy 1002 Westlynn Wy, 4
27 Jung Mike Reddy 10021 Carmona Ct
10 Eller Peter Lei 10035 Byrne Av
17 Sanchez Andrew Bertrand 10055 Byrne Av
21 DeSagun April Tsao 10056 Pasadena Av, D
11 Lowe June Grewal 10057 Imperial Av
27 Jung May Keddia 1006 Westlynn Wy, 1
21 DeSagun Frank Keddia 1006 Westlynn Wy, 1

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default How to Merge Two Cells IF Another Cell Matches

try this in cell F3:
=IF(E3=E2,C2&" and "&C3&" "&D3,"")

HTH,
Ryan--

--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"suzikeith" wrote:

I want to Merge "First Names" when the "Address" is the same in each row.
Such that I could end up with "Mary and Joe" in the First Name Field when the
Addresses matched.
Is there a simple way to do this?
Thanks!
Susanne

Room Teacher First Name Last Name Address
23 Bhatnagar Mary Smith 10010 S Stelling Rd
6 Rucker Joe Smith 10010 S Stelling Rd
9 Wiitala Jane Dogma 10015 Orange Av
19 Renaghan Phill Krissy 1002 Westlynn Wy, 4
1 Bunya Darla Krissy 1002 Westlynn Wy, 4
27 Jung Mike Reddy 10021 Carmona Ct
10 Eller Peter Lei 10035 Byrne Av
17 Sanchez Andrew Bertrand 10055 Byrne Av
21 DeSagun April Tsao 10056 Pasadena Av, D
11 Lowe June Grewal 10057 Imperial Av
27 Jung May Keddia 1006 Westlynn Wy, 1
21 DeSagun Frank Keddia 1006 Westlynn Wy, 1

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default How to Merge Two Cells IF Another Cell Matches

If you are sure there are not more than 2 entries with the same address you
can try the below formula in F2 and copy down as required...Once done you can
copypastespecialselect values to convert the formulas to actual text.

With data in ColA to ColE and row1 having headers..and F1 a blank cell; try
the below formula in F2.
=IF(F1<"","",IF(E2=E3,C2&" and "&C3,C2))

If this post helps click Yes
---------------
Jacob Skaria


"suzikeith" wrote:

I want to Merge "First Names" when the "Address" is the same in each row.
Such that I could end up with "Mary and Joe" in the First Name Field when the
Addresses matched.
Is there a simple way to do this?
Thanks!
Susanne

Room Teacher First Name Last Name Address
23 Bhatnagar Mary Smith 10010 S Stelling Rd
6 Rucker Joe Smith 10010 S Stelling Rd
9 Wiitala Jane Dogma 10015 Orange Av
19 Renaghan Phill Krissy 1002 Westlynn Wy, 4
1 Bunya Darla Krissy 1002 Westlynn Wy, 4
27 Jung Mike Reddy 10021 Carmona Ct
10 Eller Peter Lei 10035 Byrne Av
17 Sanchez Andrew Bertrand 10055 Byrne Av
21 DeSagun April Tsao 10056 Pasadena Av, D
11 Lowe June Grewal 10057 Imperial Av
27 Jung May Keddia 1006 Westlynn Wy, 1
21 DeSagun Frank Keddia 1006 Westlynn Wy, 1

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
Copying bulk cells that matches a single cell name [email protected] Excel Worksheet Functions 1 May 17th 07 03:20 PM
How can I merge 3 cells into 1 cell? Lucky1423 Excel Worksheet Functions 3 May 1st 07 07:59 PM
merge several cells with text into 1 cell chum Excel Discussion (Misc queries) 4 July 25th 06 04:30 PM
How do I merge one cell into two cells? auntieboop Excel Discussion (Misc queries) 1 May 30th 06 04:00 PM
Change fmt of a cell if number matches any in a range of cells? SteveR Excel Worksheet Functions 2 April 20th 06 05:32 PM


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