LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default Problems with conditional average

I use the following array-formula to calculate a conditional average:

=AVERAGE(IF(MONTH('Veje'!$G$5:$G$150)&YEAR('Veje'! $G$5:$G$150)=MONTH(B4)&YEAR(B4),'Veje'!$J$5:$J$150 ))

and it works perfectly OK.

My problem is, that I need to add another condition or rather two as the numbers uin H5:H150 need to be between 77 and 119 if the number in column J shall be included in the avarage.

The list in 'Veje"' contains dates in the G-column, numbers in the H-column, and numbers in the J-column.

In Sheet Avagerage, I have months and years in the B-column. What I want to achieve is to calculate the average per month of the numbers in the J-column (first condition: year and month of dates Veje!J.. must be equal to year and month in the B-colum of Average. Numbers in Veje!J shall only be calculated if respective values in Veje!H is between 77 and 119

I have tried with different combinations of AND, but spo far with nmo success.

Any suggestions if understandable at all?

Jan
 
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
aauugghhh...#div/o problems & various average formula problems acbel40 Excel Worksheet Functions 5 October 19th 09 05:00 PM
Still trying to average 4 worksheets and having formula problems alisah Excel Discussion (Misc queries) 2 August 15th 08 08:17 PM
Problems with offset/average formula GaryC Excel Worksheet Functions 8 March 15th 06 07:14 PM
Conditional Average Kstalker Excel Worksheet Functions 4 August 22nd 05 03:28 AM
AVERAGE problems Jon Excel Worksheet Functions 5 February 1st 05 08:21 AM


All times are GMT +1. The time now is 07:19 AM.

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"