Counting workdays between dates

A

Alexball

Hello,

I have created a calendar by dragging down dates (one whole year).
Using various formulas I have managed to distinguish if a day is a
workday “WD”, weekend “WE” or Holiday “HD”.
So next to each date “WD”, “WE” or “HD” is written.

Now I want to count WDs from date 12-06-2006 to 23-11-2006. I want to
count actual workdays for calculation. The dates are in column A the
day type in column B.

A -------B

Date1 WD
Date2 WE


I have tried various things but without success. Any suggestions?

Thanks a lot.

Alex
 
G

Guest

Check the help for the DCOUNT function. It comes with examples that may help
you in adapting it to your needs.

Hope this helps,
Miguel.
 
G

Guest

Hi Alexball,

here a way

=sumproduct(--(indirect("B"&match(date(2006,06,12),A:A)&":"&("b"&match(date(2006,11,23),A:A))="WD"))

you also could use
=sumproduct(--(indirect("B"&match(c1,A:A)&":"&("b"&match(c2,A:A))="WD"))

replacing the date function for c1 and c2

hth
regards from Brazil
Marcelo




"Alexball" escreveu:
 

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