PC Review


Reply
Thread Tools Rate Thread

AVERAGESIFS Function - average cells that fall within a date rangeand meet additional criteria

 
 
SK08
Guest
Posts: n/a
 
      12th Mar 2009
I am trying to find an average purchase price (listed in column H) for
purchase dates (column A) that occur between 11/01/1998 and 12/01/1998
and an additional criteria - that column G has "Pre-Period".

Right now I have this formula:

=AVERAGEIFS
(H2:H809,A2:A5121,">=11/1/1998",A2:A5121,"<12/01/1998",G2:G809,"Pre-
Period")


This is returning #VALUE

Any suggestions on how to make this work?

THANK YOU!
 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      12th Mar 2009
Try this array formula

=AVERAGE(IF((A2:A5121>=--"1998-11-01")*(A2:A5121<--"1998-12-01")*(G2:G5121="Pre-Period"),H2:H5121))

--
__________________________________
HTH

Bob

"SK08" <(E-Mail Removed)> wrote in message
news:49dffdc2-97bd-45c6-bf26-(E-Mail Removed)...
>I am trying to find an average purchase price (listed in column H) for
> purchase dates (column A) that occur between 11/01/1998 and 12/01/1998
> and an additional criteria - that column G has "Pre-Period".
>
> Right now I have this formula:
>
> =AVERAGEIFS
> (H2:H809,A2:A5121,">=11/1/1998",A2:A5121,"<12/01/1998",G2:G809,"Pre-
> Period")
>
>
> This is returning #VALUE
>
> Any suggestions on how to make this work?
>
> THANK YOU!



 
Reply With Quote
 
SK08
Guest
Posts: n/a
 
      12th Mar 2009
is there anyway to do it without an array? The averageifs function for
2007 should work...






On Mar 12, 2:03*pm, "Bob Phillips" <Bob...@somewhere.com> wrote:
> Try this array formula
>
> =AVERAGE(IF((A2:A5121>=--"1998-11-01")*(A2:A5121<--"1998-12-01")*(G2:G5121=*"Pre-Period"),H2:H5121))
>
> --
> __________________________________
> HTH
>
> Bob
>
> "SK08" <sakilke...@gmail.com> wrote in message
>
> news:49dffdc2-97bd-45c6-bf26-(E-Mail Removed)...
>
>
>
> >I am trying to find an average purchase price (listed in column H) for
> > purchase dates (column A) that occur between 11/01/1998 and 12/01/1998
> > and an additional criteria - that column G has "Pre-Period".

>
> > Right now I have this formula:

>
> > =AVERAGEIFS
> > (H2:H809,A2:A5121,">=11/1/1998",A2:A5121,"<12/01/1998",G2:G809,"Pre-
> > Period")

>
> > This is returning #VALUE

>
> > Any suggestions on how to make this work?

>
> > THANK YOU!- Hide quoted text -

>
> - Show quoted text -


 
Reply With Quote
 
T. Valko
Guest
Posts: n/a
 
      12th Mar 2009
>=AVERAGEIFS(H2:H809,A2:A5121,">=11/1/1998",A2:A5121,"<12/01/1998",G2:G809,"Pre-Period")

Your ranges aren't the same size:

H2:H809
A2:A5121
G2:G809

Use cells to hold the criteria:

A1 = 11/1/1998
B1 = 12/1/1998
C1 = Pre-Period

=AVERAGEIFS(H2:H5121,A2:A5121,">="&A1,A2:A5121,"<"&B1,G2:G5121,C1)

Make sure the ranges are all the same size.


--
Biff
Microsoft Excel MVP


"SK08" <(E-Mail Removed)> wrote in message
news:56ce8e2c-695d-4aa8-bd26-(E-Mail Removed)...
is there anyway to do it without an array? The averageifs function for
2007 should work...






On Mar 12, 2:03 pm, "Bob Phillips" <Bob...@somewhere.com> wrote:
> Try this array formula
>
> =AVERAGE(IF((A2:A5121>=--"1998-11-01")*(A2:A5121<--"1998-12-01")*(G2:G5121=*"Pre-Period"),H2:H5121))
>
> --
> __________________________________
> HTH
>
> Bob
>
> "SK08" <sakilke...@gmail.com> wrote in message
>
> news:49dffdc2-97bd-45c6-bf26-(E-Mail Removed)...
>
>
>
> >I am trying to find an average purchase price (listed in column H) for
> > purchase dates (column A) that occur between 11/01/1998 and 12/01/1998
> > and an additional criteria - that column G has "Pre-Period".

>
> > Right now I have this formula:

>
> > =AVERAGEIFS
> > (H2:H809,A2:A5121,">=11/1/1998",A2:A5121,"<12/01/1998",G2:G809,"Pre-
> > Period")

>
> > This is returning #VALUE

>
> > Any suggestions on how to make this work?

>
> > THANK YOU!- Hide quoted text -

>
> - Show quoted text -



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MAX AVERAGE MIN with additional criteria, ignoring blank cells Struggling in Sheffield Microsoft Excel Misc 6 25th Feb 2010 09:24 PM
move cells that meet a certain criteria to the row below Donna Microsoft Excel Programming 1 15th Aug 2009 01:24 PM
Excel-only average cells if two cells in same row, meet two condit =?Utf-8?B?RXVsaWUtRGVudmVy?= Microsoft Excel Worksheet Functions 5 5th Oct 2006 11:15 PM
Can I sum #s in a cell if other cells meet a certain criteria? =?Utf-8?B?amFjY2hvcHM=?= Microsoft Excel Misc 2 16th Jun 2006 09:42 PM
Sum Total # Of Cells That Meet Several Criteria ashstudly Microsoft Excel Worksheet Functions 4 23rd Jan 2006 05:55 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:25 AM.