Avg Times in MOD fx using selected rows

V

vldavis809

I have a question in regards to averaging times. I am using the "MOD"
fx due to having times that will go past 12mid (utilizing military
times). I am finding the difference between the two times in two
separate columns and returning a value in minutes in a third column.
This seems to be working correctly.

Now, with that, I would like to only choose certain rows with those
times that are represented by a constant factor and then average the
times from the above difference.

I have used a "SUMIF" fx and added to that a "+AVERAGE" fx but the
value is not the correct average.

Is there another way? Or am I doing it completely wrong?

PLEASE HELP!!!
 
D

Dav

If your sumif works correctly to return a total, use the same criteri
on a countif. then for the average =sumif function/countif function

Regards

Da
 
B

Bob Phillips

Try

=AVERAGE(IF(rng_to_test=criteria,rng_to_average))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 

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