View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
frequency function with decimals[_2_] frequency function with decimals[_2_] is offline
external usenet poster
 
Posts: 1
Default formula for adding and averaging

I have 5 different columns entitled Sex, Age, Bed Time, Wake Up, and Total
Sleep. In the Sex column (column E) I have entered either "m" or "f" for male
or female. Four columns to the right of this (column I) is the column called
"Total Sleep." My question is I want to take the average of the cells in
Column I ("total sleep") only if in Column E ("Sex") there is an "m" present.
Can you tell me the formula to do this?