Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 30
Default Average with more than one IF statement

Hi,
I have used the formula from Bob Philips (10th Sept 06) in my worksheet:
=AVERAGE(IF(ISNUMBER('eligible 2% - 1jan'!U3:U501),'eligible 2% -
1jan'!U3:U501)).
I have to get the average also per department, so I have to check whether it
is the correct department before it calculates the average. Not all info is
filled in the U column.
For the summation I have used the following: =SUMIF('eligible 2% -
1jan'!$A$3:$A$501,"mt*",'eligible 2% - 1jan'!$AB$3:$AB$501). ex* being a
department starting with mt. But for average I have to omit the zero values.
Any help is appreciated. Thanks, Lupe
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 30
Default Average with more than one IF statement

Hi,
I have tried this formula, it works, but it does not work with the mt*. I
need to average amounts for various departments (various abbreviations) that
we need to group together.
=AVERAGE(IF((ISNUMBER(D1:D100))*(E1:E100="mt"),D1: D100))
Lupe

"Lupe" wrote:

Hi,
I have used the formula from Bob Philips (10th Sept 06) in my worksheet:
=AVERAGE(IF(ISNUMBER('eligible 2% - 1jan'!U3:U501),'eligible 2% -
1jan'!U3:U501)).
I have to get the average also per department, so I have to check whether it
is the correct department before it calculates the average. Not all info is
filled in the U column.
For the summation I have used the following: =SUMIF('eligible 2% -
1jan'!$A$3:$A$501,"mt*",'eligible 2% - 1jan'!$AB$3:$AB$501). ex* being a
department starting with mt. But for average I have to omit the zero values.
Any help is appreciated. Thanks, Lupe

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Average with more than one IF statement

=AVERAGE(IF((ISNUMBER(D1:D100))*(left(E1:E100,2)=" mt"),D1:D100))



Lupe wrote:

Hi,
I have tried this formula, it works, but it does not work with the mt*. I
need to average amounts for various departments (various abbreviations) that
we need to group together.
=AVERAGE(IF((ISNUMBER(D1:D100))*(E1:E100="mt"),D1: D100))
Lupe

"Lupe" wrote:

Hi,
I have used the formula from Bob Philips (10th Sept 06) in my worksheet:
=AVERAGE(IF(ISNUMBER('eligible 2% - 1jan'!U3:U501),'eligible 2% -
1jan'!U3:U501)).
I have to get the average also per department, so I have to check whether it
is the correct department before it calculates the average. Not all info is
filled in the U column.
For the summation I have used the following: =SUMIF('eligible 2% -
1jan'!$A$3:$A$501,"mt*",'eligible 2% - 1jan'!$AB$3:$AB$501). ex* being a
department starting with mt. But for average I have to omit the zero values.
Any help is appreciated. Thanks, Lupe


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 30
Default Average with more than one IF statement

Thanks Dave.
The formula works. Is this the argument (LEFT) I should use also in my other
formulas of SUMIF's? I assume it is better than the *.
Regards, Lupe

"Dave Peterson" wrote:

=AVERAGE(IF((ISNUMBER(D1:D100))*(left(E1:E100,2)=" mt"),D1:D100))



Lupe wrote:

Hi,
I have tried this formula, it works, but it does not work with the mt*. I
need to average amounts for various departments (various abbreviations) that
we need to group together.
=AVERAGE(IF((ISNUMBER(D1:D100))*(E1:E100="mt"),D1: D100))
Lupe

"Lupe" wrote:

Hi,
I have used the formula from Bob Philips (10th Sept 06) in my worksheet:
=AVERAGE(IF(ISNUMBER('eligible 2% - 1jan'!U3:U501),'eligible 2% -
1jan'!U3:U501)).
I have to get the average also per department, so I have to check whether it
is the correct department before it calculates the average. Not all info is
filled in the U column.
For the summation I have used the following: =SUMIF('eligible 2% -
1jan'!$A$3:$A$501,"mt*",'eligible 2% - 1jan'!$AB$3:$AB$501). ex* being a
department starting with mt. But for average I have to omit the zero values.
Any help is appreciated. Thanks, Lupe


--

Dave Peterson

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Average with more than one IF statement

=sumif() can support wildcards (like mt*).

You don't need/want to change it. You'll see the other problem when/if you try
changing the =sumif() formula.

Lupe wrote:

Thanks Dave.
The formula works. Is this the argument (LEFT) I should use also in my other
formulas of SUMIF's? I assume it is better than the *.
Regards, Lupe

"Dave Peterson" wrote:

=AVERAGE(IF((ISNUMBER(D1:D100))*(left(E1:E100,2)=" mt"),D1:D100))



Lupe wrote:

Hi,
I have tried this formula, it works, but it does not work with the mt*. I
need to average amounts for various departments (various abbreviations) that
we need to group together.
=AVERAGE(IF((ISNUMBER(D1:D100))*(E1:E100="mt"),D1: D100))
Lupe

"Lupe" wrote:

Hi,
I have used the formula from Bob Philips (10th Sept 06) in my worksheet:
=AVERAGE(IF(ISNUMBER('eligible 2% - 1jan'!U3:U501),'eligible 2% -
1jan'!U3:U501)).
I have to get the average also per department, so I have to check whether it
is the correct department before it calculates the average. Not all info is
filled in the U column.
For the summation I have used the following: =SUMIF('eligible 2% -
1jan'!$A$3:$A$501,"mt*",'eligible 2% - 1jan'!$AB$3:$AB$501). ex* being a
department starting with mt. But for average I have to omit the zero values.
Any help is appreciated. Thanks, Lupe


--

Dave Peterson


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 30
Default Average with more than one IF statement

Dave,
Thanks again.
Lupe

"Dave Peterson" wrote:

=sumif() can support wildcards (like mt*).

You don't need/want to change it. You'll see the other problem when/if you try
changing the =sumif() formula.

Lupe wrote:

Thanks Dave.
The formula works. Is this the argument (LEFT) I should use also in my other
formulas of SUMIF's? I assume it is better than the *.
Regards, Lupe

"Dave Peterson" wrote:

=AVERAGE(IF((ISNUMBER(D1:D100))*(left(E1:E100,2)=" mt"),D1:D100))



Lupe wrote:

Hi,
I have tried this formula, it works, but it does not work with the mt*. I
need to average amounts for various departments (various abbreviations) that
we need to group together.
=AVERAGE(IF((ISNUMBER(D1:D100))*(E1:E100="mt"),D1: D100))
Lupe

"Lupe" wrote:

Hi,
I have used the formula from Bob Philips (10th Sept 06) in my worksheet:
=AVERAGE(IF(ISNUMBER('eligible 2% - 1jan'!U3:U501),'eligible 2% -
1jan'!U3:U501)).
I have to get the average also per department, so I have to check whether it
is the correct department before it calculates the average. Not all info is
filled in the U column.
For the summation I have used the following: =SUMIF('eligible 2% -
1jan'!$A$3:$A$501,"mt*",'eligible 2% - 1jan'!$AB$3:$AB$501). ex* being a
department starting with mt. But for average I have to omit the zero values.
Any help is appreciated. Thanks, Lupe

--

Dave Peterson


--

Dave Peterson

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
Conditional Statement to Compute Average goudmic Excel Worksheet Functions 1 August 25th 06 03:14 PM
plotted Average Micayla Bergen Charts and Charting in Excel 4 July 15th 05 12:13 PM
What is this kind of average called? havocdragon Excel Worksheet Functions 3 June 24th 05 05:10 PM
Do I need a sumif or sum of a vlookup formula? PeterB Excel Worksheet Functions 0 June 1st 05 12:23 PM
IF Statement with Average Function results in #Value! Paul Excel Discussion (Misc queries) 5 December 28th 04 08:11 AM


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