Site icon Westmorr Consulting

Microsoft Excel – Sales Order Invoice Totals by Month – SUMIFS and EOMONTH

We have a common scenario as the basis of this blog post: use Microsoft Excel to calculate sales order and invoice totals for a specific month. Though, for a recent requirement, I had a data set and a few requirements that required me to get a bit tricky with the SUMIFS and EOMONTH functions. Hopefully this quick post helps unblock you if you’re managing a similar solution.

Sales Order Invoice

Again, I’m sure this is a common scenario, but what made the situation “tricky” for me is a combination of:

Here’s a sample spreadsheet based on the real data, and a demonstration of how it works:

Using SUMIFS and EOMONTH

Quick disclaimer before I show you this formula: in this sample, the final criteria could have been “<“&TODAY(), but for the real spreadsheet and requirements it actually needed to be “<“&EOMONTH(). So I figured I’d use the real/production formula.

Okay, so what is the formula? Here:

=SUMIFS(SalesRecords[FinalPrice],SalesRecords[CompanyName],C3,SalesRecords[OrderDate],">"&EOMONTH(B3,-1),SalesRecords[OrderDate],"<="&EOMONTH(B3,0))

 

Hope that helps – see you in the next post.

 

Exit mobile version