PC Review


Reply
Thread Tools Rate Thread

Conditional formatting & decimal part of a number in cell

 
 
Mac
Guest
Posts: n/a
 
      16th Aug 2008
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 With Quote
 
 
 
 
Mac
Guest
Posts: n/a
 
      16th Aug 2008
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" <(E-Mail Removed)> wrote in message
> news:052FEA14-0269-4064-B4DF-(E-Mail Removed)...
> > 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 With Quote
 
Mac
Guest
Posts: n/a
 
      16th Aug 2008
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" <(E-Mail Removed)> wrote in message
> news:F3DB51C0-8C49-479D-ABED-(E-Mail Removed)...
> > 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" <(E-Mail Removed)> wrote in message
> >> news:052FEA14-0269-4064-B4DF-(E-Mail Removed)...
> >> > 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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
conditional formatting only applies to part of cell text klkropf Microsoft Excel Worksheet Functions 14 28th Nov 2010 06:27 PM
Conditional formatting for part of a cell =?Utf-8?B?TWFyaWUgQmF5ZXM=?= Microsoft Excel Misc 7 8th Sep 2006 06:47 PM
Conditional Formatting - part of cell only =?Utf-8?B?Um9iRERydW1z?= Microsoft Excel Misc 1 9th Jan 2006 11:11 PM
number formatting - conditional decimal point Ric Microsoft Excel Discussion 6 18th Oct 2005 11:57 PM
Conditional Formatting - number of decimal places Andrew Microsoft Excel Programming 2 12th Nov 2003 09:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:33 AM.