need a formula to get the total $ amount

F

FPJ

Hi,

I have a worksheet that look like this:

A B C
1/2/2006 Vendor $150
1/5/2006 Tooling $210
1/28/2006 Vendor $60
2/12/2006 Vendor $190
2/22/2006 Tooling $200
3/14/2006 Vendor $153

I'd like to get the total $ cost of vendor in the month of Jan.
Please help on how to write the formula.

Thanks in advance.
 
D

driller

it looks like something like this

considering month of Jan.
=SUMPRODUCT((MONTH(A1:A6)=1)*(B1:B6="Vendor"),C1:C6).

change MONTH(A1:A6)=1, to suit your filter months from 1 to 12..

considering month of Jan. with specific year 2006
=SUMPRODUCT((year(A1:A6)=2006)*(MONTH(A1:A6)=1)*(B1:B6="Vendor"),C1:C6).
 
F

FPJ

Thanks everybody for your reply. All the formula worked and I used Don's 'cuz
it's
the formula that applies particularly to my problem. Again, thanks all.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top