+ Reply to Thread
Results 1 to 11 of 11

Round and SUMIF Question

  1. #1
    Registered User
    Join Date
    10-21-2016
    Location
    Denver Co
    MS-Off Ver
    2013
    Posts
    65

    Round and SUMIF Question

    I am having problems with the below formula
    it is skipping data that clearly is zero that is group by the Financial Complex. Do you have an idea why it may be doing this.

    The formula needs to have the logic If the Financial Complex number, group them that are the same and look in their amounts column and find all that sum that are equal to Zero and mark them by saying Zero

    =ROUND(SUMIFS([Amount],[Financial Complex],[@[Financial Complex]]),2)=0

    Then the Second logic but saying now give me the sums that are >-5 (Which means -5,-4,-3,-2,-1) correct? and <5. So these values should all equal like -2.65 or 4.26 etc

    =if(and(ROUND(SUMIFS([Amount],[Financial Complex],[@[Financial Complex]]),2)>-5,ROUND(SUMIFS([Amount],[Financial Complex],[@[Financial Complex]]),2)<0),"Less 5",if(and(ROUND(SUMIFS([Amount],[Financial Complex],[@[Financial Complex]]),2)>0,ROUND(SUMIFS([Amount],[Financial Complex],[@[Financial Complex]]),2)<5),"between zero and 5","Not between -5 and 5")


    So i am aware that i probably need two formulas .
    1. =0
    2. >-5 and <5

    Ex1.JPG

    Here are the errors when i try to run the following formula as well ex2.JPG
    Last edited by GCLIFTON; 11-02-2016 at 11:11 AM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,879

    Re: Round and SUMIF Question

    Please post a sample file so there is data to work with: include expected results.

    To Attach a File:

    1. Click "Go Advanced"
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.

  3. #3
    Registered User
    Join Date
    10-21-2016
    Location
    Denver Co
    MS-Off Ver
    2013
    Posts
    65

    Re: Round and SUMIF Question

    My apologies files were not attached. Here are the two i was attempting to attached

    Ex1.JPG




    And

    ex2.JPG

  4. #4
    Registered User
    Join Date
    10-21-2016
    Location
    Denver Co
    MS-Off Ver
    2013
    Posts
    65

    Re: Round and SUMIF Question

    I am not sure if the attachment was attached Are you able to see it
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-21-2016
    Location
    Denver Co
    MS-Off Ver
    2013
    Posts
    65

    Re: Round and SUMIF Question

    In Column 1 i have the formula = 0 and in Column 2 i have the >-5<5 Formula.

    i wanted the below formula in Column 1 only but it alway gave me errors so i split it up. between the two

    if(ROUND(SUMIFS([Amount],[Complex CC],[@[Complex CC]]) ,2)=0,"Zero",if(and(ROUND(SUMIFS([Amount],[Complex CC],[@[Complex CC]]),2)>-5,ROUND(SUMIFS([Amount],[Complex CC],[@[Complex CC]]),2)<0),"Less 5",if(and(ROUND(SUMIFS([Amount],[Complex CC],[@[Complex CC]]),2)>0,ROUND(SUMIFS([Amount],[Complex CC],[@[Complex CC]]),2)<5),"between zero and 5","Not between -5 and 5")

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,997

    Re: Round and SUMIF Question

    I put the following formula in column H of Sheet 2, didn't get an error message, and it displayed that the value of H6440 was zero:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  7. #7
    Registered User
    Join Date
    10-21-2016
    Location
    Denver Co
    MS-Off Ver
    2013
    Posts
    65

    Re: Round and SUMIF Question

    So in the data Look at lines 87 to 96. They tie to zero and were overlook. Should this formula possible need to be split in two Could that be the reason. I dont know if this helps but All debits/Positive has the word "WCR" in Description column that should tie to Zero with credits by 1 to 1 or 1 to many. I dont think that matters really but may help in logic. Because ultimately i am trying to try all wcr which are Invoice to Deposit that are all credits

    Would it be better to separate the debits from the credits and then run the formulas to say per this debit find the credits that total up to be zero.

  8. #8
    Registered User
    Join Date
    03-08-2011
    Location
    Minneapolis, Minnesota, USA
    MS-Off Ver
    Excel 2013
    Posts
    18

    Re: Round and SUMIF Question

    If I add this to a new column as a sanity check
    Please Login or Register  to view this content.
    Then this to a new column
    Please Login or Register  to view this content.
    It shows "Zero" for zero and "Not between -5 and 5" for everything else (which it should, because nothing else is between those numbers...)

    The formula works for the criteria you have defined... are you defining the right criteria?

  9. #9
    Registered User
    Join Date
    03-08-2011
    Location
    Minneapolis, Minnesota, USA
    MS-Off Ver
    Excel 2013
    Posts
    18

    Re: Round and SUMIF Question

    Please Login or Register  to view this content.
    What this is doing is summing EVERY amount where Complex CC is the same as that line.

    To make this clear:
    a 1
    a 2
    a 3
    a 4
    a 5
    b 6
    b 7
    b 8
    b 9

    would display
    15
    15
    15
    15
    15
    30
    30
    30
    30

    (1 + 2 + 3 + 4 + 5 = 15)
    (6+7+8+9 = 30)

    Does that make sense?

  10. #10
    Registered User
    Join Date
    10-21-2016
    Location
    Denver Co
    MS-Off Ver
    2013
    Posts
    65

    Re: Round and SUMIF Question

    Ok I see what you are saying. I think i have the wrong criteria. I have been meaning for it to say, per the common [Complex CC], Per each amount in that common [complex cc], sum with the other amounts in that common [complex cc] to find a sum of 0 and or =>-5 or =<5. And label those. Which is slightly different than the other criteria.

    For instance row 359 to 376. Event though it is 18 lines totaling to 28.45 there are some values in the amount that sum up to Zero if the criteria where to search each amount by the Common [Complex CC] and then sum and label the zero or +\- <> of 5's than this would be the correct criteria to use.

    How would that change the previous formula? I totally understand what you are saying now
    And to follow up on your example which was great
    Yes
    I need it to take the 1 and 3 of the group and sum it and say it is less than 5 and give me that reply or if the sum equals to zero etc

  11. #11
    Registered User
    Join Date
    10-21-2016
    Location
    Denver Co
    MS-Off Ver
    2013
    Posts
    65

    Re: Round and SUMIF Question

    After thinking wouldn't it possible be easier to split the debit and credits up like in the VSE tab and then run a logic in Column H- Per the common Complex look in Column G and sum in all that ties to zero and label zero. etc OR would this be better to run this as a macro. First saying find all values per common [Complex] that tie zero and then remove and place in a new tabe and then re sum and find all that are >-5 place in that same tab with the zero ,re sum and find all that is <5 and place in the same tab with zero finish and go to the next value
    Attached Files Attached Files

+ 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. SumIf formula or Sumif with pivottable combined question
    By mcgleeuw in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-10-2015, 01:05 PM
  2. how do I use SUM, SUMIF & ROUND within the same cell
    By SallyBV in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-16-2015, 05:52 PM
  3. Replies: 2
    Last Post: 12-06-2014, 01:58 PM
  4. [SOLVED] Sumif - Sumif question
    By Andrewbutler in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-24-2014, 01:16 PM
  5. SUMIF Question
    By sonodelirii in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-15-2012, 05:12 AM
  6. SUMIF Question: SUMIF not blank
    By nickyg in forum Excel General
    Replies: 5
    Last Post: 11-18-2009, 10:07 PM
  7. stupid round question
    By Sergei D in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-07-2006, 12:55 PM

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