+ Reply to Thread
Results 1 to 5 of 5

Conditional Format to Highlight Anything That is Not a Whole Number

  1. #1
    Registered User
    Join Date
    01-09-2013
    Location
    Danielson, Connecticut
    MS-Off Ver
    Excel 2007
    Posts
    9

    Question Conditional Format to Highlight Anything That is Not a Whole Number

    I want to know if there is any way to highlight a cell that does not contain a whole number. In my spreadsheet I have a formula that calculates the number of packages in an order, but if the result is not a whole number then I want it to be highlighted. Can someone please help? Thanks!
    Last edited by jlworden; 02-24-2014 at 05:05 PM.

  2. #2
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Conditional Format to Highlight Anything That is Not a Whole Number

    Format with a formula

    =MOD(A1, 1)<>0

    Anything not evenly divisible by 1 (eg, not an integer) will trip the formula and format.
    Attached Files Attached Files

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Conditional Format to Highlight Anything That is Not a Whole Number

    Give this a try:
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  4. #4
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Conditional Format to Highlight Anything That is Not a Whole Number

    Use a formula to determine which cells to format

    Assuming you have data in A5:

    =(A5-INT(A5)<>0)

    Then set your fill color, and then use the Format Painter to apply were needed
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  5. #5
    Registered User
    Join Date
    01-09-2013
    Location
    Danielson, Connecticut
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Conditional Format to Highlight Anything That is Not a Whole Number

    Worked great, thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Conditional Format to highlight < but not =
    By MyDogJake in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-10-2013, 08:04 PM
  2. conditional format to highlight row
    By fentiger79 in forum Excel General
    Replies: 2
    Last Post: 09-24-2012, 09:18 AM
  3. Conditional Format to Highlight entire Row?
    By shital shah in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 PM
  4. highlight row :Conditional Format to highlight entrire Row
    By shital shah in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-25-2005, 11:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1