+ Reply to Thread
Results 1 to 5 of 5

How to leave only two digits after separator (format cells does not work for formula)

  1. #1
    Registered User
    Join Date
    01-31-2013
    Location
    Vilnius
    MS-Off Ver
    Excel 2010
    Posts
    2

    How to leave only two digits after separator (format cells does not work for formula)

    I have this formula: =IF(ISERROR("Suma:"&SUM(G9:G15)),"", "Suma:"&SUM(G9:G15)) (its calculating sum of all the rows in range)

    When its calculated its shows me this: Suma:296712.616883768
    I dont need so much numbers after separator. How wht should i insert to this formula to make it something like this: Suma:296712.61

    Thank you so much !

    (sorry if i wrote something wrong, im new in here )
    Last edited by lamiuks; 10-21-2013 at 08:23 AM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,825

    Re: How to leave only two digits after separator (format cells does not work for formula)

    Try it like this:

    =IF(ISERROR("Suma:"&SUM(G9:G15)),"", "Suma:"&TEXT(SUM(G9:G15),"0.00"))

    Hope this helps.

    Pete

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: How to leave only two digits after separator (format cells does not work for formula)

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  4. #4
    Registered User
    Join Date
    01-31-2013
    Location
    Vilnius
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: How to leave only two digits after separator (format cells does not work for formula)

    Quote Originally Posted by Pete_UK View Post
    Try it like this:

    =IF(ISERROR("Suma:"&SUM(G9:G15)),"", "Suma:"&TEXT(SUM(G9:G15),"0.00"))

    Hope this helps.

    Pete
    Thank you !!!! It helped !

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: How to leave only two digits after separator (format cells does not work for formula)

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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] Need help with SUM formula (multiple cells) that shouldn't leave result trail
    By aalim95 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 06-26-2013, 06:17 PM
  2. Thousands separator in hours format
    By Betelgeuse in forum Excel General
    Replies: 2
    Last Post: 01-23-2007, 01:12 AM
  3. Convert date format from string to separator
    By masterp in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-22-2006, 07:16 AM
  4. lock only formula cells without protecting sheet - leave open
    By BLANK JUNK MAIL RECEIVED - CREATE RULE in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-11-2006, 11:00 PM
  5. [SOLVED] How do I format cells to a specific number of digits?
    By Gabriele in forum Excel General
    Replies: 3
    Last Post: 02-05-2005, 12: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