#1   Report Post  
ynissel
 
Posts: n/a
Default Formula errors

I am summing up bunch of lookup tables. My problem is that some of the
lookups will result in an N/A. Is there a way in my sum formula to ignore
the N/A s ?
Thanks,
Yosef

i.e.
=sum(a1:a3) and sometime a2 will be #n/A.
  #2   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

Array enter (enter using Ctrl-Shift-Enter)

=SUM(IF(ISERROR(A1:A3),0,A1:A3))

--
HTH,
Bernie
MS Excel MVP


"ynissel" wrote in message
...
I am summing up bunch of lookup tables. My problem is that some of the
lookups will result in an N/A. Is there a way in my sum formula to ignore
the N/A s ?
Thanks,
Yosef

i.e.
=sum(a1:a3) and sometime a2 will be #n/A.



  #3   Report Post  
ynissel
 
Posts: n/a
Default

Thanks !
My actual formula is a little more complicated.
=MROUND(IF(COUNT(H3:L3)4,AVERAGE(LARGE(H3:L3,{1,2 ,3,4})),IF(COUNT(H3:L3)3,AVERAGE(LARGE(H3:L3,{1,2 ,3})),AVERAGE(H3:L3))),0.125)

Is there any way to just ignore the error or do I have to put the if
statement into each average.

"Bernie Deitrick" wrote:

Array enter (enter using Ctrl-Shift-Enter)

=SUM(IF(ISERROR(A1:A3),0,A1:A3))

--
HTH,
Bernie
MS Excel MVP


"ynissel" wrote in message
...
I am summing up bunch of lookup tables. My problem is that some of the
lookups will result in an N/A. Is there a way in my sum formula to ignore
the N/A s ?
Thanks,
Yosef

i.e.
=sum(a1:a3) and sometime a2 will be #n/A.




  #4   Report Post  
Morrigan
 
Posts: n/a
Default


=SUMIF(A:A,"0")+SUMIF(A:A,"<=0")


ynissel Wrote:
I am summing up bunch of lookup tables. My problem is that some of the
lookups will result in an N/A. Is there a way in my sum formula to
ignore
the N/A s ?
Thanks,
Yosef

i.e.
=sum(a1:a3) and sometime a2 will be #n/A.



--
Morrigan
------------------------------------------------------------------------
Morrigan's Profile: http://www.excelforum.com/member.php...fo&userid=7094
View this thread: http://www.excelforum.com/showthread...hreadid=388393

  #5   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

Yosef,

It would be easier of set up a new table in a new range to reference, using

=IF(ISERROR(H3),"",H3)

or modify your existing formulas in H3:L3

=IF(ISERROR(Old Formula),"",Old Formula)

HTH,
Bernie
MS Excel MVP


"ynissel" wrote in message
...
Thanks !
My actual formula is a little more complicated.
=MROUND(IF(COUNT(H3:L3)4,AVERAGE(LARGE(H3:L3,{1,2 ,3,4})),IF(COUNT(H3:L3)3,AVERAGE(LARGE(H3:L3,{1,2 ,3})),AVERAGE(H3:L3))),0.125)

Is there any way to just ignore the error or do I have to put the if
statement into each average.

"Bernie Deitrick" wrote:

Array enter (enter using Ctrl-Shift-Enter)

=SUM(IF(ISERROR(A1:A3),0,A1:A3))

--
HTH,
Bernie
MS Excel MVP


"ynissel" wrote in message
...
I am summing up bunch of lookup tables. My problem is that some of the
lookups will result in an N/A. Is there a way in my sum formula to ignore
the N/A s ?
Thanks,
Yosef

i.e.
=sum(a1:a3) and sometime a2 will be #n/A.








  #6   Report Post  
ynissel
 
Posts: n/a
Default

thants what I though - a pain in the rear but it will work.
Thanks

"Bernie Deitrick" wrote:

Yosef,

It would be easier of set up a new table in a new range to reference, using

=IF(ISERROR(H3),"",H3)

or modify your existing formulas in H3:L3

=IF(ISERROR(Old Formula),"",Old Formula)

HTH,
Bernie
MS Excel MVP


"ynissel" wrote in message
...
Thanks !
My actual formula is a little more complicated.
=MROUND(IF(COUNT(H3:L3)4,AVERAGE(LARGE(H3:L3,{1,2 ,3,4})),IF(COUNT(H3:L3)3,AVERAGE(LARGE(H3:L3,{1,2 ,3})),AVERAGE(H3:L3))),0.125)

Is there any way to just ignore the error or do I have to put the if
statement into each average.

"Bernie Deitrick" wrote:

Array enter (enter using Ctrl-Shift-Enter)

=SUM(IF(ISERROR(A1:A3),0,A1:A3))

--
HTH,
Bernie
MS Excel MVP


