Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default Need help with a formula

Thanks so much
--
dbconn


"Lars-Ã…ke Aspelin" wrote:

On Sat, 23 Jan 2010 15:55:01 -0800, dbconn
wrote:

I am looking for a formula that will compute an average of a number of non
contiguous cells such as G8, G16, G24, G36, etc. Each of these cells has a
formula which computes an average of a range of cells. With the helpm of
this forum, I have been able to find a formula which does that AND uses
values only when they are greater than zero and does not display #DIV/0!.
But I cannot fin a fromula that will do the next step- Take an average of
those specific cells AND use only the ones where the cell is 0, Example
G8=100, G16=85, G24 is blank, G36=75, then this formula would calculate the
average 100+85+75/3.

All help greatly appreciated


For you example, try this formula:

=SUM(G8,G16,G24,G36)/SUM(G80,G160,G240,G360)

If your data is more regular, say every 8th row, ie G32 rather than
G36, you may try something like this:

=SUMPRODUCT((G8:G32)*(MOD(ROW(G8:G32),8)=0))/SUMPRODUCT((G8:G320)*(MOD(ROW(G8:G32),8)=0))

This is a longer formula if you only have a few data, but if you have
data in every 8th row from cell G8 to say cell G400, then this is
shorter.

Hope this helps / Lars-Ã…ke
.

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



All times are GMT +1. The time now is 05:29 PM.

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"