Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
aka_krakur
 
Posts: n/a
Default =Average(if( formula using different worksheets

I have no problem using the following formula
{=AVERAGE(IF(C10:H10<0,C10:H10))} to get the average eliminating values of 0
but what if I have 2 or more worksheets that I need a running daily average
from for example I tried writing the formula as follows:
{=AVERAGE(IF(C10:H10,'Wk 1 - P'!C10:H10<0,C10:H10,'Wk 1 - P'!C10:H10)}

When I hit <Ctrl <Shift <Enter I get a Microsoft Excel box that pops up
that reads: "You've entered too many arguments for this function. To get
help...."
I have tried re-writing it using more parenthesis and such, but I just can't
seem to figure it out. Is it even possible?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bruno Campanini
 
Posts: n/a
Default =Average(if( formula using different worksheets

"aka_krakur" wrote in message
...
I have no problem using the following formula
{=AVERAGE(IF(C10:H10<0,C10:H10))} to get the average eliminating values
of 0
but what if I have 2 or more worksheets that I need a running daily
average
from for example I tried writing the formula as follows:
{=AVERAGE(IF(C10:H10,'Wk 1 - P'!C10:H10<0,C10:H10,'Wk 1 - P'!C10:H10)}

When I hit <Ctrl <Shift <Enter I get a Microsoft Excel box that pops up
that reads: "You've entered too many arguments for this function. To get
help...."
I have tried re-writing it using more parenthesis and such, but I just
can't
seem to figure it out. Is it even possible?


The IF clause has 4 arguments
C10:H10
'Wk 1 - P'!C10:H10<0
C10:H10
'Wk 1 - P'!C10:H10
instead of 3.

What do you want to do?

Bruno




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
aka_krakur
 
Posts: n/a
Default =Average(if( formula using different worksheets

I am wanting to get the "daily" average in cells c10:h10 in 2 or more
different worksheets (Call them Wk1 & Wk2 let's say)..and I want the average
to exclude zeros as some days of the week have a total of zero for that
particular day.


"Bruno Campanini" wrote:

"aka_krakur" wrote in message
...
I have no problem using the following formula
{=AVERAGE(IF(C10:H10<0,C10:H10))} to get the average eliminating values
of 0
but what if I have 2 or more worksheets that I need a running daily
average
from for example I tried writing the formula as follows:
{=AVERAGE(IF(C10:H10,'Wk 1 - P'!C10:H10<0,C10:H10,'Wk 1 - P'!C10:H10)}

When I hit <Ctrl <Shift <Enter I get a Microsoft Excel box that pops up
that reads: "You've entered too many arguments for this function. To get
help...."
I have tried re-writing it using more parenthesis and such, but I just
can't
seem to figure it out. Is it even possible?


The IF clause has 4 arguments
C10:H10
'Wk 1 - P'!C10:H10<0
C10:H10
'Wk 1 - P'!C10:H10
instead of 3.

What do you want to do?

Bruno





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ashish Mathur
 
Posts: n/a
Default =Average(if( formula using different worksheets

Hi,

Try this array formula (Ctrl+Shift+Enter)

{=AVERAGE(IF(and(C10:H10<0,'Wk 1 - P'!C10:H10<0),C10:H10,'Wk 1 -
P'!C10:H10))}

Regards,

"aka_krakur" wrote:

I have no problem using the following formula
{=AVERAGE(IF(C10:H10<0,C10:H10))} to get the average eliminating values of 0
but what if I have 2 or more worksheets that I need a running daily average
from for example I tried writing the formula as follows:
{=AVERAGE(IF(C10:H10,'Wk 1 - P'!C10:H10<0,C10:H10,'Wk 1 - P'!C10:H10)}

When I hit <Ctrl <Shift <Enter I get a Microsoft Excel box that pops up
that reads: "You've entered too many arguments for this function. To get
help...."
I have tried re-writing it using more parenthesis and such, but I just can't
seem to figure it out. Is it even possible?

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
how to use input formula from several worksheets in excel? Mona Excel Worksheet Functions 1 September 16th 05 01:03 AM
use central formula on many worksheets, central affect allsheets MidNiteRaver Excel Worksheet Functions 0 July 25th 05 06:08 PM
How do I copy a reference formula onto multiple worksheets Nina@ramaz Excel Worksheet Functions 1 July 21st 05 03:39 PM
Formula between two worksheets sheri Excel Worksheet Functions 1 July 16th 05 09:46 PM
Formula which adds together worksheets Ant Excel Discussion (Misc queries) 1 July 1st 05 03:50 PM


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