Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Adding Date Range to Averageif statement

I am using the following statement to calculate an average value for a
specific status of a data set. I need to add an additional expression to
calculate by month and by quarter in addition to the status. Even thought I
am using Excell 2007, the calculation has to work on Excel 2003.

{=AVERAGE(IF('MRR Log'!O8:O1769="Open",'MRR Log'!Q8:Q1769))}

Thanks in advance for any help.
--
Larry
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Adding Date Range to Averageif statement

You can do that like this:

=AVERAGE(IF(('MRR Log'!O8:O1769="Open")*(TEXT('MRR Log'!D8:D1769,"mmm-
yy")="Jun-08"),'MRR Log'!Q8:Q1769))

assuming your dates are in column D. This will check for June 2008,
but hopefully you can see how to change it for different months.

Remember to use CSE to commit the formula after editting it.

Hope this helps.

Pete

On Oct 3, 2:29*pm, lwilliams
wrote:
I am using the following statement to calculate an average value for a
specific status of a data set. *I need to add an additional expression to
calculate by month and by quarter in addition to the status. *Even thought I
am using Excell 2007, the calculation has to work on Excel 2003.

{=AVERAGE(IF('MRR Log'!O8:O1769="Open",'MRR Log'!Q8:Q1769))}

Thanks in advance for any help.
--
Larry


  #3   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Adding Date Range to Averageif statement

need to add an additional expression to
calculate by month and by quarter in addition to the status


Assuming say, col B contains real dates for the additional criteria

By Month/Yr, eg: Oct08
=AVERAGE(IF(('MRR Log'!O8:O1769="Open")*(TEXT('MRR
Log'!B8:B1769,"mmmyy")="Oct08"),'MRR Log'!Q8:Q1769))

By Quarter, eg for 4th Q viz: Oct08, Nov08 & Dec08
=AVERAGE(IF(('MRR Log'!O8:O1769="Open")*(TEXT('MRR
Log'!B8:B1769,"mmmyy")={"Oct08","Nov08","Dec08"}), 'MRR Log'!Q8:Q1769))

Above expressions to be array-entered,
ie press CTRL+SHIFT+ENTER to confirm the formula
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:18,500 Files:361 Subscribers:58
xdemechanik
---
"lwilliams" wrote:
I am using the following statement to calculate an average value for a
specific status of a data set. I need to add an additional expression to
calculate by month and by quarter in addition to the status. Even thought I
am using Excell 2007, the calculation has to work on Excel 2003.

{=AVERAGE(IF('MRR Log'!O8:O1769="Open",'MRR Log'!Q8:Q1769))}


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
date range in an if then statement Jimmy Excel Discussion (Misc queries) 5 April 2nd 23 04:31 PM
Adding in a Date Range readystate Excel Worksheet Functions 4 December 17th 07 05:57 PM
adding range of numbers to if statement with three criteria Mifty Excel Worksheet Functions 4 November 7th 07 11:18 AM
How do I get an IF statement to pull a date range?? Brooke Medvecky Excel Worksheet Functions 9 April 19th 06 08:48 PM
if statement with date range Theresa Excel Worksheet Functions 3 October 17th 05 06:03 PM


All times are GMT +1. The time now is 01:50 PM.

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"