Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-06-2015, 10:10 AM
lynchbro lynchbro is offline Taking Averages with N/A's Windows 8 Taking Averages with N/A's Office 2010 64bit
Advanced Beginner
Taking Averages with N/A's
 
Join Date: Jun 2014
Location: New York
Posts: 41
lynchbro is on a distinguished road
Default Taking Averages with N/A's

I am trying to take the quarterly average days for report deliverables, but some of the months the report is N/A.

Does anyone know a formula to not use the months with the N/A and only average the reports that have a number value? But if all 3 months are N/A the return result should be N/A.

My monthly results are not in a row. Month 1=column G. Month 2=column K. Month 3=column O.

Any help is greatly appreciated!!!
Reply With Quote
  #2  
Old 01-07-2015, 07:42 AM
gebobs gebobs is offline Taking Averages with N/A's Windows 7 64bit Taking Averages with N/A's Office 2010 64bit
Expert
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default

Try this:

=AVERAGE(IF(ISNUMBER(G1,K1,O1),G1,K1,O1))

This is an array function so you need to press CNTL-SHIFT-ENTER to enter the formula.
Reply With Quote
  #3  
Old 01-07-2015, 08:09 AM
lynchbro lynchbro is offline Taking Averages with N/A's Windows 8 Taking Averages with N/A's Office 2010 64bit
Advanced Beginner
Taking Averages with N/A's
 
Join Date: Jun 2014
Location: New York
Posts: 41
lynchbro is on a distinguished road
Default

thanks! I forgot to post this as solved. I got it last night with this:

=IF(AND(G4="N/A",K4="N/A",O4="N/A"),"N/A",SUM(IF(G4="N/A",0,G4),IF(K4="N/A",0,K4),IF(O4="N/A",0,O4))/SUM(IF(G4="N/A",0,1),IF(K4="N/A",0,1),IF(O4="N/A",0,1)))

Which also solves for the issue if the denominator is zero.

Happy New Year!!
Reply With Quote
  #4  
Old 01-07-2015, 08:20 AM
gebobs gebobs is offline Taking Averages with N/A's Windows 7 64bit Taking Averages with N/A's Office 2010 64bit
Expert
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default

Ew...that's ugly. :-)
Reply With Quote
  #5  
Old 01-07-2015, 08:24 AM
lynchbro lynchbro is offline Taking Averages with N/A's Windows 8 Taking Averages with N/A's Office 2010 64bit
Advanced Beginner
Taking Averages with N/A's
 
Join Date: Jun 2014
Location: New York
Posts: 41
lynchbro is on a distinguished road
Default

HAHA. But it works.

When I went to use yours it said there are too many arguments. I think this can only be used for 2 cell references? When I input the G & K "highlight" cell references but the O is not...
Reply With Quote
  #6  
Old 01-07-2015, 10:42 AM
gebobs gebobs is offline Taking Averages with N/A's Windows 7 64bit Taking Averages with N/A's Office 2010 64bit
Expert
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default

Quote:
Originally Posted by lynchbro View Post
HAHA. But it works.

When I went to use yours it said there are too many arguments. I think this can only be used for 2 cell references? When I input the G & K "highlight" cell references but the O is not...
Yeah...I think it needs to be a continuous range. No matter. Sometimes all you're left with is ugly. Just put a bag over her head and carry on.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Taking Averages with N/A's Taking away text-wrap ShankedS Word Tables 9 01-13-2015 01:25 PM
Moving averages of data points with a changing sampling interval jrosen Excel 3 10-23-2014 06:26 AM
Taking pictures out of text boxes cryptogram Word 15 03-10-2013 04:01 AM
MS word taking over file extensions jakes Word 0 10-22-2010 01:35 AM
WORD taking up entire CPU!!! pureride Word 0 03-28-2008 09:46 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:12 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft