Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-08-2012, 05:29 AM
masterdineen masterdineen is offline formula to work from data column Windows XP formula to work from data column Office 2010 32bit
Novice
formula to work from data column
 
Join Date: Aug 2012
Posts: 11
masterdineen is on a distinguished road
Default

I have attached a exmple of data

I would like to average the score column based on the current month and year



Regards

Rob
Attached Files
File Type: xlsx example.xlsx (9.2 KB, 13 views)
Reply With Quote
  #2  
Old 08-08-2012, 06:18 AM
Colin Legg's Avatar
Colin Legg Colin Legg is offline formula to work from data column Windows 7 32bit formula to work from data column Office 2010 32bit
Expert
 
Join Date: Jan 2011
Location: UK
Posts: 369
Colin Legg will become famous soon enough
Default

Hi Rob,

Since you have more than one condition you have to use AVERAGEIFS instead of AVERAGEIF.
Code:
=AVERAGEIFS(E3:E100,C3:C100,MONTH(TODAY()),D3:D100,YEAR(TODAY()))
If you also want to exclude scores less than or equal to zero then include a third condition:
Code:
=AVERAGEIFS(E3:E100,C3:C100,MONTH(TODAY()),D3:D100,YEAR(TODAY()),E3:E100,">0")
You could simplify (and improve) things further by putting =TODAY() in a spare cell (eg cell H1) and then referecing it from your formula, such as
Code:
=AVERAGEIFS(E3:E100,C3:C100,MONTH(H1),D3:D100,YEAR(H1),E3:E100,">0")
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Change Resource Time vs. Duration when Updating Work column lylel Project 3 07-23-2012 06:09 PM
Displaying Work Week instead of date in a column. whitney07 Project 1 07-05-2012 02:27 PM
formula to work from data column definition of work column ketanco Project 9 05-31-2012 05:15 PM
formula to work from data column Right-Aligning Data to a Column sunnyside Excel 3 02-27-2012 01:25 AM
Formula not getting copied to entire column theacegary Excel 1 11-29-2010 02:18 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:10 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft