merging two fields

missMRWhite

New Member
Joined
Jan 17, 2012
Messages
3
I need to add two fields together to make a third field for example first name, last name to create a contact name. Then delete the duplicates. I don't want to just delete duplicates from last name as there are several records with one last name (Smith) and several people with the same first name (John). I would then create a new table with just the unique names with one John Smith. This would allow me to join these records to a future form.
Thanks!
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Why do you want a table for unique names?

If you do need the unique names from the table you already have you can just use a simple query.

Something like this perhaps:

SELECT DISTINCT [FirstName] &[LastName] As FullName
FROM [MainTable]

You could then use this query in the future form.
 
Upvote 0
a query is fine I don't really need a new table at this point (I can always create a table from a query if needed). I need a count of unique names but I also need counts from 3 other fields - 2 are yes/no fields the other I need >0 but in the end need them all to be in one report/query/table whatever to see a comprehensive set of data. My second question was can I have multiple counts in one query? <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
Thanks!<o:p></o:p>
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,333
Members
452,636
Latest member
laura12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top