Combine 1 cell with multiple cells

Phlip183

New Member
Joined
Jun 9, 2011
Messages
10
I wanted to know how to write a script so it would Concatenate a value in 1 cell that is fixed, and multiple submissions in another column such as:

A1: Sample

B1: 1
B2: 2
B3: 3

C1: Sample 1
C2: Sample 2
C3: Sample 3

Thanks.
 
Thank you very much for all your help...
The data sheet fits in to the script by providing a location for the New submission entries to go in. So i have a find command on a key word that is in the data sheet, have it insert a row(s) above the key word in the data sheet and Then i have a count function that counts how many entries there are in the New Submission sheet so it can insert that many of rows in the data sheet.

By the way Rick Rothstein, It performs and error on this line:

[Submit.Range("B1").Value = "=""" & Info.Range("A1").Value & " ""&" & Mid(Submit.Range("B1").Formula, 2)]
 
Last edited:
Upvote 0

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
By the way Rick Rothstein, It performs and error on this line:

[Submit.Range("B1").Value = "=""" & Info.Range("A1").Value & " ""&" & Mid(Submit.Range("B1").Formula, 2)]
Just so you know, the code worked without error using the made-up data I worked with. So, can you tell me the error you get and also can you post the formula you have in B1 on your New Submission sheet (so I can test with it directly)?
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,719
Members
452,939
Latest member
WCrawford

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