# 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

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.

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

Check out using a PivotTable

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1