Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 71
Default More Complex averaging

Hi All

I have a sheet with production numbers for work
there are 3 columns of 35 rows.
the fields are B3 - B37 C3-C37 D3-D37
in each of these columns the first entry may or may not be in the first row
and there may be a gap from one entry in a column to the next.

I am using this formula " =AVERAGE(IF((B2:B36<"")*(B3:B37<""),B3:B37)) "
that "Tom Ogilvy" gave to me to do the following.
Find the second non blank cell in a column. And then also if there is gap in
between one cell and the next to look at the second non blank cell after
that
and continue to do this through row #37 of each column and then find the
average of sum of those numbers.



Example

A B C
1 15 25
2 27 31 11
3 21 17
4 35
6 23 18 68
7 11 7 43
8 123
9 16 54 17
10 18 11 45

etc etc etc till row 37
in this example the formula would skip
A1 A4 and A9 and give the average of the rest which I calculate to be
27+23+11+18=79
79/4= 19.75

It Would skip
B1 B6 B9 and give the average of the rest which I calculate to be
31+21+7+11=70
70/4=17.5

It would skip
C2 C6 and give the average of the rest which I calculate to be
17+43+123+17+45=245
245/5=49

Then I want to be able to get a total average of the three columns.
So I need to be able to count all the cells that the previous formula did
not skip
which in this example would be
a total of 9 cells of data

so the total average for this example would be

79+70+245=394
394/9 cells = 43.78

I know it is confusing

I hope I was able to explain this well enough and also hope that someone can
help me with this

Thanks for all the help
Dan N
--
--
crunchnin numbers
  #2   Report Post  
Posted to microsoft.public.excel.misc
bj bj is offline
external usenet poster
 
Posts: 1,397
Default More Complex averaging

one method would be
=sumproduct(--(b4:d37<""),--(B3:d36<""),b4:d37)/sumproduct(--(b4:d37<""),--(B3:d36<""))
"belvy123" wrote:

Hi All

I have a sheet with production numbers for work
there are 3 columns of 35 rows.
the fields are B3 - B37 C3-C37 D3-D37
in each of these columns the first entry may or may not be in the first row
and there may be a gap from one entry in a column to the next.

I am using this formula " =AVERAGE(IF((B2:B36<"")*(B3:B37<""),B3:B37)) "
that "Tom Ogilvy" gave to me to do the following.
Find the second non blank cell in a column. And then also if there is gap in
between one cell and the next to look at the second non blank cell after
that
and continue to do this through row #37 of each column and then find the
average of sum of those numbers.



Example

A B C
1 15 25
2 27 31 11
3 21 17
4 35
6 23 18 68
7 11 7 43
8 123
9 16 54 17
10 18 11 45

etc etc etc till row 37
in this example the formula would skip
A1 A4 and A9 and give the average of the rest which I calculate to be
27+23+11+18=79
79/4= 19.75

It Would skip
B1 B6 B9 and give the average of the rest which I calculate to be
31+21+7+11=70
70/4=17.5

It would skip
C2 C6 and give the average of the rest which I calculate to be
17+43+123+17+45=245
245/5=49

Then I want to be able to get a total average of the three columns.
So I need to be able to count all the cells that the previous formula did
not skip
which in this example would be
a total of 9 cells of data

so the total average for this example would be

79+70+245=394
394/9 cells = 43.78

I know it is confusing

I hope I was able to explain this well enough and also hope that someone can
help me with this

Thanks for all the help
Dan N
--
--
crunchnin numbers

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 71
Default More Complex averaging

Hi BJ

Thanks it works great
your a life saver
--
cruchnin numbers


"bj" wrote:

one method would be
=sumproduct(--(b4:d37<""),--(B3:d36<""),b4:d37)/sumproduct(--(b4:d37<""),--(B3:d36<""))
"belvy123" wrote:

Hi All

I have a sheet with production numbers for work
there are 3 columns of 35 rows.
the fields are B3 - B37 C3-C37 D3-D37
in each of these columns the first entry may or may not be in the first row
and there may be a gap from one entry in a column to the next.

I am using this formula " =AVERAGE(IF((B2:B36<"")*(B3:B37<""),B3:B37)) "
that "Tom Ogilvy" gave to me to do the following.
Find the second non blank cell in a column. And then also if there is gap in
between one cell and the next to look at the second non blank cell after
that
and continue to do this through row #37 of each column and then find the
average of sum of those numbers.



Example

A B C
1 15 25
2 27 31 11
3 21 17
4 35
6 23 18 68
7 11 7 43
8 123
9 16 54 17
10 18 11 45

etc etc etc till row 37
in this example the formula would skip
A1 A4 and A9 and give the average of the rest which I calculate to be
27+23+11+18=79
79/4= 19.75

It Would skip
B1 B6 B9 and give the average of the rest which I calculate to be
31+21+7+11=70
70/4=17.5

It would skip
C2 C6 and give the average of the rest which I calculate to be
17+43+123+17+45=245
245/5=49

Then I want to be able to get a total average of the three columns.
So I need to be able to count all the cells that the previous formula did
not skip
which in this example would be
a total of 9 cells of data

so the total average for this example would be

79+70+245=394
394/9 cells = 43.78

I know it is confusing

I hope I was able to explain this well enough and also hope that someone can
help me with this

Thanks for all the help
Dan N
--
--
crunchnin numbers

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
complex averaging belvy123 Excel Discussion (Misc queries) 0 February 21st 07 03:37 PM
complex averaging bj Excel Discussion (Misc queries) 0 February 21st 07 03:25 PM
complex averaging Tom Ogilvy Excel Discussion (Misc queries) 0 February 21st 07 03:23 PM
Complex Index Match Help (or at least complex to me) Jennifer Reitman Excel Discussion (Misc queries) 3 August 10th 06 09:51 PM
Complex Averaging John Excel Worksheet Functions 3 February 16th 05 08:39 PM


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