Please Help - Average IF with Date.....

LaurenHancy

Board Regular
Joined
Aug 5, 2010
Messages
179
Hello everyone,

I am having problems with the following formular:

=LOOKUP(9.99999999999999E+307,CHOOSE({1,2},0,
AVERAGE(IF('ALL CLOSED'!$T$2:$T$10000=$B3,
IF('JAN - ALL CLOSED DATA'!$D$8:$D$990=C$3,IF(TEXT('ALL CLOSED'!$O$2:$O$10000,"MMM-YY")="Feb-11",'JAN - ALL CLOSED DATA'!$I$2:$I$10000))))))

Can you please see how i am going wrong with this.

Thanks in advance.
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Ive just noticed some errors my self but this but it is still not working:

=LOOKUP(9.99999999999999E+307,CHOOSE({1,2},0,
AVERAGE(IF('ALL CLOSED'!$T$2:$T$10000=$B3,
IF('ALL CLOSED'!$D$2:$D$10000=C$3,IF(TEXT('ALL CLOSED'!$O$2:$O$10000,"MMM-YY")="Feb-11",'ALL CLOSED'!$I$2:$I$10000))))))
 
Upvote 0
'JAN - ALL CLOSED DATA'!$D$8:$D$990 is not of the same size as other ranges the formula refers to. But, what was the problem you are having?
 
Upvote 0
Thanks very much for your help.

I do have just one question, how do i add the date into this?

=AVERAGEIF('Jan- ALL CLOSED DATA'!$C$8:$C$1000,B2,'Jan- ALL CLOSED DATA'!$BK$8:$BK$1000)

So i would like to add this into the equasion:

(TEXT('ALL CLOSED'!$B$2:$B$10000,"MMM-YY")="Jan-11")

Thank you very much :)
 
Upvote 0
Thanks very much for your help.

I do have just one question, how do i add the date into this?

=AVERAGEIF('Jan- ALL CLOSED DATA'!$C$8:$C$1000,B2,'Jan- ALL CLOSED DATA'!$BK$8:$BK$1000)

So i would like to add this into the equasion:

(TEXT('ALL CLOSED'!$B$2:$B$10000,"MMM-YY")="Jan-11")

Thank you very much :)

When you need that date-specifying condition, AVERAGEIFS (for multi-codition average) cannot be used. We need to switch to an array-processing formula. And I guess you mean something like...

Control+shift+enter, not just enter:
Code:
=AVERAGE(
    IF(TEXT('ALL CLOSED'!$B$2:$B$10000,"MMM-YY")="Jan-11",
    IF('Jan- ALL CLOSED DATA'!$C$2:$C$10000=B2,
      'Jan- ALL CLOSED DATA'!$BK$2:$BK$10000)))

Adjust the ranges to suit (maybe also the sheet names if two different sheet are unintended).
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,850
Members
452,948
Latest member
UsmanAli786

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top