"ynissel" wrote in message
...
I am summing up bunch of lookup tables. My problem is that some of the
lookups will result in an N/A. Is there a way in my sum formula to ignore
the N/A s ?
Thanks,
Yosef

i.e.
=sum(a1:a3) and sometime a2 will be #n/A.






  #7   Report Post  
Gord Dibben
 
Posts: n/a
Default

If you wish to alter all your existing formulas run this macro on the cells.

Sub NATrapAdd()
Dim myStr As String
Dim cel As Range
For Each cel In Selection
If cel.HasFormula = True Then
If Not cel.Formula Like "=IF(ISNA*" Then
myStr = Right(cel.Formula, Len(cel.Formula) - 1)
cel.Value = "=IF(ISNA(" & myStr & "),""""," & myStr & ")"
End If
End If
Next
End Sub


Gord Dibben Excel MVP

On Tue, 19 Jul 2005 10:21:03 -0700, "ynissel"
wrote:

thants what I though - a pain in the rear but it will work.
Thanks

"Bernie Deitrick" wrote:

Yosef,

It would be easier of set up a new table in a new range to reference, using

=IF(ISERROR(H3),"",H3)

or modify your existing formulas in H3:L3

=IF(ISERROR(Old Formula),"",Old Formula)

HTH,
Bernie
MS Excel MVP


"ynissel" wrote in message
...
Thanks !
My actual formula is a little more complicated.
=MROUND(IF(COUNT(H3:L3)4,AVERAGE(LARGE(H3:L3,{1,2 ,3,4})),IF(COUNT(H3:L3)3,AVERAGE(LARGE(H3:L3,{1,2 ,3})),AVERAGE(H3:L3))),0.125)

Is there any way to just ignore the error or do I have to put the if
statement into each average.

"Bernie Deitrick" wrote:

Array enter (enter using Ctrl-Shift-Enter)

=SUM(IF(ISERROR(A1:A3),0,A1:A3))

--
HTH,
Bernie
MS Excel MVP


"ynissel" wrote in message
...
I am summing up bunch of lookup tables. My problem is that some of the
lookups will result in an N/A. Is there a way in my sum formula to ignore
the N/A s ?
Thanks,
Yosef

i.e.
=sum(a1:a3) and sometime a2 will be #n/A.







  #8   Report Post  
ynissel
 
Posts: n/a
Default

Thanks - this will save me a lot of time !!

"Gord Dibben" wrote:

If you wish to alter all your existing formulas run this macro on the cells.

Sub NATrapAdd()
Dim myStr As String
Dim cel As Range
For Each cel In Selection
If cel.HasFormula = True Then
If Not cel.Formula Like "=IF(ISNA*" Then
myStr = Right(cel.Formula, Len(cel.Formula) - 1)
cel.Value = "=IF(ISNA(" & myStr & "),""""," & myStr & ")"
End If
End If
Next
End Sub


Gord Dibben Excel MVP

On Tue, 19 Jul 2005 10:21:03 -0700, "ynissel"
wrote:

thants what I though - a pain in the rear but it will work.
Thanks

"Bernie Deitrick" wrote:

Yosef,

It would be easier of set up a new table in a new range to reference, using

=IF(ISERROR(H3),"",H3)

or modify your existing formulas in H3:L3

=IF(ISERROR(Old Formula),"",Old Formula)

HTH,
Bernie
MS Excel MVP


"ynissel" wrote in message
...
Thanks !
My actual formula is a little more complicated.
=MROUND(IF(COUNT(H3:L3)4,AVERAGE(LARGE(H3:L3,{1,2 ,3,4})),IF(COUNT(H3:L3)3,AVERAGE(LARGE(H3:L3,{1,2 ,3})),AVERAGE(H3:L3))),0.125)

Is there any way to just ignore the error or do I have to put the if
statement into each average.

"Bernie Deitrick" wrote:

Array enter (enter using Ctrl-Shift-Enter)

=SUM(IF(ISERROR(A1:A3),0,A1:A3))

--
HTH,
Bernie
MS Excel MVP


"ynissel" wrote in message
...
I am summing up bunch of lookup tables. My problem is that some of the
lookups will result in an N/A. Is there a way in my sum formula to ignore
the N/A s ?
Thanks,
Yosef

i.e.
=sum(a1:a3) and sometime a2 will be #n/A.








Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a check mark box MarthaSue Setting up and Configuration of Excel 18 April 28th 05 12:31 AM
Named SUM Formula with relative refernce(s) Werner Rohrmoser Excel Worksheet Functions 2 April 20th 05 04:56 PM
Frequency formula Curious Excel Worksheet Functions 1 April 12th 05 09:49 PM
Multiple Condition Sumif Formula momtoaj Excel Worksheet Functions 3 April 6th 05 04:06 PM
Excel 2003 - Formula result shows as 0:00 Serena Excel Worksheet Functions 4 November 11th 04 10:18 PM


All times are GMT +1. The time now is 08:20 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"