returning value if month is January

J

jermsalerms

I have a list of data (1000 rows).
Each row has several columns containing information on a give
transaction.

column F contains the date of the transaction (mm/dd/yyyy format.)
column M contains a dollar amount.

I have two formulas that I need to make that i am not sure how t
handle.

1. I want formula that will count all the cells in column F that have
month of January and give me a total for the number of rows that contai
this. I tried: =COUNTIF(F2:F1000,MONTH(1)) but it did not work.

2. I want a formula that will add up the sum ($) of all the cells i
column M if the month in column F is January
 
D

Die_Another_Day

Try these array formulas, I'm sure that SumProduct could do it but I
suck at using SumProduct.

1. =SUM(IF(MONTH(F2:F1000)=1,1,0))
2. =SUM(IF(MONTH(F2:F1000)=1,M2:1000,0))

Make sure to press Ctrl+Shift+Enter after entering the formula into the
cell

Charles
 
D

Die_Another_Day

Try these array formulas, I'm sure that SumProduct could do it but I
suck at using SumProduct.

1. =SUM(IF(MONTH(F2:F1000)=1,1,0))
2. =SUM(IF(MONTH(F2:F1000)=1,M2:1000,0))

Make sure to press Ctrl+Shift+Enter after entering the formula into the
cell

Charles
 
J

jermsalerms

the first one only returns a "1" even though there are about twenty wit
this month.

The 2nd one says there is an error in the formula.

Thanks for the suggestion. Does anyone else have an idea.


PS - I forgot to say that month must be Jan. and year must be 2006 i
both formulas. I dont want to count transactions from Jan of 2005 o
2004 etc
 
J

jermsalerms

the first one only returns a "1" even though there are about twenty wit
this month.

The 2nd one says there is an error in the formula.

Thanks for the suggestion. Does anyone else have an idea.


PS - I forgot to say that month must be Jan. and year must be 2006 i
both formulas. I dont want to count transactions from Jan of 2005 o
2004 etc
 

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