Combining cells with the same data but keeping some data separate

jarrodexcel

New Member
Joined
Dec 14, 2022
Messages
23
Office Version
  1. 365
Platform
  1. Windows
Good afternoon all.

Have a tricky goal to try and combine two rows with the same data, so merge it into one row of data. I will need a formula that can combine them as ill have lots of this data coming in.

As you can see below - A, B and C all share the same data and i need them merged into one, but D has different data and would need that to multiply by each other so the 5xABC etc and 3x ABC becomes 8xABC1111-1999.

Any help will go a long way !

Thank you so much


A B C D
John Doe
125522​
The big tree hotel, abc london5xABC1111-1999
John Doe
125522​
The big tree hotel, abc london3xABC1111-1999
 
Oh sorry my bad !

Please see below the new cells that are added in

Thank you

John DOE1255887The office stop2xABC1234-40004
John DOE1234466Two tree style shop2xABC1111-4004
John DOE1255442Viewing Galary1 x Green Tray5x1155-1234tt
John DOE1245222The Ark3xABC1234-9999
John DOE1245222The Ark3x blue sheet + 1x Green Tray2x1234-9999_SS
John DOE5222369Park Plaza7xABC1235-1994
John DOE5478116Orange floor shop3xC111_2_4-SS
John DOE5544899The top stop1x Green Tray + 2x White Tree1xABC4004-1234
John DOE1234455The big tree hotel, abc london6xABC1155-9999
John DOE1234455The big tree hotel, abc london2xABC1155-9999
 
Upvote 0

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
I think that does need some visual clarification @jarrodexcel
Oh sorry my bad !

Please see below the new cells that are added in

Thank you

John DOE1255887The office stop2xABC1234-40004
John DOE1234466Two tree style shop2xABC1111-4004
John DOE1255442Viewing Galary1 x Green Tray5x1155-1234tt
John DOE1245222The Ark3xABC1234-9999
John DOE1245222The Ark3x blue sheet + 1x Green Tray2x1234-9999_SS
John DOE5222369Park Plaza7xABC1235-1994
John DOE5478116Orange floor shop3xC111_2_4-SS
John DOE5544899The top stop1x Green Tray + 2x White Tree1xABC4004-1234
John DOE1234455The big tree hotel, abc london6xABC1155-9999
John DOE1234455The big tree hotel, abc london2xABC1155-9999
 
Upvote 0
Im not sure what you want to do when you group by 'The Ark' for example. What if both rows had a different value etc?
 
Upvote 0
Im not sure what you want to do when you group by 'The Ark' for example. What if both rows had a different value etc?
Good morning! So for grouping as such for the new row, if they are able to combine all text as well, same as the the 2xabc etc row that would be a miracle for me !
 
Upvote 0
Good morning! So for grouping as such for the new row, if they are able to combine all text as well, same as the the 2xabc etc row that would be a miracle for me !
For more clear reference of what i am after to hopefully clear up any confusion.



As you can see the first column depicts the Individual in charge of each account - John DOE.
Then the account number, account name, unit type and finally product code.

I need a formula that can combine all of these together if there is multiple lines with the same account

SO the office stop is fine as it is and requires no change, but accounts with multiple products and units these need to be combines into one row.

For example.

The Ark i need its end product to look like this in the row

John DOE1245222The Ark1x white tree + 3x blue sheet + 1x Green Tray5xABC1234-9999





Data that is sent to me that needs formatting

John DOE1255887The office stop2xABC1234-40004
John DOE1234466Two tree style shop2xABC1111-4004
John DOE1255442Viewing Galary1 x Green Tray5x1155-1234tt
John DOE1245222The Ark1x white tree3xABC1234-9999
John DOE1245222The Ark3x blue sheet + 1x Green Tray2x1234-9999_SS
John DOE5222369Park Plaza7xABC1235-1994
John DOE5478116Orange floor shop3xC111_2_4-SS
John DOE5544899The top stop1x Green Tray + 2x White Tree1xABC4004-1234
John DOE1234455The big tree hotel, abc london6xABC1155-9999
John DOE1234455The big tree hotel, abc london2xABC1155-9999


Any Help will be welcomed. Thank you
 
Upvote 0
Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Combining cells with the same data but keeping some data separate
There is no need to repeat the link(s) provided above but if you have posted the question at other places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0
Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Combining cells with the same data but keeping some data separate
There is no need to repeat the link(s) provided above but if you have posted the question at other places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
apologies ! This is my bad, i will read up on the rules fully now before posting again !
 
Upvote 0

Forum statistics

Threads
1,223,961
Messages
6,175,652
Members
452,664
Latest member
alpserbetli

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