Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 106
Default Reference a cell in criteria range

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!


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,533
Default Reference a cell in criteria range

Hi Connie

You are very close:

=averageifs(C11:AJ11,B11:BJ11,"=" & C6,B11:BJ11,"<=" & E6)

Regards,
Per

"Connie" skrev i meddelelsen
...
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!


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 106
Default Reference a cell in criteria range

On Feb 8, 2:44*pm, "Per Jessen" wrote:
Hi Connie

You are very close:

=averageifs(C11:AJ11,B11:BJ11,"=" & C6,B11:BJ11,"<=" & E6)

Regards,
Per

"Connie" skrev i ...



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!- Hide quoted text -


- Show quoted text -


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
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
Countif Criteria Reference Cell StephonM Excel Worksheet Functions 3 June 25th 09 03:57 AM
I can't reference a cell as the criteria in the AVERAGEIFS functio Evan Excel Worksheet Functions 2 December 9th 08 06:46 PM
To criteria with Reference from Cell PERANISH Excel Worksheet Functions 3 May 28th 08 09:56 AM
Reference cell in one TAB from another using two criteria Jeff Excel Worksheet Functions 4 August 8th 07 10:27 AM
SUMPRODUCT Criteria Via Cell Reference?? John V Excel Worksheet Functions 8 April 12th 06 07:55 PM


All times are GMT +1. The time now is 07:09 AM.

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"