#1   Report Post  
Posted to microsoft.public.excel.misc
kraway
 
Posts: n/a
Default date calculations

I am trying to calculate the average and median of a value in column I when
the date in column H has a month value of January. This is my formula:
{=AVERAGE(IF(MONTH(H$4:H$1494)=1,I$4:I$1494))}.
Any idea why I get the wrong result?
  #2   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default date calculations

Blank cells would return TRUE for MONTH = 1 as well, you can use

=AVERAGE(IF((Range1<"")*(MONTH(Range1)=1),Range2) )


--

Regards,

Peo Sjoblom

"kraway" wrote in message
...
I am trying to calculate the average and median of a value in column I

when
the date in column H has a month value of January. This is my formula:
{=AVERAGE(IF(MONTH(H$4:H$1494)=1,I$4:I$1494))}.
Any idea why I get the wrong result?



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
Date difference Maxi Excel Worksheet Functions 7 July 28th 05 01:38 PM
Setting up "Year to Date" Calculations in a Pivot Table Project64 Excel Worksheet Functions 1 March 22nd 05 01:50 AM
Date Math Problem Dkline Excel Worksheet Functions 4 March 4th 05 04:11 PM
date and time ladimples247 New Users to Excel 2 February 16th 05 08:52 PM
Need help troubleshooting an array formula XLXP on Win2K KR Excel Worksheet Functions 1 December 13th 04 07:41 PM


All times are GMT +1. The time now is 06:45 AM.

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

About Us

"It's about Microsoft Excel"