Merge Cells

bboysen

New Member
Joined
Aug 6, 2010
Messages
44
Ok so i know just enough VBA to mess things up! :LOL:

This is what i have got.

I have a code in R2C7 and its code is XFL (crossing FenceLine). Then i have all the info for that crossing fenceline in other cells in the same row just in different columns. They are in the same place each time. What i want to do is have a vba code that will take the info from the other cells and merge in to one cell in the same row.

This is what the data looks like all in different cells:
Code Strands Height Type Condition
XFL 4 4 BARBED GOOD

This is how I want it to look like:
Comments
4' / 4 STRANDS / BARBED / GOOD


So what i was thinking the code would need would be an if statement and maybe and offset to each of the cells that would hold the data.

I have about 200 Codes that I would want this to do it to. I was thinking I would have to have an if statement for each code.

Like I said before I know enough VBA to mess things up. If I could get help to create the first one i think i might be able to take it from there.

Thanks
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
if your not doing it often, have you considered concatenate, then copy and paste special to just leave the values ?
 
Upvote 0
is this what you need?
Excel Workbook
ABCDEF
1CodeStrandsHeightTypeConditionComments
2XFL44BARBEDGOOD4' / 4 Strands / BARBED / GOOD
Sheet1
Excel 2003
Cell Formulas
RangeFormula
F2=+B2&"' / "&C2&" "&$B$1&" / "&D2&" / "&E2
 
Upvote 0
See I do this everyday on about 5-8 different data sets. I would not mind doing the concatenate part is just a pain to type the formula each and every time. Is there a way to put that in to vba with the copy and past special? Each time i try to do that i get stupid errors.
 
Upvote 0

Forum statistics

Threads
1,214,650
Messages
6,120,734
Members
448,987
Latest member
marion_davis

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