Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text and values in one cell

Status
Not open for further replies.

leniw

Technical User
Feb 10, 2006
5
GR
Hello All!!!

I have a spreadsheet which contains information from other, separate, workbooks (with links).

When I use the following formula

="Afternoon Visits: "&TEXT('[salesmen-calls.xls]MAR'!$G$30;"0%")

I take this result:
Afternoon Visits: 28%

Is there a way to have the value written in bold?

Afternoon Visits: 28%

OR in color?

Afternoon Visits: 28%

Thanks in advance for your help!

Lena

 



Hi,

Not in an expression, AFAIK.

This could be done with a macro. If you want to pursue a code approch, please post in Forum707. Turn on your macro recorder and record copying the cell with the expression, Edit/Paste Special - VALUES, and formatting the string as desired. Post with your recorded code.

Skip,
[sub]
[glasses] [red][/red]
[tongue][/sub]
 
The basic issue is that you cannot have multiple fonts within a cell that has a formula. You can set the font colours in code but even then, as far as I know, you have to get rid fo the formula 1st.

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
Unless you really need it all in the same cell, I'd suggest just using two different cells. One with the text, the other with the calculated value formatted as you want.

Much easier, especially if you aren't familiar with macros.

[tt]_____
[blue]-John[/blue][/tt]
[tab][red]The plural of anecdote is not data[/red]

Help us help you. Please read FAQ181-2886 before posting.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top