Calculating off two calculated values

G

Guest

I have a textbox I calculate days it takes to process an action with the
following:
IIf( Is Null, DateDiff("d", [a], Date()),
DateDiff("d", [a], )))

I now would like to calculate average time it takes to process an action.

I have another textbox that counts total records:
=Count(*)

How do I total the days from the first formula and divide that total by the
second formula?
 
G

Guest

Try
=Sum(DateDiff("d", [a], Nz(,Date())))/Count(*)
Or
=Avg(DateDiff("d", [a], Nz(,Date())))
 
G

Guest

Like a charm! THANK YOU!

Duane Hookom said:
Try
=Sum(DateDiff("d", [a], Nz(,Date())))/Count(*)
Or
=Avg(DateDiff("d", [a], Nz(,Date())))

--
Duane Hookom
Microsoft Access MVP


franklinbukoski said:
I have a textbox I calculate days it takes to process an action with the
following:
IIf( Is Null, DateDiff("d", [a], Date()),
DateDiff("d", [a], )))

I now would like to calculate average time it takes to process an action.

I have another textbox that counts total records:
=Count(*)

How do I total the days from the first formula and divide that total by the
second formula?
 

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

Similar Threads


Top