Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Another Average non-adjacent cells question...

I have two non-adjacent cells that I want to average but throw out one
of the numbers if one of them is zero...I used this and it works fine
with adjacent cells but stumped on getting it to work with two
non-adjacent cells. My cells are F3 and K3.

=AVERAGE(IF(B2:C2<0,B2:C2," "))
CTRL+SHIFT+ENTER

Thanks for any help I get on this...

  #2   Report Post  
Posted to microsoft.public.excel.misc
Biff
 
Posts: n/a
Default Another Average non-adjacent cells question...

Hi!

One way:

=IF(COUNT(F3,K3)<1,"",SUM(F3,K3)/SUMPRODUCT(--(MOD(COLUMN(F3:K3),5)=1),--(F3:K30)))

Biff

wrote in message
ups.com...
I have two non-adjacent cells that I want to average but throw out one
of the numbers if one of them is zero...I used this and it works fine
with adjacent cells but stumped on getting it to work with two
non-adjacent cells. My cells are F3 and K3.

=AVERAGE(IF(B2:C2<0,B2:C2," "))
CTRL+SHIFT+ENTER

Thanks for any help I get on this...



  #3   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Another Average non-adjacent cells question...


Biff wrote:
Hi!

One way:

=IF(COUNT(F3,K3)<1,"",SUM(F3,K3)/SUMPRODUCT(--(MOD(COLUMN(F3:K3),5)=1),--(F3:K30)))

Biff

wrote in message
ups.com...
I have two non-adjacent cells that I want to average but throw out one
of the numbers if one of them is zero...I used this and it works fine
with adjacent cells but stumped on getting it to work with two
non-adjacent cells. My cells are F3 and K3.

=AVERAGE(IF(B2:C2<0,B2:C2," "))
CTRL+SHIFT+ENTER

Thanks for any help I get on this...


Thanks that worked!

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
Average Cells above 0 Stephen Excel Discussion (Misc queries) 7 September 23rd 05 08:46 PM
How do I average a range of cells when one cell contains #N/A hongkonglt Excel Discussion (Misc queries) 3 September 19th 05 02:13 AM
Average non-adjacent cells if the cell does not contain zero Cheri Excel Discussion (Misc queries) 11 August 20th 05 08:12 AM
Average Non-Continuous Cells Without Zero's raeleanne Excel Worksheet Functions 8 July 22nd 05 02:48 PM
Average If Question Renee Excel Discussion (Misc queries) 6 March 29th 05 09:39 PM


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