Sm Product a Calendar Month Range?

  • Thread starter Thread starter John
  • Start date Start date
J

John

I have a list of days for the year 2005 in Col A. In Col B opposite each day
in 2005 (Col A) I have the location I have visited. Is it possible to add up
the number of times I was say in London, for the month of January, without
having to enter a specific sumproduct range in the formula?

Thanks
 
No, you need to enter a range, you might want to enter a range that will
cater to future needs (making it larger than at present necessary)

=SUMPRODUCT(--(MONTH(Range1)=1),--(ISNUMBER(Range1)),--(Range2="London"))

Regards,

Peo Sjoblom
 
assuming valid dates in A to count
=sumproduct((month(rngA)=1)*1)
 
Note that it will count blank cells as January


Regards,

Peo Sjoblom
 

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