Gord:
Your previous post was very helpful! Is it possible to format part of a cell if the cell contains both values and formulas?
I'd like to format only the letter J in the following:
= ("J ") &TEXT(B18+TIME(0,6,0),"h:mm")
Thanks,
Jonathan
Gord Dibben wrote:
Not unless you were to change the cell to a value.
05-May-08
Not unless you were to change the cell to a value
You cannot format parts of formula results
Gor
wrote:
Previous Posts In This Thread:
conditional formatting only applies to part of cell text
I only want the condtional formatting to apply to the part of the text that
equals "PCC". For example, the value of the cell may be, "Jane Smith - PCC"
and I only want PCC to be bold and green and Jane Smith to remain the same.
That would require VBA coding.
That would require VBA coding. Theres no way to do that with the norma
conditional formatting that excel gives you
:
RE: conditional formatting only applies to part of cell text
Do you know what the VBA code would be
:
to be honest I've never done this before so I really do not know.
to be honest I've never done this before so I really do not know. I imagine
you would have to loop through the range of cells everytime, search the cell
for the given word you want using StrComp or something, then some how select
the word within the sentence using some kind of find and range formulas and
then change the color to whatever you want
It's possible but I'm not the man for the answe
:
Sub Bold_String()Dim rng As RangeDim Cell As RangeDim start_str As Integer
Sub Bold_String(
Dim rng As Rang
Dim Cell As Rang
Dim start_str As Intege
Set rng = Selectio
For Each Cell In rn
start_str = InStr(Cell.Value, "PCC"
If start_str The
With Cell.Characters(start_str, 3).Fon
.Bold = Tru
.ColorIndex = 1
End Wit
End I
Nex
End Su
Gord Dibben MS Excel MV
Re: conditional formatting only applies to part of cell text
Wow, I just tested that out... that is pretty sweet
:
Thanks, I can get it to work if PCC is actually typed in the cell, but I'm
Thanks, I can get it to work if PCC is actually typed in the cell, but I a
using a Vlookup to return the value. Will it work when doing that
:
Not unless you were to change the cell to a value.
Not unless you were to change the cell to a value
You cannot format parts of formula results
Gor
wrote:
Submitted via EggHeadCafe - Software Developer Portal of Choice
ASP.NET MVC RC2
http://www.eggheadcafe.com/tutorials/aspnet/1a32540c-062b-49b8-8233-31135243bfdb/aspnet-mvc-rc2.aspx