View Single Post
  #5   Report Post  
Nick
 
Posts: n/a
Default

WOW, three great answers with three different approachs and in such a short
time.

Thank you ever so much,
Nick


"Max" wrote:

Try, array-entered, i.e. press CTRL+SHIFT+ENTER:

For weekdays:
=AVERAGE(IF(WEEKDAY(A1:A8,2)={1,2,3,4,5},B1:B8))

For weekends:
=AVERAGE(IF(WEEKDAY(A1:A8,2)={6,7},B1:B8))

Adapt the ranges to suit ..
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"Nick" wrote in message
...
I'm trying to average a column of numbers based on the day of the week.
Col A has the sequential days of the month, Col B has a number for each

day.
I want to average all the numbers in Col B that are based on a weekday or
weekend.
--
Thanks,
Nick