+ Reply to Thread
Results 1 to 6 of 6

Integers are rounded decimals are only taken to 2 decimal places and rounded

  1. #1
    Forum Contributor
    Join Date
    08-25-2020
    Location
    Taiwan
    MS-Off Ver
    MS 365+win 10(64bit)
    Posts
    183

    Integers are rounded decimals are only taken to 2 decimal places and rounded

    The cell value is an integer, and the integer is reserved, but the cell value has a decimal point, and only 2 decimal points can be reserved

    4 rounded to 5

    Column J is the input area, and the data will immediately get results like column L after input

    Column L does not exist, it is just a reference value

    congratulations merry christmas everyone

    Any help would be appreciated!
    Attached Files Attached Files
    Last edited by metrostar; 12-25-2022 at 03:51 AM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Integers are rounded decimals are only taken to 2 decimal places and rounded

    Try

    =IF(MOD($J2,1)=0,$J2,ROUND($J2,2))
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Forum Contributor
    Join Date
    08-25-2020
    Location
    Taiwan
    MS-Off Ver
    MS 365+win 10(64bit)
    Posts
    183

    Re: Integers are rounded decimals are only taken to 2 decimal places and rounded

    Quote Originally Posted by JohnTopley View Post
    Try

    =IF(MOD($J2,1)=0,$J2,ROUND($J2,2))
    JohnTopley, the formula you gave is correct, thank you, can the user input in column J (no helper column) also get the same result?

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Integers are rounded decimals are only taken to 2 decimal places and rounded

    In M2 copied down

    =IF(J2="","",CEILING(J2,0.01))
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Integers are rounded decimals are only taken to 2 decimal places and rounded

    You will need VBA if you want result in the input cell

    Please Login or Register  to view this content.
    Right Click on sheet tab, "View Code", copy/paste above code.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    08-25-2020
    Location
    Taiwan
    MS-Off Ver
    MS 365+win 10(64bit)
    Posts
    183

    Re: Integers are rounded decimals are only taken to 2 decimal places and rounded

    Thank you kvsrinivasamurthy ,
    Thank you JohnTopley ,You are amazing

+ 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] Can't Compared Rounded numbers to 0 decimal places
    By forrestgump1980 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-04-2018, 08:57 AM
  2. syntax for comparing a rounded number to a rounded list
    By stockgoblin42 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-10-2013, 10:12 AM
  3. Replies: 3
    Last Post: 04-28-2011, 05:47 PM
  4. Replies: 4
    Last Post: 12-15-2005, 12:10 AM
  5. Replies: 2
    Last Post: 12-14-2005, 04:15 PM
  6. Replies: 0
    Last Post: 12-14-2005, 03:00 PM
  7. [SOLVED] RE: Large integers in excel 2003 are rounded ?? Is this a BUG ?
    By Peter Ellis in forum Excel General
    Replies: 0
    Last Post: 12-14-2005, 02:55 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