#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Average Formula


Need a formula to average a range of cells but only if there are numbers
so I dont get a zero.
=AVERAGE(IF(E8:N8,E8:N8)) this is what I'v tried but I just get
#VALUE!
Thanx


--
ferg
------------------------------------------------------------------------
ferg's Profile: http://www.excelforum.com/member.php...o&userid=36519
View this thread: http://www.excelforum.com/showthread...hreadid=563563

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 179
Default Average Formula

Hi
tRY THIS ONE
=IF(ISERROR(AVERAGE(E8:N8)),0,AVERAGE(E8:N8))

"ferg" wrote:


Need a formula to average a range of cells but only if there are numbers
so I dont get a zero.
=AVERAGE(IF(E8:N8,E8:N8)) this is what I'v tried but I just get
#VALUE!
Thanx


--
ferg
------------------------------------------------------------------------
ferg's Profile: http://www.excelforum.com/member.php...o&userid=36519
View this thread: http://www.excelforum.com/showthread...hreadid=563563


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dav Dav is offline
external usenet poster
 
Posts: 1
Default Average Formula


the normal average function will ignore non numeric values

if there are no numbers in the range

if(iserror(average(e8:n8)),"",average(e8:n8))

otherwise the previous post but it will give 0 if the range is blank,
it depends what youwant

Regards

Dav


--
Dav
------------------------------------------------------------------------
Dav's Profile: http://www.excelforum.com/member.php...o&userid=27107
View this thread: http://www.excelforum.com/showthread...hreadid=563563

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Average Formula


Yeah Rafeeks leaves a 0 as u said Dav so I want a blank cell if no
nums
So Thanx heeps guys worxs spot on :)


--
ferg
------------------------------------------------------------------------
ferg's Profile: http://www.excelforum.com/member.php...o&userid=36519
View this thread: http://www.excelforum.com/showthread...hreadid=563563

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
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Average formula onyx4813 Excel Discussion (Misc queries) 3 September 28th 05 06:13 PM
Formula to average certain times Denise Excel Discussion (Misc queries) 5 July 18th 05 01:02 PM
Average Formula Anthony Excel Discussion (Misc queries) 3 July 14th 05 04:38 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM


All times are GMT +1. The time now is 02:19 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"