Select a dinamic range and merge cells

Midac Fra

New Member
Joined
Jul 8, 2019
Messages
1
Hi All,

i am not very good with macro and although i understand a bit i am not good at amending them and fit my my requirement.
I have read few thread on looping and if statement but i am no tbeen able to create a macro that will serve my purpose.

Here I am asking for your help
In my table I have several lines that repeats themselves in column A , B ,C because for each line I have different attributes in Column J,K,L
I have been requested to group and Merge the equals line leaving only the attributes in each row.

I have over 1000 lines and by selecting them and Merge &Centre , will take me a full week.
Could you please help and write a loop Macro that will solve my problem ?

This should be like ...if row x1 and x2 and x3 are all the same than Merge and centre.
if row x4 and x5 are the same, than merge, and the same for x6 , x7 and so on.

I am happy to run for each column , ( I only have 27 columns )


many thanks in advance for your help

Kindest Regards
Francesco



[TABLE="width: 586"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD]24V - 3 PzS 345[/TD]
[TD]345[/TD]
[TD]12[/TD]
[TD]12 3MDL 115[/TD]
[/TR]
[TR]
[TD]24V - 3 PzS 345[/TD]
[TD]345[/TD]
[TD]12[/TD]
[TD]12 3MDL 115[/TD]
[/TR]
[TR]
[TD]24V - 3 PzS 345[/TD]
[TD]345[/TD]
[TD]12[/TD]
[TD]12 3MDL 115[/TD]
[/TR]
[TR]
[TD]24V - 3 PzS 345[/TD]
[TD]345[/TD]
[TD]12[/TD]
[TD]12 3MDL 115[/TD]
[/TR]
[TR]
[TD]24V - 3 PzS 345[/TD]
[TD]345[/TD]
[TD]12[/TD]
[TD]12 3MDL 115[/TD]
[/TR]
[TR]
[TD]24V - 3 PzS 345[/TD]
[TD]345[/TD]
[TD]12[/TD]
[TD]12 3MDL 115[/TD]
[/TR]
[TR]
[TD]24V - 3 PzS 345[/TD]
[TD]345[/TD]
[TD]12[/TD]
[TD]12 3MDL 115[/TD]
[/TR]
[TR]
[TD]24V - 3 PzS 345[/TD]
[TD]345[/TD]
[TD]12[/TD]
[TD]12 3MDL 115[/TD]
[/TR]
[TR]
[TD]24V - 3 PzS 375[/TD]
[TD]375[/TD]
[TD]11[/TD]
[TD]12 3MDL 125 [/TD]
[/TR]
[TR]
[TD]24V - 3 PzS 375[/TD]
[TD]375[/TD]
[TD]11[/TD]
[TD]12 3MDL 125 [/TD]
[/TR]
[TR]
[TD]24V - 3 PzS 375[/TD]
[TD]375[/TD]
[TD]11[/TD]
[TD]12 3MDL 125 [/TD]
[/TR]
[TR]
[TD]24V - 3 PzS 375[/TD]
[TD]375[/TD]
[TD]11[/TD]
[TD]12 3MDL 125 [/TD]
[/TR]
[TR]
[TD]24V - 3 PzS 375[/TD]
[TD]375[/TD]
[TD]11[/TD]
[TD]12 3MDL 125 [/TD]
[/TR]
[TR]
[TD]24V - 3 PzS 375[/TD]
[TD]375[/TD]
[TD]11[/TD]
[TD]12 3MDL 125 [/TD]
[/TR]
[TR]
[TD]24V - 3 PzS 375[/TD]
[TD]375[/TD]
[TD]11[/TD]
[TD]12 3MDL 125 [/TD]
[/TR]
[TR]
[TD]24V - 3 PzS 375[/TD]
[TD]375[/TD]
[TD]11[/TD]
[TD]12 3MDL 125
[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

Forum statistics

Threads
1,223,630
Messages
6,173,453
Members
452,514
Latest member
cjkelly15

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