View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
David Biddulph[_2_] David Biddulph[_2_] is offline
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,
...)?