How to get the SUM of a Multi-Criteria Filter to spill

Ngamia

New Member
Joined
Apr 26, 2021
Messages
20
Office Version
  1. 2021
Platform
  1. Windows
  2. MacOS
Hi All,

I am automating some spreadsheets and was looking for a way to get the results in F2:F4 to update dynamically based on the contents in the table. The sales table will change on an ongoing basis and as this feeds into another sheet, forgetting to update the total sales column leads to a cascade of issues.
Alternative approaches are welcome.

Excel Issue.xlsx
ABCDEFG
1SALES DATEVENDORQUANTITYVENDORTOTAL SALES
210/26/22K500011000K500011400#N/A
310/26/22K500021000K500021200
410/26/22K50003600K500031300
510/26/22K50001700
610/27/22K50001300DATE
710/27/22K5000270010/27/22
810/27/22K50003700
910/27/22K500011100
1010/27/22K50002500
1110/27/22K50003400
1210/27/22K50003200
Sheet1
Cell Formulas
RangeFormula
E2:E4E2=UNIQUE(SALES[VENDOR])
G2G2=SUM(FILTER(SALES[QUANTITY],(E2#=SALES[VENDOR])*(SALES[SALES DATE]=DATE)))
F2:F4F2=SUM(FILTER(SALES[QUANTITY],(E2=SALES[VENDOR])*(SALES[SALES DATE]=DATE)))
Dynamic array formulas.
Named Ranges
NameRefers ToCells
DATE=Sheet1!$E$7G2, F2:F4
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
does it not already update as you are using a table reference , and when new data appears in the table the formula should update - providing the date changes
or is it the date field that needs to update

how is the date E7 created ?

although using that field mayget splill errors if you get more codes
can that be moved to H1 ?
 
Upvote 0
How about
Excel Formula:
=SUMIFS(Sales[QUANTITY],Sales[VENDOR],E2#,Sales[SALES DATE],E7)
 
Upvote 0
Solution
does it not already update as you are using a table reference , and when new data appears in the table the formula should update - providing the date changes
or is it the date field that needs to update

how is the date E7 created ?

although using that field mayget splill errors if you get more codes
can that be moved to H1 ?
The date in E7 is read from different sheet.
 
Upvote 0
ok, i see Fluff has given an alternative formula

The date in E7 is read from different sheet.

unless its changed to a different location - unique() will spill if 5 codes found
 
Upvote 0
Glad we could help & thansk for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,064
Messages
6,122,941
Members
449,094
Latest member
teemeren

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