ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   SumIf Question (https://www.excelbanter.com/excel-worksheet-functions/190520-sumif-question.html)

Tom

SumIf Question
 
I have a spreadsheet we use as a Call Report. The report includes a
calendar year. I need to add up some data based on quarters of the year.

Column A is the Date Column. If the date in col A is between Jan 1 and Mar
31, I need to add up the number of times column B has an Alpha entry like
the letter H.

Is that possible?

TIA
--
Tom


Lars-Åke Aspelin[_2_]

SumIf Question
 
On Mon, 09 Jun 2008 10:54:18 -0400, Tom wrote:

I have a spreadsheet we use as a Call Report. The report includes a
calendar year. I need to add up some data based on quarters of the year.

Column A is the Date Column. If the date in col A is between Jan 1 and Mar
31, I need to add up the number of times column B has an Alpha entry like
the letter H.

Is that possible?

TIA



Assuming that your cata in column A is data values and not text you
can try this function to get the number of hits:

=SUMPRODUCT((MONTH(A1:A1000)=1)*(MONTH(A1:A1000)< =3)*(B1:B1000="H"))

Change the 1000 to cover the rows with data in your case

Hope this helps. / Lars-Åke

Lars-Åke Aspelin[_2_]

SumIf Question
 
On Mon, 09 Jun 2008 16:05:02 GMT, Lars-Åke Aspelin
wrote:

On Mon, 09 Jun 2008 10:54:18 -0400, Tom wrote:

I have a spreadsheet we use as a Call Report. The report includes a
calendar year. I need to add up some data based on quarters of the year.

Column A is the Date Column. If the date in col A is between Jan 1 and Mar
31, I need to add up the number of times column B has an Alpha entry like
the letter H.

Is that possible?

TIA



Assuming that your cata in column A is data values and not text you
can try this function to get the number of hits:

=SUMPRODUCT((MONTH(A1:A1000)=1)*(MONTH(A1:A1000) <=3)*(B1:B1000="H"))

Change the 1000 to cover the rows with data in your case

Hope this helps. / Lars-Åke



cata - data
is - are


Tom

SumIf Question
 
Yes thanks! This formula did the trick! Appreciate your reply!

Tom


On Mon, 09 Jun 2008 16:05:02 GMT, Lars-Åke Aspelin
wrote:

On Mon, 09 Jun 2008 10:54:18 -0400, Tom wrote:

I have a spreadsheet we use as a Call Report. The report includes a
calendar year. I need to add up some data based on quarters of the year.

Column A is the Date Column. If the date in col A is between Jan 1 and Mar
31, I need to add up the number of times column B has an Alpha entry like
the letter H.

Is that possible?

TIA



Assuming that your cata in column A is data values and not text you
can try this function to get the number of hits:

=SUMPRODUCT((MONTH(A1:A1000)=1)*(MONTH(A1:A1000) <=3)*(B1:B1000="H"))

Change the 1000 to cover the rows with data in your case

Hope this helps. / Lars-Åke

--
Tom



All times are GMT +1. The time now is 11:08 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com