Forum Discussion
Stefan Holmes
Feb 20, 2018Copper Contributor
A neater way to summarise daily sales data?
I've created a 'monthly sales' workbook, listing individual line items from orders. Data comes straight from a Magento 'order export' function.
I'm taking each line item and summing onto a sepa...
- Feb 20, 2018
Hi Stefan,
Could be
=SUMPRODUCT((INT(tblData[Date & Time])=tblRegularCash[@Date])*(tblData[Charged £]))
That's regular, not array formula
SergeiBaklan
Feb 20, 2018MVP
Hi Stefan,
Could be
=SUMPRODUCT((INT(tblData[Date & Time])=tblRegularCash[@Date])*(tblData[Charged £]))
That's regular, not array formula
- Stefan HolmesFeb 21, 2018Copper Contributor
I've now replaced each array formula with the equivalent =SUMPRODUCT() as well as replacing the DAY(),MONTH(),YEAR() triple with an INT(<date>).
Much tidier and simpler to understand from first glance. Again, thankyou.- SergeiBaklanFeb 21, 2018MVP
Hi Stefan,
You are welcome. Usually I also prefer regular formula if alternative to array one exists.
- Stefan HolmesFeb 20, 2018Copper ContributorThankyou, Sergei. That's a much neater solution. Appreciate your help.
I'm not a huge fan of working with array formula, but it has solved a number of situations for me over the years.
I shall spend some time looking at ways of replacing them with regular functions. Thanks again.