CONCATENATE

Bedford

Active Member
Joined
Feb 3, 2015
Messages
316
Office Version
  1. 365
Platform
  1. MacOS
Trying to combine contents of 2 cells, A1 contains; Monarch Glide, Recess Mount, W=500mm (19 11/16"), H=900mm (35 7/16"), B1 contains; Single Slide, I'm trying to move contents of B1 to a specific location, resembling; Monarch Glide, Recess Mount, Single Slide, W=500mm (19 11/16"), H=900mm (35 7/16").
Anyone have any thoughts?
Thank you.
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Is the second comma always the indicator?

=LEFT(A1,FIND(CHAR(160),SUBSTITUTE(A1,",",CHAR(160),2))+1)&B1&MID(A1,FIND(CHAR(160),SUBSTITUTE(A1,",",CHAR(160),2)),LEN(A1))
 
Upvote 0
Hi Bedford,

I hope there will be more rows which would be helpful to check the pattern.

Meanwhile check below if it works.

=CONCATENATE(MID(A1,1,FIND(",",A1,FIND(",",A1)+1)),B1,", ",MID(A1,FIND("W=",A1),99))

Saurabh
 
Upvote 0
=LEFT(A1,FIND(CHAR(160),SUBSTITUTE(A1,",",CHAR(160),2))+1)&B1&MID(A1,FIND(CHAR(160),SUBSTITUTE(A1,",",CHAR(160),2)),LEN(A1))
The second comma is not an indicator for this exercise, so I removed it and the result was great. Thanks loads.
 
Upvote 0
=CONCATENATE(MID(A1,1,FIND(",",A1,FIND(",",A1)+1)),B1,", ",MID(A1,FIND("W=",A1),99))
Hi Saurabh, this one worked as well, only there was no space before the insertion of B1, any thoughts on a workaround for that?
Thank you,
 
Upvote 0
Hi,

Small change to add space:

Excel Formula:
=CONCATENATE(MID(A1,1,FIND(",",A1,FIND(",",A1)+1)),CHAR(32),B1,", ",MID(A1,FIND("W=",A1),99))

Saurabh
 
Upvote 0
Solution

Forum statistics

Threads
1,215,054
Messages
6,122,893
Members
449,097
Latest member
dbomb1414

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