+ Reply to Thread
Results 1 to 9 of 9

Complex SUM with ROUNDing - all in one cell possible?

  1. #1
    Registered User
    Join Date
    02-25-2009
    Location
    England
    MS-Off Ver
    Excel 2003 SP3
    Posts
    4

    Complex SUM with ROUNDing - all in one cell possible?

    Hi there,

    I am an experienced Excel user, but it does not seem possible for this formula to be written all within one single cell. The SUM combines rounding a known value, followed by calculations, and subtracting a rounded number with modified calculations.


    This is the formula which does work, although I would prefer for the sake of accuracy (and succeeding in the task of making the formula do exactly what I wanted it to do!!):

    =ROUND(SUM(T9/1.5)/5,0)*(5)*(6.5%)+(26.25+15.81+1)+SUM((T9/1.5)*(6.5%)+26.25+15.81+1)*19%

    The value of T9 is 2283.3 recurring.


    There are two main parts to the SUM:

    =ROUND(SUM(T9/1.5)/5,0)*(5)*(6.5%)+(26.25+15.81+1)

    ...and:

    +SUM((T9/1.5)*(6.5%)+26.25+15.81+1)*19%


    The challenge is to insert another:

    =ROUND(SUM(T9/1.5)/5,0)*(5)

    in replacement of:

    =SUM((T9/1.5)


    I'm aware that the use of brackets differs between the two sections of the sum, but it is neccessary to allow the correct answer.

    Is this too much for one poor cell to handle?

    Kind Regards,
    Dale
    Last edited by daleppk; 02-27-2009 at 10:27 PM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Complex SUM with ROUNDing - all in one cell possible?

    Hi,

    Can you attach an example and indicate what value you expect to see returned by the formula.

    Rgds
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Complex SUM with ROUNDing - all in one cell possible?

    How about =(ROUND( T9 / 1.5 / 5, 0) * 5 * 6.5% + 26.25 + 15.81 + 1) * 119%

    or just =(ROUND( T9 / 7.5, 0) * 0.325 + 43.06) * 119%
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    02-25-2009
    Location
    England
    MS-Off Ver
    Excel 2003 SP3
    Posts
    4

    Re: Complex SUM with ROUNDing - all in one cell possible?

    Thanks for your help so far, the suggestion for using 119% is sadly too good to be true - the result is too low. Both calculations need to look at the original figure, a formula could be written to find a total correct percentage (something like 170%+) but I would prefer to stick with this formula which shows the steps taken to get the figure (hopefully!) shown in the cell.


    Here is the information requested:

    My formula results as 168.84

    The actual intended result is 141.86+26.95=168.81 (I know - 0.03 out, but it would be great not to be beaten by Excel!)


    This is a neater revision of my formula adding an extra set of nested brackets:

    =ROUND(SUM(T9/1.5)/5,0)*(5)*(6.5%)+(26.25+15.81+1)+SUM((T9/1.5)*(6.5%)+(26.25+15.81+1))*(19%)

    Notice, in the second half of the formula, that removing a nested bracket before 'T9' and after '+1' gives this unwanted result: 248.99

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Complex SUM with ROUNDing - all in one cell possible?

    You have way more parens than you need. My formula was responsive to your original request to
    insert another:

    =ROUND(SUM(T9/1.5)/5,0)*(5)

    in replacement of:

    =SUM((T9/1.5)
    .. which I believe it does.

  6. #6
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Complex SUM with ROUNDing - all in one cell possible?

    I am assuming you are trying to round to the nearest 5 on your figures!

    so you had an error in your second half of the formula, and the sum statements are unnecessary :-
    Please Login or Register  to view this content.
    This gives the correct result!
    Which is the same as :-
    Please Login or Register  to view this content.
    which both give the result 168.8134

    adding
    Please Login or Register  to view this content.
    Gives exactly 168.81 which is what you wanted!
    Last edited by squiggler47; 02-26-2009 at 08:54 AM.

  7. #7
    Registered User
    Join Date
    02-25-2009
    Location
    England
    MS-Off Ver
    Excel 2003 SP3
    Posts
    4

    Thumbs up Re: Complex SUM with ROUNDing - all in one cell possible?

    You were right shg...119% is clearly fine and I was using too many parentheses as you had suggested. These two factors combined meant than when I tested a formula using 119% it did not accurately calculate 119%..at which point I guess I figured 100% + 19% must be something other than 119%!!

    I still want to use the step-by-step formula which shows the workings in two parts, it's really helpful to know that you don't need to use "SUM" in combination with "ROUND".

    Therefore, squiggler's suggestion is perfect:
    =ROUND(T9/1.5/5,0)*5*6.5%+(26.25+15.81+1)+(ROUND(T9/1.5/5,0)*5*6.5%+26.25+15.81+1)*19%

    Thanks so much guys...solved!

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Complex SUM with ROUNDing - all in one cell possible?

    Would you please mark the thread as Solved?

    Click the Edit button on your first post in the thread

    Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes

  9. #9
    Registered User
    Join Date
    02-25-2009
    Location
    England
    MS-Off Ver
    Excel 2003 SP3
    Posts
    4

    Re: Complex SUM with ROUNDing - all in one cell possible?

    Quote Originally Posted by shg View Post
    Would you please mark the thread as Solved?

    Click the Edit button on your first post in the thread

    Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes
    Done, thanks again folks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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