ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   conditional format (https://www.excelbanter.com/excel-discussion-misc-queries/183992-conditional-format.html)

widman

conditional format
 
How can I change the format (color or background) of a cel when its formula
returns a decimal instead of a whole number?

Kevin B

conditional format
 
Click format in the menu and select CONDITIONAL FORMATTING.

Change the Condition 1 combo box to Formula Is and in the text box directly
to its right enter the following formula:

=MOD(A1,1)

Changing A1 to your starting cell.

Click the FORMAT command button and click the PATTERNS tab and select the
color of your choice and click the OK command button 2 times.
--
Kevin Backmann


"widman" wrote:

How can I change the format (color or background) of a cel when its formula
returns a decimal instead of a whole number?


Sandy Mann

conditional format
 
Use Conditional formatting: Format Conditional fromatting, select "Formula
is" and enter the formula:

=AND(E1<"",E1=INT(E1))

and select the pattern colour that you want. Change the cell reference E1
to the cell that the conditional formatting is in.


--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"widman" wrote in message
...
How can I change the format (color or background) of a cel when its
formula
returns a decimal instead of a whole number?




widman

conditional format
 
thanks. worked great after I changed the , to a ; that I have to use because
of another software.

"Kevin B" wrote:

Click format in the menu and select CONDITIONAL FORMATTING.

Change the Condition 1 combo box to Formula Is and in the text box directly
to its right enter the following formula:

=MOD(A1,1)

Changing A1 to your starting cell.

Click the FORMAT command button and click the PATTERNS tab and select the
color of your choice and click the OK command button 2 times.
--
Kevin Backmann


"widman" wrote:

How can I change the format (color or background) of a cel when its formula
returns a decimal instead of a whole number?


Sandy Mann

conditional format
 
Oops! worng way round. formula should be:

=AND(E1<"",E1<INT(E1))

But Kevin's formula is better.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Sandy Mann" wrote in message
...
Use Conditional formatting: Format Conditional fromatting, select
"Formula is" and enter the formula:

=AND(E1<"",E1=INT(E1))

and select the pattern colour that you want. Change the cell reference E1
to the cell that the conditional formatting is in.


--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"widman" wrote in message
...
How can I change the format (color or background) of a cel when its
formula
returns a decimal instead of a whole number?








All times are GMT +1. The time now is 09:59 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com