Format colorful for a cell (that has formula)

  • Thread starter Thread starter OverAC
  • Start date Start date
O

OverAC

Dear All,

Formating colorful for a cell that has formula is posible?
For example: = "I'm " & 1 + 1 & "years old"
And the desired result is: "I'm 2 years old"

So, these is any way for me to do this. Please help. Thanks so much.

OverA
 
You could write a UDF to test if a cell has a formula

Function IsFormula(rng As Range)
IsFormula = rng.HasFormula
End Function


and then use this UDF in the CF, like


=IsFormula(A1)


--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 
Of course i can check it but. even when I know it is an formula, I wan
to format it (1 cell only) with more than 1 color
 
Hi,
I do not understand why you need more than one color in one cell - this is
not possible - cell has only one backgroung color. But each letter in text in
cell can have own color.
 
Yes, you're right.
I dont want to format 2 color for the backgroup of that cell. I just
want to format letters of it. Normally, with a cell we can format many
color for its letter (as most 1 color for 1 letter) but I cant do this
if that cell doesnt contain 1 text but a formula. So my question is "is
these anyway to do this?".
Please discuss.
OverAC
 
Formulas don't support this type of character by character formatting.
 
Thanks you all.
I just want to have some thing strange with this.
Thanks any way.
OverAC
 

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