Help!!!

lekmx

New Member
Joined
Jun 6, 2017
Messages
9
I need a formula that count how many Decembers in a range:

eg.:

start 08/18/2010
end 05/07/2015
= 5

start 08/18/2010
end 11/12/2010
= 0


start 08/18/2010
end 09/18/2015
= 5

Thanks
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Does it have to be a complete month (all 31 days), or should it include partial months?

For example, what if you had:
start 01/01/2015
end 12/11/2017
What answer would you be expecting?
 
Upvote 0
Good question buddy, so if you have any day of December the fórmula must count.

Eg.:

Start 11/10/2010
End 12/01/2010
= 1

Start 12/10/2010
End 01/02/2011
= 1

Thanks
 
Upvote 0
If start date is in cell A1, and end date is in cell B1, try this:
Code:
=YEAR(B1)-YEAR(A1)+IF(MONTH(B1)=12,1,0)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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