Sumifs absolute

Number1One

New Member
Joined
Mar 1, 2019
Messages
16
Office Version
  1. 365
Platform
  1. Windows
Hi All,
Been trying to make this work with previous similar questions but unable to make it work.

When trying to do this on a summary level the absolute is done on the top level and not on the line by line level and then summed, which is what i am looking for

For example If i do a cross grid with my data set i get absolute error on Supplier C as 102 (P9+P18). Whereas on a summary level this comes back as 42(H15), -30+70. Only 1 issue on this example data set but much more on my actual data.

I have a few criteria, which are generally triggers in top left or what the summary/column is, Trying to keep the Date column search dynamic for minimum upkeep and analysis on 4 week/3 month periods. Formula in Summary currently: =SUMIFS(INDEX($G$21:$L$52,0,MATCH($B$2,$G$20:$L$20,0)),$A$21:$A$52,$B$5,$B$21:$B$52,$B$3,$D$21:$D$52,$B$4,$C$21:$C$52,$D13,$F$21:$F$52,E$12)

1ABCDEGHIJKLMNO
2Triggers
3Date08/01/2019SummaryBroken Down Check
4DataZTotal161206-45189TotalTotal161206-45189
5TypeFoodProductSalesForecastErrorAbs ErrorProductSupplierSalesForecastErrorAbs Error
6Check1172123-51511A2841-1313
7200001B2129-88
831783-66661C2353-3030
9400002B0000
10572072722C0000
11Summary 22E0000
12Total161206-451292F0000
13SupplierSalesForecastErrorAbs Error3A1783-6666
14A45124-79794A0000
15B2129-884B0000
16C955342424C0000
17D00005C7207272
18E0000
19F0000
20Data
21CheckDataSupplierTypeProductMetric01/01/201908/01/201915/01/201922/01/201929/01/201905/02/2019
221ZAFood1Sales93287674498
231ZAFood1Forecast14190458388
241XAFood1Sales165267255231
251XAFood1Forecast41466427633
261ZBFood1Sales502171312924
271ZBFood1Forecast192992735513
281XBFood1Sales105063563241
291XBFood1Forecast108648522554

<tbody>
</tbody>

<tbody>
</tbody>
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
I'm not following exactly what your desired end result is, but I think I see something.

When I enter your formula in a workbook, the issue that jumps out to me is Criteria_range4 ($C$21:$C$52), and criteria4 ($D13). I'm pretty sure $D13 should be $C13.
 
Upvote 0
I'm not following exactly what your desired end result is, but I think I see something.

When I enter your formula in a workbook, the issue that jumps out to me is Criteria_range4 ($C$21:$C$52), and criteria4 ($D13). I'm pretty sure $D13 should be $C13.


Thanks, yeh thats my fault i didn't repost the formula after adding the 1234, abcd for guides.
Not sure how to Edit OP but here it is:
=SUMIFS(INDEX($H$22:$M$53,0,MATCH($C$3,$H$21:$M$21,0)),$B$22:$B$53,$C$6,$C$22:$C$53,$C$4,$E$22:$E$53,$C$5,$D$22:$D$53,$D14,$G$22:$G$53,E$13)

Goal is to get the correct Sum Absolute error, so i can use it in all my summaries automatically, rather than causing loads of calculations and then adding them up.
Currently its giving the wrong answer: Sum of all errors and then absoluting this answer.
Correct answer: Calculate absolute error per line of data and then sum it per summary triggers given.

Leaning toward some sort of sumproduct but it needs several conditions and not excessively resource heavy.
 
Upvote 0
The formula is from D14, Summary 2 as summary 2 shows the issue data: H16 should equal O8+O17
Similar formula in Summary 1 but different columns.
 
Upvote 0
I used the formula in D14 and I get 28, but your data shows 45. I assume 45 is wrong?
 
Upvote 0
45 is correct there its H16 where the answer is wrong.
Ah Your missing product 3, because the data got cut off:
20ABCDEGHIJKLM
21CheckDataSupplierTypeProductMetric01/01/201908/01/201915/01/201922/01/201929/01/201905/02/2019
221ZAFood1Sales93287674498
231ZAFood1Forecast14190458388
241XAFood1Sales165267255231
251XAFood1Forecast41466427633
261ZBFood1Sales502171312924
271ZBFood1Forecast192992735513
281XBFood1Sales105063563241
291XBFood1Forecast108648522554
301ZCFood1Sales772311467799
311ZCFood1Forecast6535222451
321ZBPackaging2Sales85685395089
331ZBPackaging2Forecast875929719327
341ZCPackaging2Sales262099957447
351ZCPackaging2Forecast84238921777
361XCPackaging2Sales37956341628
371XCPackaging2Forecast397996923452
381ZEPackaging2Sales84306181499
391ZEPackaging2Forecast95653175328
401ZFPackaging2Sales3510092365054
411ZFPackaging2Forecast77976541434
421ZAFood3Sales71725817130
431ZAFood3Forecast408393798473
440ZAFood4Sales191276734111
450ZAFood4Forecast458543934890
460ZBFood4Sales72192242384
470ZBFood4Forecast4366074375
480ZCFood4Sales74631687876
490ZCFood4Forecast85222413727
501ZCFood5Sales51725880192
511ZCPackaging5Forecast62233841227
521XCPackaging5Sales244190488811
531XCPackaging5Forecast347512987745

<colgroup><col><col><col><col><col span="3"><col><col><col span="4"></colgroup><tbody>
</tbody>
 
Upvote 0
Aware i didn't explain this very well in the first place, if anyone has any ideas on how to accomplish this or if there is more questions let me know.
 
Upvote 0

Forum statistics

Threads
1,202,976
Messages
6,052,879
Members
444,606
Latest member
rwmhr

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top