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

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

mole999

Well-known Member
Joined
Oct 23, 2004
Messages
10,524
Office Version
  1. 2019
  2. 2016
  3. 2013
Platform
  1. Windows
if your not doing it often, have you considered concatenate, then copy and paste special to just leave the values ?
 
Upvote 0

texasalynn

Well-known Member
Joined
May 19, 2002
Messages
8,458
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

bboysen

New Member
Joined
Aug 6, 2010
Messages
44
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,191,693
Messages
5,988,139
Members
440,129
Latest member
bianca88

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
Top