+ Reply to Thread
Results 1 to 4 of 4

Conditional Formatting to Show whether the Displayed Number is Rounded

  1. #1
    Registered User
    Join Date
    02-20-2013
    Location
    Los Angeles, California
    MS-Off Ver
    Excel 2010
    Posts
    43

    Conditional Formatting to Show whether the Displayed Number is Rounded

    I have cells set up to display only 2 decimal places. I am trying to make the text red if the number entered has more than 2 digits after the decimal. I have tried the below formula with no luck. Any ideas?
    =A1<>ROUND(A1,2)

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Conditional Formatting to Show whether the Displayed Number is Rounded

    the round will "round it to 2 decimal places"
    try below in Conditiona lformatting ->Use formula

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Conditional Formatting to Show whether the Displayed Number is Rounded

    hi sskgintl, welcome to the forum. different understanding from vlady, so here's my input.

    display as in Format cells? your cells will still have more than 2 decimal places if so. it just shows you 2 decimal places. conditional formatting cant help you identify a formatting with 2 & non-2 decimal places. maybe, just maybe VBA will be able to help you in such a case.

    if your cell has a formula like the ROUND you did, then it wouldn't have any problems. but then, you wouldn't need any conditional formatting.

    an alternative is doing data validation, forcing users to use 2 decimal places. select the cells you want the validation applied to (say B1:B5). go to Data -> Data Validation -> Allow: Decimal -> Equal:
    2

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Registered User
    Join Date
    02-20-2013
    Location
    Los Angeles, California
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Conditional Formatting to Show whether the Displayed Number is Rounded

    Thanks. That worked perfectly!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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