+ Reply to Thread
Results 1 to 4 of 4

Stop rounding off the numbers

  1. #1
    Forum Contributor
    Join Date
    02-16-2012
    Location
    Denmark
    MS-Off Ver
    O365
    Posts
    256

    Stop rounding off the numbers

    I am making a form wherein the numbers to be entered has decimals
    Some numbers has 2 decimals, some has 3, and so on

    For ex:
    16.10
    16.100
    (I know that it is the same number but it just needs to appear as how we enter it)


    I cannot change the format into text because I have conditional formatting that the acceptable value is for ex 5≤ x ≤25

    Any help?
    Thanks in advance

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,650

    Re: Stop rounding off the numbers

    You cannot have a cake and eat it.
    Well, in this case you probably can .
    Use text format which will store 16.100 as 16.100 not 16.1 but your conditional formatting rule cannot be just standard one. It has to be a rule based on formula (CF - new rule - use formula ...).
    In the formula you first convert text to number (simple --A1 will convert text A1 into a number) and then compare with allowed range limits.
    The formula for the CF rule could look like:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Best Regards,

    Kaper

  3. #3
    Forum Contributor
    Join Date
    02-16-2012
    Location
    Denmark
    MS-Off Ver
    O365
    Posts
    256

    Re: Stop rounding off the numbers

    What if my condition is only ≤ 50?
    I tried
    =and(--A1<=50) but it is not working




    Quote Originally Posted by Kaper View Post
    You cannot have a cake and eat it.
    Well, in this case you probably can .
    Use text format which will store 16.100 as 16.100 not 16.1 but your conditional formatting rule cannot be just standard one. It has to be a rule based on formula (CF - new rule - use formula ...).
    In the formula you first convert text to number (simple --A1 will convert text A1 into a number) and then compare with allowed range limits.
    The formula for the CF rule could look like:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,650

    Re: Stop rounding off the numbers

    if there is just one condition, AND is not nececessary.
    See attached file (in DK, as I remember, you also use comma as decimal separator, don't you?)

    If it's fine (or simply reversed - then reverse less than to greather than), you can play with excluding/including empty cells from/in formatting

    try for instance:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    PS. Don't quote whole posts -- it's just clutter. If you are responding to a post out of sequence, limit quoted content to a few relevant lines that makes clear to whom and what you are responding.
    Attached Files Attached Files
    Last edited by Kaper; 03-03-2016 at 10:48 AM. Reason: Attachment added

+ 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. [SOLVED] How to stop Long numbers from auto rounding...
    By Hogrider in forum Excel General
    Replies: 5
    Last Post: 01-27-2014, 08:34 PM
  2. [SOLVED] Stop SUM Rounding???
    By Margate in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-22-2013, 03:22 PM
  3. VBA function to STOP rounding numbers
    By evenings in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-12-2010, 02:01 PM
  4. How do I stop excel from rounding numbers?
    By c-swym in forum Excel General
    Replies: 6
    Last Post: 06-15-2006, 09:10 PM
  5. How do I stop numbers from rounding in Excel?
    By Josette_N in forum Excel General
    Replies: 10
    Last Post: 01-27-2006, 11:19 AM
  6. how can I stop Excel rounding up large numbers?
    By kestrel in forum Excel General
    Replies: 1
    Last Post: 05-19-2005, 07:03 AM
  7. How do I stop rounding numbers?
    By Jfeeman in forum Excel General
    Replies: 3
    Last Post: 03-16-2005, 10:06 AM
  8. stop rounding
    By grianagh in forum Excel General
    Replies: 2
    Last Post: 02-02-2005, 04:06 PM

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