Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mac Mac is offline
external usenet poster
 
Posts: 213
Default Conditional formatting & decimal part of a number in cell

Hello all,

in a conditional formatting scenario, which function do I use to decide if
the decimal part of the number in a cell is zero (i.e. x.0 and not x.1, x.2,
....)?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Conditional formatting & decimal part of a number in cell

=MOD(A1,1)=0

Or =MOD(ROUND(A1,1),1)=0 if you want to treat 4.02 as 4.0 in this respect.
--
David Biddulph

"Mac" wrote in message
...
Hello all,

in a conditional formatting scenario, which function do I use to decide if
the decimal part of the number in a cell is zero (i.e. x.0 and not x.1,
x.2,
...)?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mac Mac is offline
external usenet poster
 
Posts: 213
Default Conditional formatting & decimal part of a number in cell

Uh oh, this does not seem to work; my numbers are either x.5 or x.0; I need
my x.0's get formatted and all x.5's left as they are. Might the decimal
format be the problem for MOD function?

"David Biddulph" wrote:

=MOD(A1,1)=0

Or =MOD(ROUND(A1,1),1)=0 if you want to treat 4.02 as 4.0 in this respect.
--
David Biddulph

"Mac" wrote in message
...
Hello all,

in a conditional formatting scenario, which function do I use to decide if
the decimal part of the number in a cell is zero (i.e. x.0 and not x.1,
x.2,
...)?




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Conditional formatting & decimal part of a number in cell

Are you sure that what you think are numbers are actually numbers, and not
text? If the number is really a number, then a formula doesn't care what
format the number is *displayed* in, but looks at what the stored number is.
If the Conditional formatting hasn't worked, have you tried using the
formula in a helper column and checked the TRUE and FALSE results?
Are you sure that you have inserted the formula I suggested in the "Formula
Is" option under Conditional Formatting? Go back in to "Formula Is" and
check, as Excel will sometimes change what you think you entered.
--
David Biddulph

"Mac" wrote in message
...
Uh oh, this does not seem to work; my numbers are either x.5 or x.0; I
need
my x.0's get formatted and all x.5's left as they are. Might the decimal
format be the problem for MOD function?

"David Biddulph" wrote:

=MOD(A1,1)=0

Or =MOD(ROUND(A1,1),1)=0 if you want to treat 4.02 as 4.0 in this
respect.
--
David Biddulph

"Mac" wrote in message
...
Hello all,

in a conditional formatting scenario, which function do I use to decide
if
the decimal part of the number in a cell is zero (i.e. x.0 and not x.1,
x.2,
...)?






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mac Mac is offline
external usenet poster
 
Posts: 213
Default Conditional formatting & decimal part of a number in cell

David, the conditons you mentioned were all positive but th eproblem was -
for some reason, after having entered my condition formula and reopening the
Conditional Formatting dialog, the formula was surrounded by commas; deleted
those, saved, now it works great. Thanky you!!

"David Biddulph" wrote:

Are you sure that what you think are numbers are actually numbers, and not
text? If the number is really a number, then a formula doesn't care what
format the number is *displayed* in, but looks at what the stored number is.
If the Conditional formatting hasn't worked, have you tried using the
formula in a helper column and checked the TRUE and FALSE results?
Are you sure that you have inserted the formula I suggested in the "Formula
Is" option under Conditional Formatting? Go back in to "Formula Is" and
check, as Excel will sometimes change what you think you entered.
--
David Biddulph

"Mac" wrote in message
...
Uh oh, this does not seem to work; my numbers are either x.5 or x.0; I
need
my x.0's get formatted and all x.5's left as they are. Might the decimal
format be the problem for MOD function?

"David Biddulph" wrote:

=MOD(A1,1)=0

Or =MOD(ROUND(A1,1),1)=0 if you want to treat 4.02 as 4.0 in this
respect.
--
David Biddulph

"Mac" wrote in message
...
Hello all,

in a conditional formatting scenario, which function do I use to decide
if
the decimal part of the number in a cell is zero (i.e. x.0 and not x.1,
x.2,
...)?








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 only applies to part of cell text klkropf Excel Worksheet Functions 12 April 15th 14 03:53 PM
Lenght of a decimal part of a number. Yara Excel Worksheet Functions 4 October 5th 07 10:27 PM
conditional formatting "if part of cell contents contains string" tom ossieur Excel Worksheet Functions 1 March 13th 07 11:11 AM
Conditional formatting for part of a cell Marie Bayes Excel Discussion (Misc queries) 7 September 8th 06 06:47 PM
Conditional Formatting - part of cell only RobDDrums Excel Discussion (Misc queries) 1 January 9th 06 11:11 PM


All times are GMT +1. The time now is 03:34 AM.

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

About Us

"It's about Microsoft Excel"