Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 2
Default formula to work from data column

Hello

I have the following equation =AVERAGEIF(SUPPORT!K9:K99, "0")

support!K9:K99 being number of daydiff.

I want to select the daydiff values based on another date column, that only has the current month and year. ie Aug(8) & 2012

Regards

Rob
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 829
Default formula to work from data column

"masterdineen" wrote:
I have the following equation =AVERAGEIF(SUPPORT!K9:K99, "0")
support!K9:K99 being number of daydiff.
I want to select the daydiff values based on another date column,
that only has the current month and year. ie Aug(8) & 2012


=AVERAGEIFS(support!K9:K99,support!K9:K99,"0",
support!D9:D99,"="&DATE(2012,8,1),support!D9:D99, "<="&DATE(2012,8,31))

And in case there might be no qualifying cells:

=IFERROR(AVERAGEIFS(support!K9:K99,support!K9:K99, "0",
support!D9:D99,"="&DATE(2012,8,1),support!D9:D99, "<="&DATE(2012,8,31)),0)
  #3   Report Post  
Senior Member
 
Posts: 663
Default

Quote:
Originally Posted by masterdineen View Post
Hello

I have the following equation =AVERAGEIF(SUPPORT!K9:K99, "0")

support!K9:K99 being number of daydiff.

I want to select the daydiff values based on another date column, that only has the current month and year. ie Aug(8) & 2012

Regards

Rob
Hi Rob,

If you're using Excel 2007 or later then you can use AVERAGEIFS() rather than AVERAGEIF() so you can include more criteria.

On the proviso the cell containing "Aug 2012" is a date formatted cell and actually reads as say 01/08/2012 behind the scenes you can use that as the start criteria and EOMONTH() against the same cell for the end criteria.

Hope that makes sense. Let me know if not and I'll see what I can do about writing the formula for you. You'll need to let me know which column the dates are in and which column holds the "Aug 2012" value.

S.
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
how to make a formula work for the whole column claudia Excel Discussion (Misc queries) 6 August 11th 08 06:48 PM
Can't get formula to work in inserted column Nancy[_2_] Excel Discussion (Misc queries) 4 November 11th 07 02:18 PM
formula : =(column A)+(column B)-(column C). Why won't it work? Kristin Drover Excel Discussion (Misc queries) 3 October 18th 06 08:48 PM
column to column conditional formatting won't work, need formula rrupp Excel Worksheet Functions 1 August 23rd 05 10:06 PM
formula won't work unless column of data is a hard number Ron Excel Worksheet Functions 2 May 17th 05 03:21 PM


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