Hi,

In K3 (array formula, validate with Ctrl+Shift+Enter) :

 

=IF(ISERROR(AVERAGE(IF((MONTH($B$2:$B$125)=MONTH(J3))*(YEAR($B$2:$B$125)=YEA
R(J3))<>0,$E$2:$E$125))),"",AVERAGE(IF((MONTH($B$2:$B$125)=MONTH(J3))*(YEAR(
$B$2:$B$125)=YEAR(J3)),$E$2:$E$125)))

 

Regards.

Daniel

 

 

De : excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] De
la part de syed aliya raza hashim
Envoyé : mercredi 6 avril 2011 10:39
À : excel-macros@googlegroups.com
Objet : $$Excel-Macros$$ Need Help Regarding not calculating the average in
case of Jan month but for all other month they are showing correct result

 


Hi in this formula if i am incresing the range 25 to 125 then it is counting
blank cell also and traeting blank cell as a jan month so is there  any
suggestion where can we ignore blank cell

=IF(ISERROR(AVERAGE(IF(MONTH($B$2:$B$125)=2,$E$2:$E$125))),"",AVERAGE(IF(MON
TH($B$2:$B$125)=2,$E$2:$E$125)))

 

see i have highlighted the cell in yellow color in sheet 
-- 
syed aliya

-- 
----------------------------------------------------------------------------
------
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links :
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at  <http://exceldailytip.blogspot.com>
http://exceldailytip.blogspot.com

To post to this group, send email to  <mailto:excel-macros@googlegroups.com>
excel-macros@googlegroups.com
 
<><><><><><><><><><><><><><><><><><><><><><>
Like our page on facebook , Just follow below link
 <http://www.facebook.com/discussexcel> http://www.facebook.com/discussexcel

-- 
----------------------------------------------------------------------------------
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to excel-macros@googlegroups.com

<><><><><><><><><><><><><><><><><><><><><><>
Like our page on facebook , Just follow below link
http://www.facebook.com/discussexcel

Reply via email to