Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
John Knoke
 
Posts: n/a
Default coditional formatting

How can I do a coditional formatting of €œn€ cells in column where the cell
number is divided by 100,000 and if the decimal number is between X.1 and X.4
format the cell number in €œred€. If the decimal number is between X.0 and X.5
format the number in €œblack€

Divide each cell by 100,000

A1 117,176 1.2 Red A1
A2 218,205 2.2 Red A2
A3 288,242 2.9 Black A3
A4 375,224 3.8 Black A4
A5 454,227 4.5 Black A5
A6 535,557 5.4 Red A6
A7 612,154 6.1 Red A7
A8 694,623 6.9 Black A8

Thanks for any help


  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

If the default font color is black then you only need one condition:

Select the range of cells.
FormatCondtional Formatting
Condition 1
Formula is:

=AND(ROUND(A1/100000,1)-INT(ROUND(A1/100000,1))0.09,ROUND(A1/100000,1)-INT(ROUND(A1/100000,1))<=0.4)

Set font color to RED

If the default font color is something other than black, after setting
condtion 1:

Add
Condition 2
Formula is:

=AND(ROUND(A1/100000,1)-INT(ROUND(A1/100000,1))=0,ROUND(A1/100000,1)-INT(ROUND(A1/100000,1))<=0.5)

Set font color to BLACK

Biff

"John Knoke" wrote in message
...
How can I do a coditional formatting of "n" cells in column where the
cell
number is divided by 100,000 and if the decimal number is between X.1 and
X.4
format the cell number in "red". If the decimal number is between X.0 and
X.5
format the number in "black"

Divide each cell by 100,000

A1 117,176 1.2 Red A1
A2 218,205 2.2 Red A2
A3 288,242 2.9 Black A3
A4 375,224 3.8 Black A4
A5 454,227 4.5 Black A5
A6 535,557 5.4 Red A6
A7 612,154 6.1 Red A7
A8 694,623 6.9 Black A8

Thanks for any help




  #3   Report Post  
Ragdyer
 
Posts: n/a
Default

Click on "Formula Is" and try this:

=MOD(ROUND(A1/100000,1),1)<=0.4

Set format for RED.

Black will be the default for the other values.
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"John Knoke" wrote in message
...
How can I do a coditional formatting of €œn€ cells in column where the

cell
number is divided by 100,000 and if the decimal number is between X.1 and

X.4
format the cell number in €œred€. If the decimal number is between X.0 and

X.5
format the number in €œblack€

Divide each cell by 100,000

A1 117,176 1.2 Red A1
A2 218,205 2.2 Red A2
A3 288,242 2.9 Black A3
A4 375,224 3.8 Black A4
A5 454,227 4.5 Black A5
A6 535,557 5.4 Red A6
A7 612,154 6.1 Red A7
A8 694,623 6.9 Black A8

Thanks for any help



  #4   Report Post  
Ragdyer
 
Posts: n/a
Default

Forgot about the zero also returning false, so try this:

=AND(MOD(ROUND(A1/100000,1),1)0,MOD(ROUND(A1/100000,1),1)<=0.4)
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"Ragdyer" wrote in message
...
Click on "Formula Is" and try this:

=MOD(ROUND(A1/100000,1),1)<=0.4

Set format for RED.

Black will be the default for the other values.
--
HTH,

RD

--------------------------------------------------------------------------

-
Please keep all correspondence within the NewsGroup, so all may benefit !
--------------------------------------------------------------------------

-

"John Knoke" wrote in message
...
How can I do a coditional formatting of €œn€ cells in column where the

cell
number is divided by 100,000 and if the decimal number is between X.1

and
X.4
format the cell number in €œred€. If the decimal number is between X.0

and
X.5
format the number in €œblack€

Divide each cell by 100,000

A1 117,176 1.2 Red A1
A2 218,205 2.2 Red A2
A3 288,242 2.9 Black A3
A4 375,224 3.8 Black A4
A5 454,227 4.5 Black A5
A6 535,557 5.4 Red A6
A7 612,154 6.1 Red A7
A8 694,623 6.9 Black A8

Thanks for any help




  #5   Report Post  
John Knoke
 
Posts: n/a
Default

Thanks Biff, works great!

"Biff" wrote:

Hi!

If the default font color is black then you only need one condition:

Select the range of cells.
FormatCondtional Formatting
Condition 1
Formula is:

=AND(ROUND(A1/100000,1)-INT(ROUND(A1/100000,1))0.09,ROUND(A1/100000,1)-INT(ROUND(A1/100000,1))<=0.4)

Set font color to RED

If the default font color is something other than black, after setting
condtion 1:

Add
Condition 2
Formula is:

=AND(ROUND(A1/100000,1)-INT(ROUND(A1/100000,1))=0,ROUND(A1/100000,1)-INT(ROUND(A1/100000,1))<=0.5)

Set font color to BLACK

Biff

"John Knoke" wrote in message
...
How can I do a coditional formatting of "n" cells in column where the
cell
number is divided by 100,000 and if the decimal number is between X.1 and
X.4
format the cell number in "red". If the decimal number is between X.0 and
X.5
format the number in "black"

Divide each cell by 100,000

A1 117,176 1.2 Red A1
A2 218,205 2.2 Red A2
A3 288,242 2.9 Black A3
A4 375,224 3.8 Black A4
A5 454,227 4.5 Black A5
A6 535,557 5.4 Red A6
A7 612,154 6.1 Red A7
A8 694,623 6.9 Black A8

Thanks for any help







  #6   Report Post  
John Knoke
 
Posts: n/a
Default

Thanks works great also

"Ragdyer" wrote:

Forgot about the zero also returning false, so try this:

=AND(MOD(ROUND(A1/100000,1),1)0,MOD(ROUND(A1/100000,1),1)<=0.4)
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"Ragdyer" wrote in message
...
Click on "Formula Is" and try this:

=MOD(ROUND(A1/100000,1),1)<=0.4

Set format for RED.

Black will be the default for the other values.
--
HTH,

RD

--------------------------------------------------------------------------

-
Please keep all correspondence within the NewsGroup, so all may benefit !
--------------------------------------------------------------------------

-

"John Knoke" wrote in message
...
How can I do a coditional formatting of €œn€ cells in column where the

cell
number is divided by 100,000 and if the decimal number is between X.1

and
X.4
format the cell number in €œred€. If the decimal number is between X.0

and
X.5
format the number in €œblack€

Divide each cell by 100,000

A1 117,176 1.2 Red A1
A2 218,205 2.2 Red A2
A3 288,242 2.9 Black A3
A4 375,224 3.8 Black A4
A5 454,227 4.5 Black A5
A6 535,557 5.4 Red A6
A7 612,154 6.1 Red A7
A8 694,623 6.9 Black A8

Thanks for any help





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
difficulty with conditional formatting Deb Excel Discussion (Misc queries) 0 March 23rd 05 06:13 PM
conditional formatting question Deb Excel Discussion (Misc queries) 0 March 23rd 05 02:07 AM
Formatting dates in the future Compass Rose Excel Worksheet Functions 3 January 17th 05 10:39 PM
Copy conditional formatting across multiple rows? Gil Excel Discussion (Misc queries) 1 January 11th 05 11:27 AM
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 02:50 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"