Averaging results but one has N/A

avalanche

New Member
Joined
Oct 9, 2009
Messages
17
Hi,

I just received some great help on one question, and I need to follow up with another. On my Master spreadsheet, I have one tab that looks to the six other employee worsheets and averages out the "% Met" and brings that average into a this one master "Rollup" file.

However, one employee has N/A in the field (rather than 98.0% for ex.).
This then gives me a #VALUE result instead of an average of the 6 employees. Is there a way to write the formula to account for N/A ?

Thanks,
Tom
 
=SUMIF(C22:C33,">0")/MAX(1,COUNTIF(C22:C33,">0"))

should not be affected by an #N/A in C22:C33.

Therein the problem lies, these are not contiguous ranges (they are each on separate worksheets), and it is not an #N/A error, but rather a string value "N/A" entered by someone else.

I'm glad you popped in on this though, i'm struggling trying to get this figured out as well (although the easiest solution would be to just clear the cells with "N/A" :biggrin:)
 
Upvote 0

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Taking the idea that Aladin posted, testing for >0 rather than ISNUMBER, I came up with this working solution:

Note, this will still require the CTRL+SHIFT+ENTER

=SUM(IF('Jenny Boyd'!M5>0,'Jenny Boyd'!M5,""),IF('Kimberly Britton'!M5>0,'Kimberly Britton'!M5,""),IF('Karzett Parham'!M5>0,'Karzett Parham'!M5,""))/COUNT(IF('Jenny Boyd'!M5>0,'Jenny Boyd'!M5,""),IF('Kimberly Britton'!M5>0,'Kimberly Britton'!M5,""),IF('Karzett Parham'!M5>0,'Karzett Parham'!M5,""))
 
Upvote 0
Hey Aladin, thanks for chiming in but that still didnt work. Since I'm looking to all these multiple sheets, it still returns #VALUE.
 
Upvote 0
HOT ****! That worked! Thank you to both of you and I've told all my coworkers around me about Mr.Excel for help....you guys rock THANK YOU!
 
Upvote 0

Forum statistics

Threads
1,225,155
Messages
6,183,208
Members
453,151
Latest member
Lizamaison

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top