Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default Conditional Formatting: different fonts colors for the same text

Hello! Friends:

With Conditional Formatting, is it possible to have different font colors
(say 2 colors) in the SAME cell?

Note: I am using LEFT, and MID functions to control the start of the 2
colors of the text value in a single cell.

Appreciate any advice.


Lee CC
----------------------------------------------------------
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default Conditional Formatting: different fonts colors for the same text

hi
multiple formats in a cell is dependent on hard TEXT only. it don't apply to
formulas or number unless the number are foramted as text.
reason...multiple formats depend on specific, exact start and stop points
and formulas can return more(or less) data than the formula itself.
personally, i have never tried it with CF but when you mentioned the Left
and Mid function.....probably not.
maybe someonewill prove me wrong and i will learn something.

regards
FSt1

"LeeCC" wrote:

Hello! Friends:

With Conditional Formatting, is it possible to have different font colors
(say 2 colors) in the SAME cell?

Note: I am using LEFT, and MID functions to control the start of the 2
colors of the text value in a single cell.

Appreciate any advice.


Lee CC
----------------------------------------------------------

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default Conditional Formatting: different fonts colors for the same te

Thanks for the reply.

If LEFT and MID functions are not good ways, perhaps you could suggest some
other methods.

For example, "APPLE", I want "AP" to be in blue, and "PLE" to be in red.


Lee CC
--------------------------------------------------------------

"FSt1" wrote:

hi
multiple formats in a cell is dependent on hard TEXT only. it don't apply to
formulas or number unless the number are foramted as text.
reason...multiple formats depend on specific, exact start and stop points
and formulas can return more(or less) data than the formula itself.
personally, i have never tried it with CF but when you mentioned the Left
and Mid function.....probably not.
maybe someonewill prove me wrong and i will learn something.

regards
FSt1

"LeeCC" wrote:

Hello! Friends:

With Conditional Formatting, is it possible to have different font colors
(say 2 colors) in the SAME cell?

Note: I am using LEFT, and MID functions to control the start of the 2
colors of the text value in a single cell.

Appreciate any advice.


Lee CC
----------------------------------------------------------

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Conditional Formatting: different fonts colors for the same te

I think you will have to go with VBA to get your multiple fonts in a cell.

Here is some sample code.

Perhaps you can adjust to suit.

Sub CellFont()
With ActiveCell.Characters(Start:=1, Length:=5).Font
.ColorIndex = 3
.Bold = True
.Underline = True
.Size = 14
End With
With ActiveCell.Characters(Start:=6, Length:=3).Font
.Superscript = True
.ColorIndex = 5
End With
With ActiveCell.Characters(Start:=10, Length:=4).Font
.Bold = True
.Size = 18
.ColorIndex = 6
End With
End Sub


Gord Dibben MS Excel MVP

On Sat, 20 Dec 2008 19:06:01 -0800, LeeCC
wrote:

Thanks for the reply.

If LEFT and MID functions are not good ways, perhaps you could suggest some
other methods.

For example, "APPLE", I want "AP" to be in blue, and "PLE" to be in red.


Lee CC
--------------------------------------------------------------

"FSt1" wrote:

hi
multiple formats in a cell is dependent on hard TEXT only. it don't apply to
formulas or number unless the number are foramted as text.
reason...multiple formats depend on specific, exact start and stop points
and formulas can return more(or less) data than the formula itself.
personally, i have never tried it with CF but when you mentioned the Left
and Mid function.....probably not.
maybe someonewill prove me wrong and i will learn something.

regards
FSt1

"LeeCC" wrote:

Hello! Friends:

With Conditional Formatting, is it possible to have different font colors
(say 2 colors) in the SAME cell?

Note: I am using LEFT, and MID functions to control the start of the 2
colors of the text value in a single cell.

Appreciate any advice.


Lee CC
----------------------------------------------------------


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default Conditional Formatting: different fonts colors for the same te

Thanks, Mr. Dibben

Got it. I will work on your sample codes.


LeeCC
-------------------------------------------------------------------------

"Gord Dibben" wrote:

I think you will have to go with VBA to get your multiple fonts in a cell.

Here is some sample code.

Perhaps you can adjust to suit.

Sub CellFont()
With ActiveCell.Characters(Start:=1, Length:=5).Font
.ColorIndex = 3
.Bold = True
.Underline = True
.Size = 14
End With
With ActiveCell.Characters(Start:=6, Length:=3).Font
.Superscript = True
.ColorIndex = 5
End With
With ActiveCell.Characters(Start:=10, Length:=4).Font
.Bold = True
.Size = 18
.ColorIndex = 6
End With
End Sub


Gord Dibben MS Excel MVP

On Sat, 20 Dec 2008 19:06:01 -0800, LeeCC
wrote:

Thanks for the reply.

If LEFT and MID functions are not good ways, perhaps you could suggest some
other methods.

For example, "APPLE", I want "AP" to be in blue, and "PLE" to be in red.


Lee CC
--------------------------------------------------------------

"FSt1" wrote:

hi
multiple formats in a cell is dependent on hard TEXT only. it don't apply to
formulas or number unless the number are foramted as text.
reason...multiple formats depend on specific, exact start and stop points
and formulas can return more(or less) data than the formula itself.
personally, i have never tried it with CF but when you mentioned the Left
and Mid function.....probably not.
maybe someonewill prove me wrong and i will learn something.

regards
FSt1

"LeeCC" wrote:

Hello! Friends:

With Conditional Formatting, is it possible to have different font colors
(say 2 colors) in the SAME cell?

Note: I am using LEFT, and MID functions to control the start of the 2
colors of the text value in a single cell.

Appreciate any advice.


Lee CC
----------------------------------------------------------



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Formatting with fonts Polly Excel Worksheet Functions 2 June 25th 08 09:09 PM
Worksheet formatting (fill colors & text colors) disappeared sweettooth Excel Discussion (Misc queries) 2 June 24th 08 01:16 AM
Conditional Formatting - Not all colors work? PSS New Users to Excel 1 April 18th 08 11:49 PM
Conditional Formatting with Colours / Colors [email protected] Excel Worksheet Functions 8 November 18th 06 08:29 PM
Conditional Formatting in 6 colors Sterling Excel Discussion (Misc queries) 1 October 6th 06 11:22 PM


All times are GMT +1. The time now is 08:11 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"