ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Can I create multiple formats of text in a formula? (https://www.excelbanter.com/excel-worksheet-functions/158657-can-i-create-multiple-formats-text-formula.html)

bvandame7766

Can I create multiple formats of text in a formula?
 
I'm trying to set up an "if" statement that says if a cell equals "no" to
enter a question in regular text and then display the possible answers in
bolded text right afterwards. I think I remember seeing it somewhere, but I
can't remember how to do it or if I'm thinking of another program.

FSt1

Can I create multiple formats of text in a formula?
 
hi,
if i understand you correctly, no.
you can have multiple formats in a cell but not with a formula. multiple
formats require exact start and stop points within the cell and a formula may
return varing lengths of numbers/text depending. also vb reads the contents
of the cell to decide multiple formats and what is in the cell is a formula
which may not have the same number of characters in the results that the
formula returns.
so i would guess that your are thinking of another program. wild guess.

sorry.
FSt1

"bvandame7766" wrote:

I'm trying to set up an "if" statement that says if a cell equals "no" to
enter a question in regular text and then display the possible answers in
bolded text right afterwards. I think I remember seeing it somewhere, but I
can't remember how to do it or if I'm thinking of another program.


Ron Rosenfeld

Can I create multiple formats of text in a formula?
 
On Mon, 17 Sep 2007 19:14:00 -0700, bvandame7766
wrote:

I'm trying to set up an "if" statement that says if a cell equals "no" to
enter a question in regular text and then display the possible answers in
bolded text right afterwards. I think I remember seeing it somewhere, but I
can't remember how to do it or if I'm thinking of another program.


You can't do that with a worksheet formula. You would need to use a Visual
Basic routine to generate your text string, and differentially format the
contents of the cell.

You could Bold the entire contents of a cell or cells using Conditional
Formatting. So you could (if I understand you correctly) have A1 possibly =
"No". Then you could have your question in B1. C1 would contain the possible
answers and would be "conditionally formatted" to be Bold if A1 = "No".
--ron


All times are GMT +1. The time now is 02:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com