Inserting text into a sentence from another cell

sobrien

Board Regular
Joined
Feb 28, 2006
Messages
179
I am trying to insert text from another cell into a sentence. For example I would like text from B1 to be inserted in text in A1 as follows:

Your current Deployer is B1

Thanks
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Hello,

Try:

<TABLE style="WIDTH: 203pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=270><COLGROUP><COL style="WIDTH: 203pt; mso-width-source: userset; mso-width-alt: 4937" width=270><TBODY><TR style="HEIGHT: 15.75pt" height=21><TD style="BORDER-BOTTOM: windowtext 1pt solid; BORDER-LEFT: windowtext 1pt solid; BACKGROUND-COLOR: #c2d69a; WIDTH: 203pt; HEIGHT: 15.75pt; BORDER-TOP: windowtext 1pt solid; BORDER-RIGHT: windowtext 1pt solid" class=xl65 height=21 width=270>="Your current Deployer is " &B1

</TD></TR></TBODY></TABLE>
 
Upvote 0
Hi:

Try this:

="Your current Deployer is "&B1
 
Upvote 0
I have a follow up to this. I am trying to insert a time into my sentence, however the time is entered as a data value in the other cell (i.e. 5:00pm = .7)

Here is what I am using

="Work " &D2

and it returns (Work .7)

Where D2 = the time value of 17:00

Is there a way I can keep the formatting from the source cell?

thanks!
 
Upvote 0
I played around in help and found my own answer

="Work "&TEXT(D2,"[$-409]h:mm AM/PM")

That now returns

Work 5:00PM

Thanks anyway, I'm glad I found this forum, there is a lot of great info here, I'm sure I'll be browsing through it.
 
Upvote 0

Forum statistics

Threads
1,224,550
Messages
6,179,459
Members
452,915
Latest member
hannnahheileen

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