Inserting a formula into a text string

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way to insert a formula or reference a cell on another worksheet
in the middle of a text string.

For example if I wanted to say: XYZ company will pay $___________ of your
shipping costs... Where the blank was a reference from another sheet.
 
="XYZ company will pay $"&Sheet6!A1&" of your shipping costs"
 
Is there a way to insert a formula or reference a cell on another
worksheet in the middle of a text string.

For example if I wanted to say: XYZ company will pay $___________ of
your shipping costs... Where the blank was a reference from another
sheet.

One way is to use a formula like this:
="XYZ company will pay "&TEXT(Sheet2!A1,"$0.00")&" of your shipping costs"

The ampersand does concatenation of strings.
 
Another way is to use

="XYZ company will pay "&DOLLAR(Sheet2!A1)&" of your shipping costs"
 
I have tried all of your suggestions--Thanks, by the way--but each of them
simply prints the verbiage of the function, not the result.

What could I be doing wrong?
 
Maybe your cell containing the formula is formatted as Text. Use Format
| Cells | Number (tab) and choose General. Then double-click the cell
as if to edit it in order to activate the change in format.

Hope this helps.

Pete
 
Thanks for your suggestion Pete, unfortunately, that didn't work either. The
cells were already set to General and I set them to Text, then re-set to
General and recalculated the sheet, but there was no change. The forumla
still prints and views as text.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top