COUNTIF + Month

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have date ranges in column B (B3:B503)
If the month in the date ranges is a specific month then i need to count up
the data placed in Column G (G3:G503).

=COUNTIF('[Name.xls]Mid-Term'!$G$3:$G$503,'[Name.xls]Mid-Term'!$B$3:$B$503)

Now i'm not very familiar with many of the functions within excel, so can
anyone suggest how to complete the above formula.

Thanks,

Phendrena
 
Hi

I am assuming that you mean you wish to Sum the values in Colum G

If so, then try
=SUMPRODUCT(--(MONTH('[Name.xls]Mid-Term'!$B$3:$B$503)=1),
'[Name.xls]Mid-Term'!$G$3:$G$503)

where the 1 in the formula represents January. Change for other months.
Alternatively put the month number in a cell, and insert that cell reference
into the formula in place of the number 1.
 
thanks for the response, the values in column G are also text values so i
just need it to count as long as there is text in there.

Roger Govier said:
Hi

I am assuming that you mean you wish to Sum the values in Colum G

If so, then try
=SUMPRODUCT(--(MONTH('[Name.xls]Mid-Term'!$B$3:$B$503)=1),
'[Name.xls]Mid-Term'!$G$3:$G$503)

where the 1 in the formula represents January. Change for other months.
Alternatively put the month number in a cell, and insert that cell reference
into the formula in place of the number 1.
--
Regards
Roger Govier



Phendrena said:
Hi,

I have date ranges in column B (B3:B503)
If the month in the date ranges is a specific month then i need to count
up
the data placed in Column G (G3:G503).

=COUNTIF('[Name.xls]Mid-Term'!$G$3:$G$503,'[Name.xls]Mid-Term'!$B$3:$B$503)

Now i'm not very familiar with many of the functions within excel, so can
anyone suggest how to complete the above formula.

Thanks,

Phendrena
 
Hi

Then use
=SUMPRODUCT(--(MONTH('[Name.xls]Mid-Term'!$B$3:$B$503)=1),
--('[Name.xls]Mid-Term'!$G$3:$G$503<>""))


--
Regards
Roger Govier



Phendrena said:
thanks for the response, the values in column G are also text values so i
just need it to count as long as there is text in there.

Roger Govier said:
Hi

I am assuming that you mean you wish to Sum the values in Colum G

If so, then try
=SUMPRODUCT(--(MONTH('[Name.xls]Mid-Term'!$B$3:$B$503)=1),
'[Name.xls]Mid-Term'!$G$3:$G$503)

where the 1 in the formula represents January. Change for other months.
Alternatively put the month number in a cell, and insert that cell
reference
into the formula in place of the number 1.
--
Regards
Roger Govier



Phendrena said:
Hi,

I have date ranges in column B (B3:B503)
If the month in the date ranges is a specific month then i need to
count
up
the data placed in Column G (G3:G503).

=COUNTIF('[Name.xls]Mid-Term'!$G$3:$G$503,'[Name.xls]Mid-Term'!$B$3:$B$503)

Now i'm not very familiar with many of the functions within excel, so
can
anyone suggest how to complete the above formula.

Thanks,

Phendrena
 
Thank you for the reply,

That formula has worked nicely. Excellent!!!



Roger Govier said:
Hi

Then use
=SUMPRODUCT(--(MONTH('[Name.xls]Mid-Term'!$B$3:$B$503)=1),
--('[Name.xls]Mid-Term'!$G$3:$G$503<>""))


--
Regards
Roger Govier



Phendrena said:
thanks for the response, the values in column G are also text values so i
just need it to count as long as there is text in there.

Roger Govier said:
Hi

I am assuming that you mean you wish to Sum the values in Colum G

If so, then try
=SUMPRODUCT(--(MONTH('[Name.xls]Mid-Term'!$B$3:$B$503)=1),
'[Name.xls]Mid-Term'!$G$3:$G$503)

where the 1 in the formula represents January. Change for other months.
Alternatively put the month number in a cell, and insert that cell
reference
into the formula in place of the number 1.
--
Regards
Roger Govier



Hi,

I have date ranges in column B (B3:B503)
If the month in the date ranges is a specific month then i need to
count
up
the data placed in Column G (G3:G503).

=COUNTIF('[Name.xls]Mid-Term'!$G$3:$G$503,'[Name.xls]Mid-Term'!$B$3:$B$503)

Now i'm not very familiar with many of the functions within excel, so
can
anyone suggest how to complete the above formula.

Thanks,

Phendrena
 

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

Back
Top