Wednesday, December 03, 2008   
  Search   
 
Register  Login  
Forums  
     Minimize  

Welcome to MeraWindows forums.

Thank you for being at the Microsoft Windows Community Site. You may have to register before posting in forums. It's absolutely free. After registering, you can get all the benefits available to our registered members, you can access our Downloads section, you can participate in contests, etc. You can post in forums in English as well as in Hindi, in fact we encourage you to use Hindi in your posts. If you have any problem with registration or login, please contact us.

     
  


 
  Microsoft Windows Forums  Microsoft Offic...  Microsoft Excel  Solution to common summing problems
Previous Previous
 
Next Next
New Post 11/13/2007 5:19 AM
User is offline Ashish Mathur
89 posts
www.ashishmathur.com
Member




Solution to common summing problems 

Hi,

Sorry for being away for a while.  I'll now try to submit posts more regularly.  in this post, i will discuss a worksrounf to dealing with error values while summing:

Let's say data is arranged in the following manner:

Name             Marks
Ashish            20
Mahesh          30
Ravi                 40
Suresh            50

One can simply use the sum function on column B to get a result.  However, if Assume that instead of 50, you have an error value, say #DIV/0!.  Now if you use the SUM() function, you will get a #DIV/0! error.  To avoid this error, you haver to use the SUMIF() function.  The SUMIF() function would be as follows:

SUMIF(B3:B6,"<>#DIV/0!").  What this formula essentially does is that it sums up all the non-error values in the range B3:B6.  You may also want to go through the SUMIF() function in Excel's Help menu.

Now, let's take the problem a step further and assume that instead of 50 we have #DIV/0! and instead of 40 we have #N/A.  Therefore, we now have 2 error values in the range B3:B6.  The SUM() function would return #N/A.  There are two workarounds to this problem:

Solution 1: SUMIF(B3:B6,">-9.99999999999999E+307").  What are are essentailly telling Excel to do here is that sum all values in range B3:B6 which are greater than the smallest number which can be input in Excel.

Solution 2: SUM(IF((NOT(ISERROR(B3:B6))),B3:B6)).  Please note that this is an array formula (which is entered by pressing Ctrl+Shift+Enter instead of the conventional Enter).

Hope this information helps.  Please feel free to post your Microsoft Excel queries here.

 


For Microsoft Excel trainings in India, please visit http://ashishmathur.com/training.aspx

Regards,

Ashish Mathur - View Ashish Mathur's profile on LinkedIn
Microsoft Excel MVP
www.ashishmathur.com

 
New Post 11/13/2007 8:26 AM
User is offline techfreak
1141 posts
gizmos4fun.blogspot.com
MW Addict




Re: Solution to common summing problems 
Modified By techfreak  on 11/13/2007 8:30:40 AM)

Nice post.. I was wanting some Excel Tips... anyways ill keep asking u.. hope to see more of ur posts.. Thanx for the nice tut


Gizmos4fun
 
New Post 11/13/2007 3:20 PM
User is offline Vishal Gupta
6366 posts
www.AskVG.com
Ultimate Member








Re: Solution to common summing problems 

Nice Ashish and welcome back. Your Excel tuts are always great.


Tweaking with Vishal

How to Use Smiley Code in Forum?
Promote MeraWindows at Your Blog / Site
Read Forum Guidelines
 
Previous Previous
 
Next Next
  Microsoft Windows Forums  Microsoft Offic...  Microsoft Excel  Solution to common summing problems


   Get Your Own E-Mail Account @MeraWindows.com Minimize  
New Page 1 New Page 1
Show your cool quotient with @merawindows.com email account