+ Reply to Thread
Results 1 to 10 of 10

Rounding Error

  1. #1
    Forum Contributor
    Join Date
    12-16-2014
    Location
    Riverside, IA
    MS-Off Ver
    2010
    Posts
    156

    Rounding Error

    Hello All,

    I need to round to the nearest .5 in the formula's below and get the same "Too Few Arguments for this function" error message. The only difference in the formula's are where the rounding increment is placed; 1st formula is in the middle and the 2nd formula is at the end.

    =MROUND(F211+H211+J211+L211),0.5/COUNTIFS(F211:L211,">0",F211:L211,"<100")

    =MROUND(F211+H211+J211+L211)/COUNTIFS(F211:L211,">0",F211:L211,"<100"),0.5

    I Can't figure out what's missing!

    Thank you!

    Patrick

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,391

    Re: Rounding Error

    It looks like one of the hardest, and yet most common kind of formula error. Count/match your opening and closing parentheses. I think you need more parentheses to fit everything together.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Contributor
    Join Date
    10-16-2014
    Location
    Center Line, Michigan, United States
    MS-Off Ver
    MS Office 2013
    Posts
    139

    Re: Rounding Error

    For the first one:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Please click the star (add rep) if I helped!

  4. #4
    Forum Contributor
    Join Date
    12-16-2014
    Location
    Riverside, IA
    MS-Off Ver
    2010
    Posts
    156

    Re: Rounding Error

    Mr. Shorty,

    Thanks for your input but I counted the parenthesis pairs and there are 2 left and 2 right parenthesis so they're matched up.

    Patrick

  5. #5
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,391

    Re: Rounding Error

    But did you take careful note of the location of those parentheses? If you look at Loganeb's correction, you will note that he has the same number of parentheses, but he moved the first close parenthesis out to include the 0.5 argument that belongs with the MROUND() function.

    If I understand what the 2nd function is supposed to do (and I'm not sure I do), the 2nd function needs another pair of parentheses to offset the entire thing =MROUND((currentformula),0.5)

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Rounding Error

    I think that these are what you want.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  7. #7
    Forum Contributor
    Join Date
    12-16-2014
    Location
    Riverside, IA
    MS-Off Ver
    2010
    Posts
    156

    Re: Rounding Error

    Mr Shorty,

    I tried Loganeb's solution and that got rid of the "Too Few Arguments" error but it does not round the number at all. The result is stuck at 11.25 and needs to be
    11.50.

    Patrick

  8. #8
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,391

    Re: Rounding Error

    That's because the first variation computes the indicated sum, rounds it, then divides by the countif. Perhaps you are looking for newdoverman's second suggestion (with the additional parentheses around the entire function)?

  9. #9
    Forum Contributor
    Join Date
    12-16-2014
    Location
    Riverside, IA
    MS-Off Ver
    2010
    Posts
    156

    Re: Rounding Error

    newdoverman,

    Your 2nd formula worked! Thank you so much!!!

    Patrick

  10. #10
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Rounding Error

    You're welcome. Thank you for the feedback.

+ 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. Rounding error?
    By peter_h in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-26-2013, 10:07 AM
  2. [SOLVED] Is this a rounding error? and if so, how do I fix it?
    By plamb in forum Excel General
    Replies: 5
    Last Post: 01-09-2013, 07:23 AM
  3. Rounding Error Help
    By WAW in forum Excel General
    Replies: 2
    Last Post: 01-11-2011, 01:34 PM
  4. rounding error
    By Shawn in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-05-2005, 08:05 AM
  5. [SOLVED] Rounding Error
    By Ellis Yu in forum Excel General
    Replies: 6
    Last Post: 02-23-2005, 04:06 AM

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