Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Ed
 
Posts: n/a
Default Conditional Formatting

Hello, I have in Column A, 3 possibilities which have "General" format,
either (#), or (#.#) or (#.#.#). I would like to have this as Conditional
Formatting:

1 - (Red, Bold)
1.1 - (Blue, Bold)
1.2 - (Blue, Bold)
1.1.1 - (Black, Normal)
2 - (Red, Bold)
2.1 - (Blue, Bold)
and so on...

How can I manage to put that into the conditional formatting? I tried using
wildcard characters without success...

thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
Elkar
 
Posts: n/a
Default Conditional Formatting

Try this:

For first condition (bold red), use custom formula:

=LEN($A1)=LEN(SUBSTITUTE($A1,".",""))

For second condition (bold blue), use custom formula:

=LEN($A1)=LEN(SUBSTITUTE($A1,".",""))+1

Third condition could probably be left out as default, but if needed use:

=LEN($A1)=LEN(SUBSTITUTE($A1,".",""))+2

HTH,
Elkar


"Ed" wrote:

Hello, I have in Column A, 3 possibilities which have "General" format,
either (#), or (#.#) or (#.#.#). I would like to have this as Conditional
Formatting:

1 - (Red, Bold)
1.1 - (Blue, Bold)
1.2 - (Blue, Bold)
1.1.1 - (Black, Normal)
2 - (Red, Bold)
2.1 - (Blue, Bold)
and so on...

How can I manage to put that into the conditional formatting? I tried using
wildcard characters without success...

thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
RaymundCG
 
Posts: n/a
Default Conditional Formatting

Hi Ed!

Will this help?

Condition 1: Formula is... =ISERR(SEARCH(".",cell_address))=TRUE apply
RED+BOLD
Condition 2: Formula is... =SEARCH(".",cell_address)=2 apply BLUE+BOLD
Condition 3: Formula is... =SEARCH("*.*.*".CELL_address)=1 apply BLACK+NORMAL

--
Thanks and kind regards


"Ed" wrote:

Hello, I have in Column A, 3 possibilities which have "General" format,
either (#), or (#.#) or (#.#.#). I would like to have this as Conditional
Formatting:

1 - (Red, Bold)
1.1 - (Blue, Bold)
1.2 - (Blue, Bold)
1.1.1 - (Black, Normal)
2 - (Red, Bold)
2.1 - (Blue, Bold)
and so on...

How can I manage to put that into the conditional formatting? I tried using
wildcard characters without success...

thanks

  #4   Report Post  
Posted to microsoft.public.excel.misc
RaymundCG
 
Posts: n/a
Default Conditional Formatting

re-checked my conditional formulas, they should be actually as follows...

Condition 2: Formula is... =ISERR(SEARCH("*.*.*",cell_address))=TRUE

Condition 3: Formula is... =ISERR(SEARCH("*.*.*",cell_address))=FALSE
--
Thanks and kind regards


"RaymundCG" wrote:

Hi Ed!

Will this help?

Condition 1: Formula is... =ISERR(SEARCH(".",cell_address))=TRUE apply
RED+BOLD
Condition 2: Formula is... =SEARCH(".",cell_address)=2 apply BLUE+BOLD
Condition 3: Formula is... =SEARCH("*.*.*".CELL_address)=1 apply BLACK+NORMAL

--
Thanks and kind regards


"Ed" wrote:

Hello, I have in Column A, 3 possibilities which have "General" format,
either (#), or (#.#) or (#.#.#). I would like to have this as Conditional
Formatting:

1 - (Red, Bold)
1.1 - (Blue, Bold)
1.2 - (Blue, Bold)
1.1.1 - (Black, Normal)
2 - (Red, Bold)
2.1 - (Blue, Bold)
and so on...

How can I manage to put that into the conditional formatting? I tried using
wildcard characters without success...

thanks

  #5   Report Post  
Posted to microsoft.public.excel.misc
Ed
 
Posts: n/a
Default Conditional Formatting

Thanks Elkar and Raymund!
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
Keeping conditional formatting when sorting Andrea A Excel Discussion (Misc queries) 0 April 4th 06 03:00 PM
Conditional Formatting when inserting a row zahoulik Excel Worksheet Functions 2 January 7th 06 03:01 PM
Conditional Formatting Error ddate Excel Worksheet Functions 0 May 5th 05 09:00 PM
difficulty with conditional formatting Deb Excel Discussion (Misc queries) 0 March 23rd 05 06:13 PM
Conditional formatting not available in Excel BAB Excel Discussion (Misc queries) 2 January 1st 05 03:33 PM


All times are GMT +1. The time now is 04:59 PM.

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"