Microsoft Office Forums


Reply
Thread Tools Display Modes

AVERAGEIFS: Reference a cell in a criteria range

 
 
Connie
Guest
Posts: n/a

 
      02-08-2010, 04:16 PM
I want to average a range if 2 criteria are met; the criteria includes
cell references:

C6 = 1/1/2009 (internal date)
E6 = 1/1/2010 (internal date)

Cells B11:BJ11 contain valid dates
Cells C11:AJ11 contain valid numbers

I want to average the values in C11:AJ11 that are >= C6 and <= E6.
Can I reference the cells in the criteria range?

I used averageifs(C11:AJ11,B11:BJ11,">=C6",B11:BJ11,"<=E6 ") which of
course did not work.

Thanks!
 
Reply With Quote
 
 
 
 
Fred Smith
Guest
Posts: n/a

 
      02-08-2010, 05:55 PM
Do it this way:
=averageifs(C11:AJ11,B11:BJ11,">="&C6,B11:BJ11,"<= "&E6)

Regards,
Fred

"Connie" <(E-Mail Removed)> wrote in message
news:606ab8bf-6508-413d-ace7-(E-Mail Removed)...
>I want to average a range if 2 criteria are met; the criteria includes
> cell references:
>
> C6 = 1/1/2009 (internal date)
> E6 = 1/1/2010 (internal date)
>
> Cells B11:BJ11 contain valid dates
> Cells C11:AJ11 contain valid numbers
>
> I want to average the values in C11:AJ11 that are >= C6 and <= E6.
> Can I reference the cells in the criteria range?
>
> I used averageifs(C11:AJ11,B11:BJ11,">=C6",B11:BJ11,"<=E6 ") which of
> course did not work.
>
> Thanks!


 
Reply With Quote
 
Connie
Guest
Posts: n/a

 
      02-08-2010, 08:30 PM
On Feb 8, 12:16*pm, Connie <connie.maldon...@softkeyinc.com> wrote:
> I want to average a range if 2 criteria are met; the criteria includes
> cell references:
>
> C6 = 1/1/2009 * *(internal date)
> E6 = 1/1/2010 * *(internal date)
>
> Cells B11:BJ11 contain valid dates
> Cells C11:AJ11 contain valid numbers
>
> I want to average the values in C11:AJ11 that are >= C6 and <= E6.
> Can I reference the cells in the criteria range?
>
> I used averageifs(C11:AJ11,B11:BJ11,">=C6",B11:BJ11,"<=E6 ") *which of
> course did not work.
>
> Thanks!


Thanks. That was a great help. I was able to get the formula to
work
using the following (I noticed there was an error in the formula in
my
original message):

AVERAGEIFS($C11:$AI11,$C$10:$AI$10,">="&$C$6,$C$10 :$AI$10,"<="&$E$6)


 
Reply With Quote
 
Fred Smith
Guest
Posts: n/a

 
      02-09-2010, 12:30 AM
Glad to help. Thanks for the feedback.

Fred

"Connie" <(E-Mail Removed)> wrote in message
news:0adbd02a-cf88-4342-bed5-(E-Mail Removed)...
On Feb 8, 12:16 pm, Connie <connie.maldon...@softkeyinc.com> wrote:
> I want to average a range if 2 criteria are met; the criteria includes
> cell references:
>
> C6 = 1/1/2009 (internal date)
> E6 = 1/1/2010 (internal date)
>
> Cells B11:BJ11 contain valid dates
> Cells C11:AJ11 contain valid numbers
>
> I want to average the values in C11:AJ11 that are >= C6 and <= E6.
> Can I reference the cells in the criteria range?
>
> I used averageifs(C11:AJ11,B11:BJ11,">=C6",B11:BJ11,"<=E6 ") which of
> course did not work.
>
> Thanks!


Thanks. That was a great help. I was able to get the formula to
work
using the following (I noticed there was an error in the formula in
my
original message):

AVERAGEIFS($C11:$AI11,$C$10:$AI$10,">="&$C$6,$C$10 :$AI$10,"<="&$E$6)


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Countif using a cell reference as range J.W. Aldridge Excel Newsgroup 6 08-07-2008 10:10 PM
Cell Value as Named Range Reference stephen.h.dow@gmail.com Excel Newsgroup 1 07-28-2008 05:58 PM
Using cell value in range reference Sandy Excel Newsgroup 6 02-19-2008 06:59 AM
use cell reference for named range elf21 Excel Newsgroup 5 02-20-2006 12:32 AM
More than 1 cell reference/range in formula 0-0 Wai Wai ^-^ Excel Newsgroup 2 09-07-2005 08:32 AM



All times are GMT. The time now is 02:14 PM.