![]() |
![]() |
|
|||||||
| 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 |
|
Board Regular
Join Date: Apr 2002
Location: Fort Knox, KY
Posts: 249
|
I have the following:
A1=230 A2=240 A3=153 A4-170 A5=210 A6=0 A7=214 B1=Passed B2=Passed B3=Failed B4=Failed B5=Failed B6=Not Tested B7=Passed How could I have C1 reflect the average from the above by adding the scores of only those who have "Passed" and "Failed", and obtaining an average of both? If I use all, Passed, Failed and Not tested, I wont have an accurate number, I only need those two, but to add the numbers? Thanks! |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
|
use the following array formula:
=AVERAGE(IF(B1:B7<>"Not Tested",A1:A7)) Regards!
__________________
Regards! Yogi Anand, D.Eng, P.E. Energy Efficient Building Network LLC www.energyefficientbuild.com |
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
=SUMIF(B1:B7,"<>Not Tested",A1:A7)/MAX(1,COUNTIF(B1:B7,"<>Not Tested")) computes the desired average. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|