Counting number of days

D

DKunz

I have a table of 4200 records which contain a date field. Each record
represents a transaction. I would like to know how to calculate the
number of days so I can calulate the average number of tranactions per
day.

Thanks,

Dave
 
M

Myrna Larson

If you mean the range, i.e. the earliest date to the latest date, Frank's
formula will do that, but you need to add 1 if the range is inclusive on both
ends, i.e. =MAX(A1:A4200)-MIN(A1:A4200)+1

Note that calculation includes weekend days. I'm assuming if this is a
business which doesn't operate 7 days per week, you would want to exclude
weekends. A formula to do that might be

=NETWORKDAY(MIN(A1:A4200),MAX(A1:A4200)

which will give you the number of weekdays.

And what about weekdays where there were no transactions. Is that possible? If
so, do you want to include them (sales = 0) for that day? Or should they be
excluded?

I wonder if a Pivot Table might be a better solution. If you put the dates in
a column field, and count of dates in the data field, you could then put a
formula below the tables that averages the data field. This approach would not
include dates with no sales unless you specifically added those dates to the
list.
 

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