# Excel Formula to calculate all costs within a particular month for a particular category

1. ## Excel Formula to calculate all costs within a particular month for a particular category

Hi Guys,

I'm hoping you can help me with the attached spreadsheet.

Excel.xlsx

I have two worksheets where I would like total invoice costs entered into the 'Input' worksheet to be displayed in the 'Summary' worksheet for the relevant category and month.

e.g. For the 'Web' category for the month of July, the summary worksheet cell B5 should display the total cost (excl. GST) of all invoices entered into the input worksheet that are for the month of July and are categorised as 'Web'.

Can someone help me to produce this formula?

Thanks!

Jami  Register To Reply

2. ## Re: Excel Formula to calculate all costs within a particular month for a particular catego

hi Jami, welcome to the forum. you can place this formula in B2 of the Summary worksheet:
=SUMPRODUCT((Input!\$B\$2:\$B\$63=Summary!B\$1)*(Input!\$D\$2:\$D\$63=Summary!\$A2)*(Input!\$G\$2:\$G\$63))

do note that the "ADVERTISING" in the Summary worksheet does not have a space behind but your Input worksheet has.  Register To Reply

3. ## Re: Excel Formula to calculate all costs within a particular month for a particular catego

Check out using a PivotTable  Register To Reply