Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-21-2009, 04:00 PM
doublejoy doublejoy is offline Please help me create this formula... Windows Vista Please help me create this formula... Office 2007
Novice
Please help me create this formula...
 
Join Date: Aug 2009
Posts: 2
doublejoy is on a distinguished road
Default Please help me create this formula...

Can someone help me with this? I want to create a formula that represents the following:

IF the number in H2 is zero, then leave H2 blank (no divide by zero), but,
IF the number is greater than zero, I want Excel to calculate the AVERAGE of cells C2:G2



Thanks! I really appreciate it! Also, is there a book/online tutorial that simply explains IF functions???
Reply With Quote
  #2  
Old 08-22-2009, 03:04 AM
Rod Rod is offline Please help me create this formula... Windows XP Please help me create this formula... Office 2007
Novice
 
Join Date: Jul 2009
Posts: 5
Rod is on a distinguished road
Default Average Formula

Hi Doublejoy
I assume that you are trying to average data in cells C2:H2 but ignore the zero in H2 ie average the five positive numbers. Try this array formula
=average(if(C2:H2<>0,C2:H2,false)). As this is an array formula to enter it you must hit ctrl, shift and enter at the same time, this must be done every time you alter the formula. You will know if it has been entered correctly as excel will automatically insert a "squiggle" at the start and end of the formula.
Hope that helps.
Rod
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Create Chart using Categories aschurg Outlook 2 08-21-2009 05:23 PM
Automatisation to create ppt-files gruenkohl PowerPoint 2 06-25-2009 08:52 PM
Help for formula dehann Excel 5 05-01-2009 10:44 AM
Please help me create this formula... Need help with a formula tinkertron Excel 11 04-16-2009 11:43 PM
Can't Create/Save/Print EPS mark4man Publisher 2 11-08-2005 08:47 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:21 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft