+ Reply to Thread
Results 1 to 5 of 5

Thread: If 45.320% exists, how to cut off zero digit

  1. #1
    Registered User
    Join Date
    08-11-2009
    Location
    Mesa, Arizona, USA
    MS-Off Ver
    Excel 2003
    Posts
    75

    If 45.320% exists, how to cut off zero digit

    I've got a formula in which I will display three decimal places unless the 3rd decimal place is a zero (after rounding the 4th decimal up: i.e. 45.3199 becomes 45.320). If the third decimal is a zero, I'll only want it to display the 45.32 instead of the the 45.320. Make sense?

    Is there a way to do this within excel without using VBA or do I need to program it?

    Any help would be great! thanks!
    Curbster

    P.S.~ see attached
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    02-20-2007
    Location
    South Africa
    MS-Off Ver
    2007
    Posts
    488

    Re: If 45.320% exists, how to cut off zero digit

    Hello curbster,

    Maybe you could use something like:

    =IF(G5="","",IF(ROUNDUP(G5,4)<>"",ROUNDUP(G5,5)*100,""))
    See Sheet 1 of WorkBook attached, and also check the changed formula in Cell "C45"

    Good Luck!
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    08-11-2009
    Location
    Mesa, Arizona, USA
    MS-Off Ver
    Excel 2003
    Posts
    75

    Re: If 45.320% exists, how to cut off zero digit

    Hello Winon,
    I apologize for the late responce, I checked back a few days after I posted it and couldn't find my post so I figured it didn't go through and forgot about it until now.

    Anyway, that's not exactly what I was looking for but its closer than what I had. Lets say A+B=C; if the value in C's digit in the thousanths place is a zero after rounding, drop the zero.

    I don't have the luxury of adding another box, say D so that once I get the answer, I could have another box with just the formula. So I would need the formula to calculate, round, and then drop the zero in one clean swoop. Is that better explained? Hope so!

    Thanks for your help, and now I know my post went through, I'll check more often!
    Curbster

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    here
    MS-Off Ver
    2002/XP
    Posts
    1,239

    Re: If 45.320% exists, how to cut off zero digit

    A number format of 0.00#% or 0.00?% will hide the extra 0.

  5. #5
    Valued Forum Contributor
    Join Date
    02-20-2007
    Location
    South Africa
    MS-Off Ver
    2007
    Posts
    488

    Re: If 45.320% exists, how to cut off zero digit

    Hello curbster,

    See if the WorkBook attached, is what you want. I was not sure where you wanted the actual formula, so I have used Cell C, after messing up your Columns A and B.

    Would be easy enough for you to fix!
    Attached Files Attached Files
    Please consider:

    Be polite. Thank those who have helped you. Click the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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.2.0