LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 221
Default Sum Problem requiring help

Thx for everyones help

Provided food for thought.

I managed a workaround

=COUNTIF(A1:Z1,"1") counts all 1's
=COUNTIF(A1:Z1,"0") counts all 0's

Then I Sum the results of both.

Here's another brainbuster for everyone:

Let's say I have A1:A4

Now if all cells in this range have values then I want to divide the sum of
this range by 4 = SUMIF(A1:A40)/4 to get the average of the 4 cells.

Now heres the tricky bit.

Lets say only 1, 2 or 3 of the cells have a value, how can I structure the
formula to evaluate the overall cell range to sum the cells then divide it
by the number of cells that actually have values to gain the average.

eg

= SUMIF(A1:A40)/3, then = SUMIF(A1:A40)/2 or = SUMIF(A1:A40)/1

To explain:

I have a % matrix that calculates if a certain time frame has been met on a
given day.

Lets use Monday, which has 4 trips calculated, so if all trips are done on
that day then I would average the % over the 4 trips. But if only 3 trips
are taken, then / by 3 trips.

The problem is I can't use a pre-designed formula of /4 if only 3 trips or
less are calculated, it will give me the wrong calculation.

Looking forward to everyones thought & ideas.

TIA
Regards
Mark.






 
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
Requiring data in certain cells jerminski73 Excel Worksheet Functions 2 November 21st 07 02:03 PM
Excel start-up requiring Frontpage disk? MAR Excel Discussion (Misc queries) 2 October 28th 07 09:16 PM
requiring a field cherrynich Excel Worksheet Functions 1 July 10th 06 10:00 PM
Formulas requiring a time stamp Major Tomm Excel Worksheet Functions 2 August 24th 05 11:19 PM
Formula requiring two different criterias MJMP Excel Worksheet Functions 8 March 1st 05 10:13 PM


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