Code for Automation of concatenation

alanersk

New Member
Joined
Jul 4, 2012
Messages
1
Excel 2003
ABCDEFGHIJ
3CBS LevelIDRefTitleUnit
4123456
5
67015CLASS D - DEMOLITION AND SITE CLEARANCE
7701510GENERAL SITE CLEARANCE ON GENERALLY LEVEL GROUND
87015101010Clear Vegetation
97015101010110350D100General Clearancem2
107015101010115351D100.1Clear Dense Vegetationm2
117015101510Remove Complete Trees
127015101510110352D210.1Girth 500mm - 1 mnr
137015101510115353D220.1Girth 1 - 2 mnr
147015101510120354D230.1Girth 2 - 3 mnr
157015101510125355D240.1Girth 3 - 5 mnr
167015102010Remove Tree Stumps
177015102010110356D310.1Diameter 150 - 500mmnr
187015102010115357D320.1Diameter 500mm - 1 mnr

<tbody>
</tbody>
Class D
Hi,

In the above example I need some code to automate a concatenation (I think) based on the reference in Column H.

For example:- I need to be able to enter "D100.1" in a cell and in the cell next to it the text in I6:I10 is concatenated automatically (ie it says "CLASS D - DEMOLITION AND SITE CLEARANCE; GENERAL SITE CLEARANCE ON GENERALLY LEVEL GROUND; Clear Vegetation; Clear Dense Vegetation" in the next cell) . It works one entry at a time when I do it manually but I have over 10,000 lines to work on and I want it completed before I retire!

Has anyone got any ideas as my VBA skills are severely lacking but it does occur to me that it must be possible.

thanks in advance

Al :confused:
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Forum statistics

Threads
1,203,606
Messages
6,056,279
Members
444,854
Latest member
goethe168

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