![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Location: Bill
Posts: 2
|
I need to average the reults of 7 columns. Some columns are 0. How do I average columns with values greater than 0?
|
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
Aladin |
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Posts: 76
|
[ This Message was edited by: John McGraw on 2002-04-19 13:23 ] |
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
{=AVERAGE(IF(range>0,range))}
Or, if you meant <>0 simply... {=AVERAGE(IF(range,range))} Note: These are array formulas which must be entered using the Control+Shift+Enter key combination. The outermost braces, { }, are not entered by you -- they're supplied by Excel in recognition of a properly entered array formula. |
|
|
|
|
|
#5 |
|
New Member
Join Date: Apr 2002
Location: Bill
Posts: 2
|
Thanks Aladin, it worked. Have a great day!
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|