Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 57
Default Averages with conditions....

Hello,

I need serious help with a couple of formulas.

1st- I am trying to average a row of numbers but need it to not include
numbers in that crtain row if row 7 & 9 are both zeros in that specific
column (I need to do this for rows 7 & 9 - cells G7 & G9). Is there a way to
do this?

2nd- The dollar amounts in row 10 come from other sheets. I would also like
it to only average the amounts if 7 & 9 are not both zeros.


A B C D E
F G
6 Date 12/5/08 12/5/08 12/5/08 12/5/08 12/5/08
Averages
7 Rehab Count 3 4 3 0
0 2.50
8
9 Demo Count 5 7 1 3
0 4.00
10 Costs $670.72 $880.64 $562.35 $539.31 $0.00
$663.25


Thank or any help you can provide!

Scott A

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 915
Default Averages with conditions....

Scott A wrote:
Hello,

I need serious help with a couple of formulas.

1st- I am trying to average a row of numbers but need it to not include
numbers in that crtain row if row 7 & 9 are both zeros in that specific
column (I need to do this for rows 7 & 9 - cells G7 & G9). Is there a way to
do this?

2nd- The dollar amounts in row 10 come from other sheets. I would also like
it to only average the amounts if 7 & 9 are not both zeros.


A B C D E
F G
6 Date 12/5/08 12/5/08 12/5/08 12/5/08 12/5/08
Averages
7 Rehab Count 3 4 3 0
0 2.50
8
9 Demo Count 5 7 1 3
0 4.00
10 Costs $670.72 $880.64 $562.35 $539.31 $0.00
$663.25


Thank or any help you can provide!

Scott A



Try this array* formula for average of cells in row 7:
=AVERAGE(IF(B7:F7+B9:F9<0,B7:F7))

Replace the final "B7:F7" with "B9:F9" or "B10:F10" for the other two.

*Array formulas must be committed by pressing Ctrl+Shift+Enter, do not
just press Enter or Tab.
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 57
Default Averages with conditions....

That worked great, Thank you!

"smartin" wrote:

Scott A wrote:
Hello,

I need serious help with a couple of formulas.

1st- I am trying to average a row of numbers but need it to not include
numbers in that crtain row if row 7 & 9 are both zeros in that specific
column (I need to do this for rows 7 & 9 - cells G7 & G9). Is there a way to
do this?

2nd- The dollar amounts in row 10 come from other sheets. I would also like
it to only average the amounts if 7 & 9 are not both zeros.


A B C D E
F G
6 Date 12/5/08 12/5/08 12/5/08 12/5/08 12/5/08
Averages
7 Rehab Count 3 4 3 0
0 2.50
8
9 Demo Count 5 7 1 3
0 4.00
10 Costs $670.72 $880.64 $562.35 $539.31 $0.00
$663.25


Thank or any help you can provide!

Scott A



Try this array* formula for average of cells in row 7:
=AVERAGE(IF(B7:F7+B9:F9<0,B7:F7))

Replace the final "B7:F7" with "B9:F9" or "B10:F10" for the other two.

*Array formulas must be committed by pressing Ctrl+Shift+Enter, do not
just press Enter or Tab.

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
Countif Conditions - Use of conditions that vary by cell value JonTarg Excel Discussion (Misc queries) 1 May 30th 08 01:21 PM
2 Conditions + Sum of a colum matching those conditions Jeffa Excel Worksheet Functions 5 June 8th 07 12:14 AM
shade cells based on conditions - i have more than 3 conditions Mo2 Excel Worksheet Functions 3 March 30th 07 07:19 AM
How to multiple conditions to validate more than 2 conditions to . Bhuvana Govind Excel Worksheet Functions 1 January 28th 05 07:07 PM
Averages Karen Excel Worksheet Functions 3 January 5th 05 10:02 PM


All times are GMT +1. The time now is 09:13 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"