PC Review


Reply
Thread Tools Rate Thread

How do I ignore blank cells while averaging the solutions of equat

 
 
Kisamarha
Guest
Posts: n/a
 
      5th Jan 2010
I'm trying to average (items produced/manhours/workers) over the course of a
week. The problem is each job isnt worked every day, so I have blank cells
in my equation. Here is what I'm typing:

=AVERAGE((B4/C4/D4),(E4/F4/G4),(H4/I4/J4),(K4/L4/M4),(N4/O4/P4)).

I know there is a way to ignore #DIV/0 results, but I'm fairly new to Excel.
I'm also trying to keep this all in one row to save space. Any help will be
appreciated.

-Ryan
 
Reply With Quote
 
 
 
 
Gary Keramidas
Guest
Posts: n/a
 
      5th Jan 2010
take a look at the subtotal function and see if it meets your needs.



--


Gary Keramidas
Excel 2003


"Kisamarha" <(E-Mail Removed)> wrote in message
news:F329EA71-4C35-47BA-91CE-(E-Mail Removed)...
> I'm trying to average (items produced/manhours/workers) over the course of a
> week. The problem is each job isnt worked every day, so I have blank cells
> in my equation. Here is what I'm typing:
>
> =AVERAGE((B4/C4/D4),(E4/F4/G4),(H4/I4/J4),(K4/L4/M4),(N4/O4/P4)).
>
> I know there is a way to ignore #DIV/0 results, but I'm fairly new to Excel.
> I'm also trying to keep this all in one row to save space. Any help will be
> appreciated.
>
> -Ryan


 
Reply With Quote
 
Minty Fresh
Guest
Posts: n/a
 
      5th Jan 2010
I can't get this done without adding another row, but you can always hide the
extra row.
With your data in B4:P4 arranged Items/MH/W, enter these formulas below each
W cell
In D5 =IF(ISERROR(B4/C4/D4),0,B4/C4/D4)
G5 =IF(ISERROR(E4/F4/G4),0,E4/F4/G4)
J5 =IF(ISERROR(H4/I4/J4),0,H4/I4/J4)
M5 =IF(ISERROR(K4/L4/M4),0,K4/L4/M4)
P5 =IF(ISERROR(N4/O4/P4),0,N4/O4/P4)
These replaces the DIV/0 errors with zero and calculate the the daily results
In Q4
=IF(COUNTIF(D5:P5,">0")=5,SUM(D5:P5)/5,(SUM(D5:P5)/COUNTIF(D5:P5,">0")))
This ignores the days with no job and calculates the weekly average based on
the number of days the the work actually happened.
Not pretty, but it works.




"Kisamarha" wrote:

> I'm trying to average (items produced/manhours/workers) over the course of a
> week. The problem is each job isnt worked every day, so I have blank cells
> in my equation. Here is what I'm typing:
>
> =AVERAGE((B4/C4/D4),(E4/F4/G4),(H4/I4/J4),(K4/L4/M4),(N4/O4/P4)).
>
> I know there is a way to ignore #DIV/0 results, but I'm fairly new to Excel.
> I'm also trying to keep this all in one row to save space. Any help will be
> appreciated.
>
> -Ryan

 
Reply With Quote
 
 
 
Reply

« Contents | Sum »
Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Averaging Blank Cells John Calder Microsoft Excel Worksheet Functions 3 1st Apr 2009 01:47 PM
Averaging blank or cells with Zeros in them. Glenn Microsoft Excel Worksheet Functions 4 4th Jan 2009 10:51 PM
Averaging blank cells =?Utf-8?B?U2NvdHQgVw==?= Microsoft Excel Misc 2 8th Jul 2006 02:58 PM
Averaging List with Blank Cells Mr. X Microsoft Excel Misc 2 18th Dec 2003 11:12 AM
Averaging List with Blank Cells Frank West Microsoft Excel Misc 2 18th Dec 2003 07:38 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:08 PM.