+ Reply to Thread
Results 1 to 4 of 4

Rounded MIN function not displaying correct number of decimals with concatenate function

  1. #1
    Forum Contributor
    Join Date
    10-27-2019
    Location
    London
    MS-Off Ver
    365
    Posts
    182

    Rounded MIN function not displaying correct number of decimals with concatenate function

    I want to display a minimum and maximum number in a range rounded to 1 decimal. In this example 0.0 - 0.2.

    But for some reason it's only showing 0 - 0.2. It works fine if I change the Round function to 2 decimals? Or even left just on its own
    Please Login or Register  to view this content.
    Why doesn't Excel display the minimum value correctly?
    Attached Files Attached Files

  2. #2
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Rounded MIN function not displaying correct number of decimals with concatenate functi

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

  3. #3
    Forum Contributor
    Join Date
    10-27-2019
    Location
    London
    MS-Off Ver
    365
    Posts
    182
    Works perfect! Thanks.


    Still wondering why was Excel behaving like that
    Last edited by AliGW; 09-30-2022 at 05:02 AM. Reason: Please DON'T quote unnecessarily!

  4. #4
    Valued Forum Contributor
    Join Date
    07-13-2021
    Location
    California, USA
    MS-Off Ver
    2010
    Posts
    513

    Re: Rounded MIN function not displaying correct number of decimals with concatenate functi

    Quote Originally Posted by daithy View Post
    Still wondering why was Excel behaving like that
    F10 is formatted as Number with 1 decimal place. So, no matter what ROUND(... , 1) returns, it would appear as x.x .

    If you used the format Number with 3 decimal places, you would see x.xxx even though you round to 1 decimal places.

    In the expression ROUND(... , 1) &... , we cannot control the format of the value that ROUND returns.

    Excel returns the minimum number of digits to represent the result up to 15 significant digits.

    Since the result is zero, Excel formats that as "0".

    If you format F10 as General, you would also see just 0.
    Last edited by curiouscat408; 09-30-2022 at 11:30 AM.

+ 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. function for number formatting, thousands separator, no decimals
    By bsapaka in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-11-2014, 10:36 AM
  2. New to VBA, Function returning number rounded to whole number
    By Sonnerstudent in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-22-2013, 01:39 PM
  3. Replies: 5
    Last Post: 02-16-2012, 03:50 PM
  4. Month Function Not Displaying Correct Output?
    By NewExcelUser in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-29-2007, 03:50 PM
  5. Displaying a number with different decimals depending on a condition
    By JGarces in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-16-2006, 12:40 PM
  6. Replies: 0
    Last Post: 08-15-2006, 06:52 PM
  7. Displaying decimals that go in to a given number
    By weSky in forum Excel General
    Replies: 1
    Last Post: 06-07-2006, 05:00 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