Specified dates within a date range

W

Wordless Poet

I'm working on a macro that should count certain dates between two dates
(startdate and enddate are in separate cells). I need it to count sundays + a
few dates I've counted and declared in VBA as Dates. Anyone got any pointers
how to go on with it?
 
J

JMay

Where cell C5 is your Start Date and C8 is your End Date use:

=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(C5&":"&C8)),2)=7))

For starters !!

HTH

Jim May
 

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

Top