Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default AVG_IF with YTD array - too many arguements

A1 (current month), B2:M2 (Jan - Dec), B3:M10 (data).

I want to change the month in A1 to get an YTD average. If I use an
{AVG(if,(if,(if,(if))))} array I get a "too many arguments error."
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default AVG_IF with YTD array - too many arguements


Try

=AVERAGE(OFFSET(B3:B10,0,0,,MATCH(A1,B2:M2,0)))

I'm assuming that A1 just shows the month as text e.g. "Sep"


--
barry houdini
------------------------------------------------------------------------
barry houdini's Profile: http://www.thecodecage.com/forumz/member.php?userid=72
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=134991

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 37
Default AVG_IF with YTD array - too many arguements

Hi.
Try this formula:
=ROUND(SUMPRODUCT(--(MONTH(B1:M1)<=MONTH(A1)),(B2:M2)/MONTH(A1)),2)

The cells containing the series of months should be formated as Date and
should have valid Date. If you want to show the month in letters go to Cell-
Format -Custom and type mmm for the first 3 letters.
--
Alex
*Remember to click "yes" if this post helped you. Thank you!



"Vulcan" wrote:

A1 (current month), B2:M2 (Jan - Dec), B3:M10 (data).

I want to change the month in A1 to get an YTD average. If I use an
{AVG(if,(if,(if,(if))))} array I get a "too many arguments error."

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
Too many arguements? GHall Excel Worksheet Functions 6 December 6th 08 08:58 PM
how can i have more than 30 arguements in a SUM RobG2007 Excel Discussion (Misc queries) 6 July 25th 07 08:28 PM
Too many arguements pj Excel Discussion (Misc queries) 3 December 6th 05 02:13 PM
Formula using IF, AND and OR Arguements DaveG Excel Worksheet Functions 2 October 26th 05 10:26 PM
NPV calc with more than 29 arguements? Felix Excel Worksheet Functions 3 April 13th 05 11:25 PM


All times are GMT +1. The time now is 09:11 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"