View Single Post
  #1   Report Post  
JWEV JWEV is offline
Junior Member
 
Posts: 2
Default Formula result not displaying correctly in cell

Hi

I am having a problem with excel not displaying a calculated result correctly in the cell. I am pretty sure I have the formula correct but excel is giving an incorrect answer. I am calculating the average of range of data greater than a certain value and less than another.

When I check the formula in the formula assistant it gives the correct result but displays a zero/incorrect result in the spreadsheet. See the example below.

A B C D E
1 5 0 5 12
2 6 5 10 0
3 7 10 15 0
4 8
5 9
6 10
7 11
8 12
9 13
10 14
11 15
12 16
13 17
14 18
15 19

The formula is =AVERAGE(IF(($A$1:$A$15$C1)*($A$1:$A$15<=$D1),$B$ 1:$B$15))

See the attached snap shot of the formula assistant. The correct result is 7 but it displaying 12 in the spreadsheet.

Any ideas, or have I made a mistake somewhere?
Attached Images