{=AVERAGE(AND(B6:B15>=B3,B6:B15<B4),C6:C15)}

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




11/01/06 10.0
11/02/06 10.0
11/03/06 10.0
11/04/06 10.0
11/05/06 10.0
11/06/06 10.0
11/07/06 10.0
11/08/06 10.0
11/09/06 10.0
11/10/06 10.0

the above range is placed in B6:B15

cell B3 contains 11/01/06
cell B4 contains 11/05/06

doing a simple average(C6:C9) produces 10
placing a conditional average if cells B6:B15 are between 11/01/06 and
11/05/06 , average corresponding cells in C6:C15 as in expression

{=AVERAGE(AND(B6:B15>=B3,B6:B15<B4),C6:C15)} produces an incorrect
result = 9.09

why is that ?

cheers,
deano

.



Relevant Pages

  • RE: Display an Alert popup.
    ... but placing the code in the right place will be ... You have to replace the "$D$1" bit for the cell that will trigger the ... > At present I have a data validation list in Excel. ... I can make a popup ...
    (microsoft.public.excel.programming)
  • Moving row with keyboard
    ... With Word 97 I could move switch rows 1 and 2 in a table by placing ... the cursor in any cell of row 2 and pressing alt-shift-up. ...
    (microsoft.public.word.tables)
  • Re: Formating tables in frames
    ... and placing a table in each cell. ... paste standard blocks into differnt forms. ...
    (microsoft.public.word.tables)
  • Re: Excel Formula
    ... David Biddulph ... to A13,000 in my excel 2007 file, I am placing the formula in cell B1. ...
    (microsoft.public.excel.misc)
  • Re: Unique/Distinct Dropdown List
    ... It will sort the unique list each time, placing the blank cell at the end ... It's an event code that builds a unique list from a master list, ... Private Sub Worksheet_Change ...
    (microsoft.public.excel.worksheet.functions)