+ Reply to Thread
Results 1 to 3 of 3

rounding numbers and =if statement

  1. #1
    Registered User
    Join Date
    09-24-2007
    Posts
    66

    rounding numbers and =if statement

    I have a massive spreadsheet to manupulate. Long story short ...
    I have 3 numbers that I have rounded and if they do not equal a certain number, i need 1 added .... the tricky part (for me) is that I need it added in a cell that is already rounded.
    attached is an example, but here is the short version:

    Number1 Number2 Number3 Total
    5.2 6.4 9.4 21.0


    5.0 6.0 9.0
    nmb 1 rounded nmb 2 rounded nmb 3 rounded

    If these 3 numbers do not add up to the total then I need 1 added to one of the numbers. How can I incorporate that into my =round formula?
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: rounding numbers and =if statement

    Assuming you can use G5 as the cell to change based on condition, then change formula in G5 to:

    =ROUND(D2,0)+(SUM(E5,F5,ROUND(D2,0))<>F2)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Valued Forum Contributor
    Join Date
    02-08-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2007
    Posts
    122

    Re: rounding numbers and =if statement

    Maybe this,

    G5 =SUM(B2:D2)-SUM(E5:F5)

    Regards

+ 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.6.0 RC 1