Date formula for month count within a specific range

Gevans0666

New Member
Joined
Jan 19, 2019
Messages
1
I have a contract start date and end date... dates are all ranges from 2018/19 and earlier to 2021 and longer

I have 7 columns for:

1 Start Date (provided)
2 End Date (provided)
3 total month count =IF(G2="",0,DATEDIF(F2,G2,"m"))+1
4 Previous
5 2019
6 2020
7 Balance

I need 4 formulas that filter the correct month count under each column. Having no luck at all!
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

Excel 2010
FGHIJKL
1StartEndMonthsPrevious201920202021
231-May-1731-Dec-20431912120
31-Jan-181-Jan-21361212120
41-Jan-1931-Dec-21360121212
5c
Cell Formulas
RangeFormula
H2=IF(G2="",0,DATEDIF(F2-1,G2,"m"))
I2=DATEDIF(F2,MIN($J$1,G2),"m")
J2=MIN(12,$H2-SUM($I2:I2))
K2=MIN(12,$H2-SUM($I2:J2))
L2=MIN(12,$H2-SUM($I2:K2))


2019 or 2019-2021 are dates like 1-1-2019 formatted as yyy
 
Upvote 0

Forum statistics

Threads
1,214,784
Messages
6,121,538
Members
449,038
Latest member
Guest1337

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