LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Conditional AVERAGEIFS

Try this array formula** :

List the sites in a range of cells:

H1 = XH
H2 = XI
H3 = XJ
H4 = XK

=AVERAGE(IF((A2:A100=1)*(ISNUMBER(MATCH(B2:B100,H1 :H4,0))),C2:C100))

You must be using Excel 2007. I would not use entire columns as range
references unless you absolutely must.

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"Chris" wrote in message
...
I have three columns of data, one is years (e.g., 1, 2, 3, 4, etc), one is
sites (e.g., XA, XB, XC, XD, etc), and the other is the values I would
like
to average (e.g., 1.2, 1.6, 1.5, 2.1, etc). I have attempted to use
criteria
with AVERAGEIFS to average only those values in year 1 at sites XH, XI,
XJ,
XK. Here is the function I am using:
=AVERAGEIFS(Sheet3!H:H,Sheet3!C:C,"=1",Sheet3!D:D, "XH",Sheet3!D:D,"XI",Sheet3!D:D,"XJ",Sheet3!D:D,"X K")

However, it returns the #DIV/0! error. What is the appropriate function
for
average only the data in year 1 at sites XH, XI, XJ, XK?

Thank you.



 
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
Averageifs & Countifs Stephanie Excel Worksheet Functions 3 June 13th 07 12:15 PM
Looking for conditional averaging or "Averageifs" function for threee11 Excel Worksheet Functions 0 November 30th 06 05:14 PM
Looking for conditional averaging or "Averageifs" function for threee11 Excel Worksheet Functions 0 November 30th 06 05:10 PM
Looking for conditional averaging or "Averageifs" function for '02 Dave F Excel Worksheet Functions 0 November 30th 06 04:59 PM
Looking for conditional averaging or "Averageifs" function for '02 threee11 Excel Worksheet Functions 0 November 30th 06 04:55 PM


All times are GMT +1. The time now is 04:33 PM.

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

About Us

"It's about Microsoft Excel"