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



24V - 3 PzS 3453451212 3MDL 115
24V - 3 PzS 3453451212 3MDL 115
24V - 3 PzS 3453451212 3MDL 115
24V - 3 PzS 3453451212 3MDL 115
24V - 3 PzS 3453451212 3MDL 115
24V - 3 PzS 3453451212 3MDL 115
24V - 3 PzS 3453451212 3MDL 115
24V - 3 PzS 3453451212 3MDL 115
24V - 3 PzS 3753751112 3MDL 125
24V - 3 PzS 3753751112 3MDL 125
24V - 3 PzS 3753751112 3MDL 125
24V - 3 PzS 3753751112 3MDL 125
24V - 3 PzS 3753751112 3MDL 125
24V - 3 PzS 3753751112 3MDL 125
24V - 3 PzS 3753751112 3MDL 125
24V - 3 PzS 3753751112 3MDL 125

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

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