Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
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
 
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,872
Default Formula result not displaying correctly in cell

Hi,

Am Fri, 24 Oct 2014 16:07:54 +0100 schrieb JWEV:

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


this formula is an array formula to insert with CTRL+Shift+Enter
Then you get the correct result


Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional
  #3   Report Post  
Junior Member
 
Posts: 2
Default

Thanks Claus, sorted the problem out 100%. You saved me a lot of frustration. Just don't quite understand why you have to use Ctrl+Shift+Enter for array formulas?

Quote:
Originally Posted by Claus Busch View Post
Hi,

Am Fri, 24 Oct 2014 16:07:54 +0100 schrieb JWEV:

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


this formula is an array formula to insert with CTRL+Shift+Enter
Then you get the correct result


Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula result not displaying correctly Ken G. Excel Discussion (Misc queries) 2 September 9th 08 05:30 AM
formula result is not displaying olga Excel Discussion (Misc queries) 4 January 10th 07 01:08 AM
Formula result not displaying in cell [email protected] Excel Worksheet Functions 3 July 13th 06 09:30 PM
Vlookup is displaying the formula in its cell not the result?? Craig H Excel Worksheet Functions 3 May 23rd 06 11:11 AM
Formula Result isn't entered correctly in worksheet Formula Results Show Incorrectly New Users to Excel 1 October 22nd 05 10:29 PM


All times are GMT +1. The time now is 12:58 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"