Combining text fields for duplicate records

lwilt

Board Regular
Joined
May 16, 2013
Messages
187
If I have a table that looks like:

emailcustomer numberapples trees sports ice cream
abc@yahoo.com123 YYY
abc@yahoo.com126
123@gmail.com858 Y
123@gmail.com767YY
owow@yahoo.com444 Y
owow@yahoo.com455
999@yahoo.com1001 YY
999@yahoo.com1103Y

<colgroup><col><col><col><col><col><col></colgroup><tbody>
</tbody>
999@yahoo.com 1005 Y

How can I combine the responses so that there isn't any duplicate emails and the responses all get combined under each of the questions so I don't lose any of the responses? There would be 17 total questions I would be trying to combine for the dup emails if that matters.
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Assuming your data is in sheet1 A1:F9, copy column A into sheet2 and remove duplicates (remove duplicates on the data tab) insert headings
In C2 and copied down and across =IF(COUNTIFS(Sheet1!$A$2:$A$9,Sheet2!$A2,Sheet1!C$2:C$9,"Y")>0,"Y","")


email applestreessportsice cream
abc@yahoo.com YY Y
123@gmail.com YYY
owow@yahoo.com Y
999@yahoo.com Y YY

<colgroup><col><col span="5"></colgroup><tbody>
</tbody>
 
Upvote 0
What I posted was the results I got from your sample data Did you adjust your sheet names and ranges?
 
Upvote 0
My bad...when typing the formula I left out the part where you searching sheet one for the email before checking the respones. worked great thank you.

Is there a way you can drag the formula to the right and have it update the columns? So at each new column you drag it to the C in the last part of the formula gets updated to D, E F, ect.
 
Upvote 0

Forum statistics

Threads
1,221,842
Messages
6,162,333
Members
451,759
Latest member
damav78

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