Count if a range of cell begins with a month

mrkris1982

Active Member
Joined
Apr 16, 2009
Messages
407
I have a date column formatted in mm/dd/yyyy
I have a chart that I want to automatically update as I enter data into the spreadsheet. Here's what I'm looking for help on:

[TABLE="width: 500"]
<tbody>[TR]
[TD]Month[/TD]
[TD][TABLE="width: 224"]
<tbody>[TR]
[TD="width: 224"]Jobs[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]Income[/TD]
[/TR]
[TR]
[TD]August[/TD]
[TD]count if column A begins with 8[/TD]
[TD][TABLE="width: 305"]
<tbody>[TR]
[TD="width: 305"]SUM column J if adjacent column A begins with 8[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]September[/TD]
[TD]count if column A begins with 9[/TD]
[TD][TABLE="width: 305"]
<tbody>[TR]
[TD="width: 305"]SUM column J if adjacent column A begins with 9[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]October[/TD]
[TD]count if column A begins with 10[/TD]
[TD][TABLE="width: 305"]
<tbody>[TR]
[TD="width: 305"]SUM column J if adjacent column A begins with 10[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]November[/TD]
[TD]count if column A begins with 11[/TD]
[TD]SUM column J if adjacent column A begins with 11[/TD]
[/TR]
</tbody>[/TABLE]

What formulas can I use to accomplish this?

Thanks in advance
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
does it need to have the month number
otherwise use the date
=COUNTIFS(A:A,">="&B2,A:A,"<"&EDATE(B2,1))

in B2 - JOBS
put the month
1/8/17

then in B3
1/9/17

etc


 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,287
Members
452,631
Latest member
a_potato

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top