SUMIFS formula help - unable to correct calc

iCloud doc: https://www.icloud.com/numbers/07ZgsGu9ieQU3ClW19zsnjFXg#Sales_Dash_v5_template_work_copy


Issue: Unable to return the correct value in red shaded cells D6 and D7.


First Tab " Formula issue"

Table name: T Leverone MTD v5

Source data: Rep Expense table [in Rep Expense tab


Grateful for the pointing out the flaw in my SUMIFS calc formula



Posted on Jul 31, 2019 9:44 AM

Reply
Question marked as Top-ranking reply

Posted on Jul 31, 2019 11:04 AM

I think the formula in D6 is correctly returning a value of 0. There are no Job: rep expenses between 12/29 and 1/4.


The formula in D7 seems to have an incorrect reference to a column, shown here in bold:


=SUMIFS(Rep Expense::$F,$J,$A$1,Rep Expense::$A,">="&D$4,Rep Expense::$A,"<="&D$5,Rep Expense::$E,"yes",Rep Expense::$C,"Job:*",$K,$A$4)+SUMIFS(Rep Expense::$F,$J,$A$1,Rep Expense::$A,"<"&$D$4,Rep Expense::$E,"yes",Rep Expense::$C,"Job:*",$K,$A$4)


In general you may find it more efficient to avoid such long formulas. They're much easier to debug if you break them up into separate cells.


SG

4 replies
Question marked as Top-ranking reply

Jul 31, 2019 11:04 AM in response to suekatsue

I think the formula in D6 is correctly returning a value of 0. There are no Job: rep expenses between 12/29 and 1/4.


The formula in D7 seems to have an incorrect reference to a column, shown here in bold:


=SUMIFS(Rep Expense::$F,$J,$A$1,Rep Expense::$A,">="&D$4,Rep Expense::$A,"<="&D$5,Rep Expense::$E,"yes",Rep Expense::$C,"Job:*",$K,$A$4)+SUMIFS(Rep Expense::$F,$J,$A$1,Rep Expense::$A,"<"&$D$4,Rep Expense::$E,"yes",Rep Expense::$C,"Job:*",$K,$A$4)


In general you may find it more efficient to avoid such long formulas. They're much easier to debug if you break them up into separate cells.


SG

Jul 31, 2019 8:47 PM in response to suekatsue

Had a second look after a few hours.. It looks different to me know. 😀


In general I find the structure too complicated to follow and the formulas too long to be able to debug easily. Perhaps you could consider simplifying the structure.


Also beware of "dates." Even if you hide the time part they are always date-time strings, which can cause unexpected results in SUMIFS.


Sorry can't be of more help in debugging this.


SG



This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

SUMIFS formula help - unable to correct calc

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.