Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Prorated Average

I have a forumla to find a sum of a set of numbers looking something like this:
=SUM(A1, B1, C1, D1, E1)

There are some cases where one of these may be blank (i.e., a missing value
for A1, B1, C1, D1, or E1 is missing).

I'm looking for a way to fill in that missing value with the average of the
values that aren't missing...so....

if E1 is missing, I want Excel to automatically replace it with the averge
of A1, B1, C1, and D1, and plug it back into the original equation to come up
with the SUM.

Any ideas?

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 94
Default Prorated Average

Multiply SUM(a1,b2,etc) by the ratio of cells in the range to non zero
cells in the range

counta and countif(range,0) come in handy here

somethinglikeant




Sunbronx wrote:

I have a forumla to find a sum of a set of numbers looking something like this:
=SUM(A1, B1, C1, D1, E1)

There are some cases where one of these may be blank (i.e., a missing value
for A1, B1, C1, D1, or E1 is missing).

I'm looking for a way to fill in that missing value with the average of the
values that aren't missing...so....

if E1 is missing, I want Excel to automatically replace it with the averge
of A1, B1, C1, and D1, and plug it back into the original equation to come up
with the SUM.

Any ideas?

Thanks!


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Prorated Average

=AVERAGE(A1:E1)*5

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Sunbronx" wrote in message
...
I have a forumla to find a sum of a set of numbers looking something like

this:
=SUM(A1, B1, C1, D1, E1)

There are some cases where one of these may be blank (i.e., a missing

value
for A1, B1, C1, D1, or E1 is missing).

I'm looking for a way to fill in that missing value with the average of

the
values that aren't missing...so....

if E1 is missing, I want Excel to automatically replace it with the averge
of A1, B1, C1, and D1, and plug it back into the original equation to come

up
with the SUM.

Any ideas?

Thanks!



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
Calc Prorated Cost based on Specific Days in a Given Month & Year Range (Revisited..) [email protected] Excel Discussion (Misc queries) 8 October 2nd 07 12:15 AM
Does anyone have a template to figure prorated wages TAXLADY Charts and Charting in Excel 0 April 2nd 07 07:20 PM
Prorated vacation formula required cdsgidget Excel Discussion (Misc queries) 4 March 14th 07 12:13 PM
xirr prorated? Vee623 Excel Worksheet Functions 1 March 27th 06 12:33 PM
Error Handling #N/A with AVERAGE Function - Average of values in Row Sam via OfficeKB.com Excel Worksheet Functions 13 July 31st 05 03:59 PM


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