Concatenate 2 cells and 2 strings

Sal1

New Member
Joined
Apr 15, 2009
Messages
34
I would like to concatenate Sheet2/A3, Sentence1, Sheet2/D12, and Sentence2 into one sentence with a space in between each string and then paste the new sentence into Sheet3/C4. Here is what I have but I need a lot of help. Can you lend a hand?

Code:
[SIZE=3][FONT=Times New Roman]Dim StringA As String, StringB As String,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]StringA = "Sentence1"<o:p></o:p>[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]StringB = "Sentence2"<o:p></o:p>[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]A3 &StringA & D12 & StringB [/FONT][/SIZE]
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Hi,

Try in cell Sheet3/C4 something like

=Sheet2/A3 &" "& "Sentence1" &" "& Sheet2/D12 &" "& "Sentence2"

George

I would like to concatenate Sheet2/A3, Sentence1, Sheet2/D12, and Sentence2 into one sentence with a space in between each string and then paste the new sentence into Sheet3/C4. Here is what I have but I need a lot of help. Can you lend a hand?

Code:
[SIZE=3][FONT=Times New Roman]Dim StringA As String, StringB As String,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]StringA = "Sentence1"<o:p></o:p>[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]StringB = "Sentence2"<o:p></o:p>[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]A3 &StringA & D12 & StringB [/FONT][/SIZE]
 
Upvote 0
Thank you GK039. I changed GK039 =Sheet2/A3 to =Sheet2!A3 and your formula did the trick. Thank you.
 
Upvote 0
SOLVED: Concatenate 2 cells and 2 strings

Thanks HOTPEPPER. Just what I needed. I appreciate your help.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,834
Members
452,947
Latest member
Gerry_F

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