Sep 21 2022 02:29 PM
I have a spreadsheet to keep track of shipments I sent out at my job.
The first table is called Orders and has the relevant columns Customer (name), Shipped (MM/DD/YYYY), Carrier (name), and Pcs (number of skids in the shipment). The second table is called CustomerShipCount and has the relevant columns Customer (name), [MM/YY] O (order count for the month for each customer), and [MM/YY] S (skid count for the month for each customer).
I'm able to get the order count done just fine; since each order gets its own row in the Orders table, the formula is:
=IF([@Customer]="","",COUNTIFS(Orders[Customer],[@Customer],Orders[Shipped],">=4/1/2022",Orders[Shipped],"<5/1/2022"))
However, the skid count is more difficult. I was hoping to use a SUMIFS formula to use all the necessary criteria to add the Pcs column together, like this:
=IF([@Customer]="","",SUMIFS(Orders[Pcs],Orders[Shipped],">=4/1/2022",Orders[Shipped],"<5/1/2022",Orders[Customer],"=[@Customer]"))
Instead, it always shows 0. So, I started troubleshooting by testing each set of criteria on its own to see what the issue was. Everything works fine except for the final set, Orders[Customer],"=[@Customer]".
Why is this not working?
I'm using Office 365 on Windows 10 Pro.
Sep 21 2022 02:58 PM
Why not use the same criteria as in your order count formula?
=IF([@Customer]="","",SUMIFS(Orders[Pcs],Orders[Shipped],">=4/1/2022",Orders[Shipped],"<5/1/2022",Orders[Customer],[@Customer]))
Or else take [@Customer] outside the quotes:
=IF([@Customer]="","",SUMIFS(Orders[Pcs],Orders[Shipped],">=4/1/2022",Orders[Shipped],"<5/1/2022",Orders[Customer],"="&[@Customer]))
but that seems unnecessary.
Sep 21 2022 03:02 PM
SolutionSep 22 2022 08:23 AM
Sep 22 2022 08:24 AM
Sep 21 2022 03:02 PM
Solution