#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Average problem

I need to get the average of a range of cells in an array that are dependant on another cell value. Example - I tried to use

=AVERAGEIFS(B2:B16,A2:A16,"=D2",A2:A16,"<=E2")

but the = isn't seeing the value in the cell D2 so it returns zero. I need to fill in the question marks!! thanks - Jim

depth count Low High Avg Count
1 20 1 5 ?
2 30 6 10 ?
3 40 11 15 ?
4 50
5 60
6 70
7 80
8 90
9 100
10 110
11 120
12 130
13 140
14 150
15 160

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 829
Default Average problem

wrote:
I tried to use
=AVERAGEIFS(B2:B16,A2:A16,"=D2",A2:A16,"<=E2")
but the = isn't seeing the value in the cell D2 so it returns zero.


That's not the problem. The problem is that the cell references D2 and E2
should not be within the quotes. Try:

=AVERAGEIFS(B2:B16,A2:A16,"=" & D2,A2:A16,"<=" & E2)

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
Zero in Average problem Gizmo Excel Discussion (Misc queries) 7 May 7th 08 03:53 AM
Problem with average Moperk23 Excel Discussion (Misc queries) 2 April 18th 08 03:18 PM
Average Problem Paul Excel Worksheet Functions 3 February 10th 07 04:44 PM
IF/THEN Average Problem raspywench Excel Worksheet Functions 16 November 11th 05 09:54 PM
AVERAGE problem malik641 Excel Worksheet Functions 3 July 21st 05 04:04 AM


All times are GMT +1. The time now is 11:54 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"