Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Duplicate rows, put in another value

I'm not proficient in macros, so I was looking for a function that will look
for duplicates and mark one of them so I can delete it but then put in the
combined mail name.

My data looks like this:
ConsID CombinedName AddrName Final Mailing Name
01234 Mr. and Mrs. Joe Smith Mr. Joe Smith Mr. Joe Smith
01243 Mr. and Mrs. Joe Smith Mrs. Joe Smith delete
01235 Mrs. Henry Doe Mrs. Henry Doe

When I combine Mr. Joe Smith and Mrs. Joe Smith, I want the Final Mailing
Name to read Mr. and Mrs. Joe Smith because it will be going to both of them.

The final result would be:
ConsID CombinedName AddrName Final Mailing Name
01234 Mr. and Mrs. Joe Smith Mr. Joe Smith Mr. and Mrs. Joe Smith
01243 Mr. and Mrs. Joe Smith Mrs. Joe Smith delete
01235 Mrs. Henry Doe Mrs. Henry Doe

I've been using
=if (A2=B2, "Delete","")
but I can't figure out how to pull the combined name into another column?

Thanks- I hope this makes sense.





  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Duplicate rows, put in another value

Can I presume you had a typo under col A, ie that it should be:

ConsID
01234
01234
01235

If so, col A could be used definitively to identify the duplicates

You could then place this in D2 (under "Final Mailing Name"):
=IF(A2="","",IF(COUNTIF(A$2:A2,A2)1,"delete",IF(B 2="",C2,B2)))
and copy D2 down as far as required, to return desired results
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Carol G." <Carol wrote in message
...
I'm not proficient in macros, so I was looking for a function that will
look
for duplicates and mark one of them so I can delete it but then put in the
combined mail name.

My data looks like this:
ConsID CombinedName AddrName Final Mailing Name
01234 Mr. and Mrs. Joe Smith Mr. Joe Smith Mr. Joe Smith
01243 Mr. and Mrs. Joe Smith Mrs. Joe Smith delete
01235 Mrs. Henry Doe Mrs. Henry
Doe

When I combine Mr. Joe Smith and Mrs. Joe Smith, I want the Final Mailing
Name to read Mr. and Mrs. Joe Smith because it will be going to both of
them.

The final result would be:
ConsID CombinedName AddrName Final Mailing Name
01234 Mr. and Mrs. Joe Smith Mr. Joe Smith Mr. and Mrs. Joe
Smith
01243 Mr. and Mrs. Joe Smith Mrs. Joe Smith delete
01235 Mrs. Henry Doe Mrs. Henry
Doe

I've been using
=if (A2=B2, "Delete","")
but I can't figure out how to pull the combined name into another column?

Thanks- I hope this makes sense.







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
duplicate rows Gary Reger Excel Discussion (Misc queries) 0 June 15th 06 01:13 AM
Duplicate Rows jdkapa Setting up and Configuration of Excel 0 December 5th 05 12:50 AM
Duplicate rows [email protected] Excel Worksheet Functions 5 December 1st 05 03:28 PM
Duplicate Rows instauratio Excel Discussion (Misc queries) 1 June 6th 05 08:36 PM
Duplicate Rows TO Excel Worksheet Functions 2 November 12th 04 06:55 PM


All times are GMT +1. The time now is 07:55 PM.

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"