Having trouble with dates

  • Thread starter Thread starter PerpetualJunior
  • Start date Start date
P

PerpetualJunior

I have worksheet with two date columns.... One a lower date, one a
higher date.
I need to work out the number of times a 1st of the month has occurred
in the time between the two dates.

Thanks for your help.

P.s if the description doesn’t make sense let me know, I’ll try to
describe it better.
 
How many times has a first of the month appeared if the dates are

1 Jan 2004 and 1 March 2004? 1?, 2? 3?
 
=MONTH(dateHigh)-MONTH(dateLow)

if nonzero, then the dates span the first of a month.

Jerry
 
Eureka!!! Got it…
=(MONTH(dateHigh)-MONTH(dateLow))+((YEARdateHigh)-YEAR(dateLow))*12)


(Jerry. Thanks, you provided the inspiration
 

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