+ Reply to Thread
Results 1 to 7 of 7

Decrease decimal number after add unit in excel

  1. #1
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Decrease decimal number after add unit in excel

    Dear All Expert
    my problem is when i add unit to my value in excel , its increase decimal number lie the following
    my formula is
    =(1.1*1.5*(LEFT('A1'!B6,FIND(" ",'A1'!B6)))/1.03)& " {ml} "
    result come as the following
    86.504854368932 {ml}
    how can make this
    86.5048 {ml}

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,853

    Re: how i can i decrease deciaml number after add unit in excel

    Like this:

    =ROUND((1.1*1.5*(LEFT('A1'!B6,FIND(" ",'A1'!B6)))/1.03),4)& " {ml} "
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: how i can i decrease deciaml number after add unit in excel

    It must be a very high precision application, if you want an answer to 0.1 µL !!!
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: how i can i decrease deciaml number after add unit in excel

    =TRUNC(1.1*1.5*(LEFT('A1'!B6,FIND(" ",'A1'!B6)))/1.03, 4) & " {ml}"

    But if you would like to reference the numeric result in other arithmetic expression:

    =TRUNC(1.1*1.5*(LEFT('A1'!B6,FIND(" ",'A1'!B6)))/1.03, 4)

    formatted as Custom 0.0000" {ml}"
    Last edited by joeu2004; 11-25-2017 at 01:36 PM.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,853

    Re: Decrease decimal number after add unit in excel

    Thanks fort he rep!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  6. #6
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: Decrease decimal number after add unit in excel

    Quote Originally Posted by mazan2010 View Post
    result come as the following 86.504854368932 {ml}
    how can make this 86.5048 {ml}
    Quote Originally Posted by AliGW View Post
    =ROUND((1.1*1.5*(LEFT('A1'!B6,FIND(" ",'A1'!B6)))/1.03),4)& " {ml} "
    Quote Originally Posted by joeu2004 View Post
    =TRUNC(1.1*1.5*(LEFT('A1'!B6,FIND(" ",'A1'!B6)))/1.03, 4) & " {ml}"
    Quote Originally Posted by AliGW View Post
    Thanks fort he rep!
    Mazan did what?!

    When A1!B6 contains "54 ml", for example, the unrounded formula results in 86.504854368932.

    ROUND(...,4) results in 86.5049.

    TRUNC(...,4) results in 86.5048.

    Mazan stated that he wants the latter.

    Mazan, did you misstate your requirement, and AliGW stumbled onto the correct(ed) solution by luck?

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,853

    Re: Decrease decimal number after add unit in excel

    There was no stumbling or luck involved! I had not read the last line of the requirement, however, so ROUNDDOWN would be better.

    Please note that rep points are awarded at the OP's discretion.

+ 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. Replies: 4
    Last Post: 10-07-2015, 06:04 AM
  2. Decrease Decimal
    By amartino44 in forum Excel General
    Replies: 1
    Last Post: 04-02-2013, 08:01 PM
  3. [SOLVED] decrease decimal in larger mode
    By HelpExc in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-09-2013, 08:04 AM
  4. Increase / decrease font size dependant upon number of decimal places
    By spoursy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-31-2012, 03:35 PM
  5. [SOLVED] increase/decrease decimal
    By cbfinancial in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-10-2006, 05:50 PM
  6. Using macro for decimal decrease or a utility ?
    By gaftalik in forum Excel General
    Replies: 2
    Last Post: 11-14-2005, 04:01 PM
  7. increase/decrease decimal via short key
    By andrei.aksenov@ in forum Excel General
    Replies: 1
    Last Post: 03-15-2005, 08:30 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