Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Mark
 
Posts: n/a
Default Averaging, ignoring zeros

How do you average values in a row, ignoring any zeros?
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

=AVERAGE(IF(A1:A100<0,A1:A100))

This is an array formula, so commit with Ctrl-SHift-Enter.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Mark" wrote in message
...
How do you average values in a row, ignoring any zeros?



  #3   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

=AVERAGE(IF(A1:D1<0,A1:D1))

entered with ctrl + shift & enter

--

Regards,

Peo Sjoblom


"Mark" wrote in message
...
How do you average values in a row, ignoring any zeros?



  #4   Report Post  
CLR
 
Posts: n/a
Default

=SUM(A:A)/COUNTIF(A:A,"<0")

Vaya con Dios,
Chuck, CABGx3


"Mark" wrote in message
...
How do you average values in a row, ignoring any zeros?



  #5   Report Post  
Jason Morin
 
Posts: n/a
Default

Just an alternative to the typical AVERAGE array formula:

=SUM(1:1)/SUM(COUNTIF(1:1,{"<","*",0})*{1,-1,-1})

HTH
Jason
Atlanta, GA

-----Original Message-----
How do you average values in a row, ignoring any zeros?
.



  #6   Report Post  
Harlan Grove
 
Posts: n/a
Default

Peo Sjoblom wrote...
=AVERAGE(IF(A1:D1<0,A1:D1))

entered with ctrl + shift & enter

....

Normal caveats with respect to continuity - if there could be positive
and negative values, zero values should be included. If only positive
values should be included in averages, that should be made explicit,
i.e.,

=AVERAGE(IF(A1:D10,A1:D1))

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
leading zeros in text format BigBrook Excel Discussion (Misc queries) 5 December 11th 08 08:00 PM
Format a cell to keep leading zeros. Shadyhosta New Users to Excel 5 July 27th 05 04:37 PM
Averaging numbers but ignoring < and - entries KIM Excel Discussion (Misc queries) 4 February 23rd 05 07:00 PM
Excel file saved as csv - dropping zeros Kathy Excel Discussion (Misc queries) 3 February 18th 05 07:15 PM
Displaying leading zeros in an Excel spreadsheet marianthelibrarian Excel Discussion (Misc queries) 1 January 25th 05 02:08 PM


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