+ Reply to Thread
Results 1 to 4 of 4

Need assistance with formatting output to 2 decimals

  1. #1
    Forum Contributor
    Join Date
    08-06-2018
    Location
    Virginia
    MS-Off Ver
    2019
    Posts
    342

    Need assistance with formatting output to 2 decimals

    Hi -- I need some assistance with formatting my formula output to 2 decimals.

    Existing Formula:
    ="Avg Mos: " &MOD(((SUM($J$17:$J$26)*12+SUM($K$17:$K$26))/COUNTIFS($J$17:$J$26,"<>*?",$J$17:$J$26,"<>")),12)

    Current Output:
    Avg Mos: 0.0999999999999943

    Desired Output:
    Avg Mos: 0.10

  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,987

    Re: Need assistance with formatting output to 2 decimals

    You can do this:

    ="Avg Mos: " &TEXT(ROUND(MOD(((SUM($J$17:$J$26)*12+SUM($K$17:$K$26))/COUNTIFS($J$17:$J$26,"<>*?",$J$17:$J$26,"<>")),12),2),"0.00")
    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 Contributor
    Join Date
    08-06-2018
    Location
    Virginia
    MS-Off Ver
    2019
    Posts
    342

    Re: Need assistance with formatting output to 2 decimals

    Fantastic! Thank you, AliGW.

  4. #4
    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,987

    Re: Need assistance with formatting output to 2 decimals

    My pleasure!

+ 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] Formatting Numbers after decimals
    By ricky-84 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-14-2021, 04:53 PM
  2. Formula Assistance - evaluating/comparing of data to output
    By bdav1216 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-23-2020, 09:15 PM
  3. Assistance request, why I'm not getting output sumproduct and sum formula?
    By mso3 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-15-2017, 07:11 AM
  4. [SOLVED] Coding assistance for TextBox Vlookup rounding to 2 decimals
    By sintek in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-07-2016, 02:52 PM
  5. My loop to output a script file for AutoCad needs assistance
    By 480vmotor in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-21-2015, 03:51 PM
  6. [SOLVED] Formatting Decimals
    By kafarrell in forum Excel General
    Replies: 2
    Last Post: 10-07-2014, 11:54 AM
  7. Commas, Decimals and Standard Number with nothing -- Output separated data
    By dmcbrier in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-23-2013, 02:21 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