#1
|
|||
|
|||
formula to work from data column
Hello |
#2
|
||||
|
||||
Welcome to the forum. Please would you attach an example worksheet (with no confidential data) and tell us the result you want to help us provide the best solution to your question?
|
#3
|
||||
|
||||
Perhaps
Code:
=AVERAGE(IF((SUPPORT!K9:K99, ">0")*(month(j9:j99)=8)*(year(j9:j99)=2012))) Enter this array formula with Ctrl+Shift+Enter
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
#4
|
|||
|
|||
I have attached a exmple of data
I would like to average the score column based on the current month and year Regards Rob |
#5
|
||||
|
||||
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())) Code:
=AVERAGEIFS(E3:E100,C3:C100,MONTH(TODAY()),D3:D100,YEAR(TODAY()),E3:E100,">0") Code:
=AVERAGEIFS(E3:E100,C3:C100,MONTH(H1),D3:D100,YEAR(H1),E3:E100,">0") |
#6
|
|||
|
|||
thank you very much.
excellent stuff |
#7
|
|||
|
|||
would this work when the Month and year figures are made up from formulars as well.
eg the month column is made up like. =month(c3:c400) c3:c400 is full of dates. |
#8
|
|||
|
|||
i am using the following equation
=AVERAGEIFS(SUPPORT!K9:K258,SUPPORT!J9:J258,MONTH( TODAY()),SUPPORT!J9:J258,YEAR(TODAY())) and i get #DIV/0! |
#9
|
||||
|
||||
You've referenced column J for both the Month and the Year criteria. What does column J contain?
Code:
=AVERAGEIFS(SUPPORT!K9:K258,SUPPORT!J9:J258,MONTH( TODAY()),SUPPORT!J9:J258,YEAR(TODAY())) |
#10
|
|||
|
|||
they are dates
|
#11
|
|||
|
|||
is there a way i can get round the #DIV/0!
|
#12
|
||||
|
||||
Okay, your original example had month and year numbers in separate cells. If you want to reference a single column which contains dates then a different formula is required. Here's one variation:
Code:
=AVERAGEIFS(SUPPORT!K9:K258, SUPPORT!J9:J258,">="&EOMONTH(TODAY(),-1)+1, SUPPORT!J9:J258,"<"&EOMONTH(TODAY(),0)+1) |
#13
|
|||
|
|||
still getting #DIV/0!
|
#14
|
|||
|
|||
its ok, ive worked it out.
thank you again for you help. Regards Rob |
#15
|
|||
|
|||
now i am trying the following formula
=COUNTIFS(SUPPORT!H8:H25,"Martin",SUPPORT!M9:M25,Y EAR(TODAY())) and i get #Value! but when i create the same formula on the support sheet. ie =COUNTIFS(H9:H250,"Martin",M9:M250,YEAR(TODAY())) and it works. Is there limits when referencing other sheets in workbook? |
|
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 |
definition of work column | ketanco | Project | 9 | 05-31-2012 05:15 PM |
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 |