Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
KC KC is offline
external usenet poster
 
Posts: 107
Default adding =if(iserror to formula

I've tried to add the =if(iserror to a formula, but I can't get it to work.
Can someone help me figure out what I'm doing wrong?

Original Formula:

SUMPRODUCT(--(LOB!$B$1:$B$333=$A34),--(LOB!$D$1:$D$333=B$32),(LOB!$I$1:$I$333))

Formula with =if(iserror in it - tells me i'm missing a parenthesis - but I
can't figure out where

=IF(ISERROR(SUMPRODUCT(--(LOB!$B$1:$B$333=$A34),--(LOB!$D$1:$D$333=B$32),(LOB!$I$1:$I$333),"",SUMPRO DUCT(--(LOB!$B$1:$B$333=$A34),--(LOB!$D$1:$D$333=B$32),(LOB!$I$1:$I$333))))
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default adding =if(iserror to formula

Now the formula syntax is corrected;

=IF(ISERROR(SUMPRODUCT(--(LOB!$B$1:$B$333=$A34),--(LOB!$D$1:$D$333=B$32),(LOB!$I$1:$I$333))),"",
SUMPRODUCT(--(LOB!$B$1:$B$333=$A34),--(LOB!$D$1:$D$333=B$32),(LOB!$I$1:$I$333)))

If this post helps click Yes
---------------
Jacob Skaria


"KC" wrote:

I've tried to add the =if(iserror to a formula, but I can't get it to work.
Can someone help me figure out what I'm doing wrong?

Original Formula:

SUMPRODUCT(--(LOB!$B$1:$B$333=$A34),--(LOB!$D$1:$D$333=B$32),(LOB!$I$1:$I$333))

Formula with =if(iserror in it - tells me i'm missing a parenthesis - but I
can't figure out where

=IF(ISERROR(SUMPRODUCT(--(LOB!$B$1:$B$333=$A34),--(LOB!$D$1:$D$333=B$32),(LOB!$I$1:$I$333),"",SUMPRO DUCT(--(LOB!$B$1:$B$333=$A34),--(LOB!$D$1:$D$333=B$32),(LOB!$I$1:$I$333))))

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default adding =if(iserror to formula

try this...

=IF(ISERROR(SUMPRODUCT(--(LOB!$B$1:$B$333=$A34),--(LOB!$D$1:$D$333=B$32),(LOB!$I$1:$I$333)),"",SUMPR ODUCT(--(LOB!$B$1:$B$333=$A34),--(LOB!$D$1:$D$333=B$32),(LOB!$I$1:$I$333))))

if this doesn't work, add another ) just before the end of your if test,
before this: ,"",

"KC" wrote:

I've tried to add the =if(iserror to a formula, but I can't get it to work.
Can someone help me figure out what I'm doing wrong?

Original Formula:

SUMPRODUCT(--(LOB!$B$1:$B$333=$A34),--(LOB!$D$1:$D$333=B$32),(LOB!$I$1:$I$333))

Formula with =if(iserror in it - tells me i'm missing a parenthesis - but I
can't figure out where

=IF(ISERROR(SUMPRODUCT(--(LOB!$B$1:$B$333=$A34),--(LOB!$D$1:$D$333=B$32),(LOB!$I$1:$I$333),"",SUMPRO DUCT(--(LOB!$B$1:$B$333=$A34),--(LOB!$D$1:$D$333=B$32),(LOB!$I$1:$I$333))))

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default adding =if(iserror to formula

=IF(ISERROR(SUMPRODUCT(--(LOB!$B$1:$B$333=$A34),--(LOB!$D$1:$D$333=B$32),(LOB!$I$1:$I$333))),"",SUMP RODUCT(--(LOB!$B$1:$B$333=$A34),--(LOB!$D$1:$D$333=B$32),(LOB!$I$1:$I$333)))
--
HTH...

Jim Thomlinson


"KC" wrote:

I've tried to add the =if(iserror to a formula, but I can't get it to work.
Can someone help me figure out what I'm doing wrong?

Original Formula:

SUMPRODUCT(--(LOB!$B$1:$B$333=$A34),--(LOB!$D$1:$D$333=B$32),(LOB!$I$1:$I$333))

Formula with =if(iserror in it - tells me i'm missing a parenthesis - but I
can't figure out where

=IF(ISERROR(SUMPRODUCT(--(LOB!$B$1:$B$333=$A34),--(LOB!$D$1:$D$333=B$32),(LOB!$I$1:$I$333),"",SUMPRO DUCT(--(LOB!$B$1:$B$333=$A34),--(LOB!$D$1:$D$333=B$32),(LOB!$I$1:$I$333))))

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 515
Default adding =if(iserror to formula

=IF(ISERROR(SUMPRODUCT(--(LOB!$B$1:$B$333=$A34),--(LOB!$D$1:$D$333=B$32),(LOB!$I$1:$I$333))),"",SUMP RODUCT(--(LOB!$B$1:$B$333=$A34),--(LOB!$D$1:$D$333=B$32),(LOB!$I$1:$I$333)))

HTH

Kassie

Replace xxx with hotmail


"KC" wrote:

I've tried to add the =if(iserror to a formula, but I can't get it to work.
Can someone help me figure out what I'm doing wrong?

Original Formula:

SUMPRODUCT(--(LOB!$B$1:$B$333=$A34),--(LOB!$D$1:$D$333=B$32),(LOB!$I$1:$I$333))

Formula with =if(iserror in it - tells me i'm missing a parenthesis - but I
can't figure out where

=IF(ISERROR(SUMPRODUCT(--(LOB!$B$1:$B$333=$A34),--(LOB!$D$1:$D$333=B$32),(LOB!$I$1:$I$333),"",SUMPRO DUCT(--(LOB!$B$1:$B$333=$A34),--(LOB!$D$1:$D$333=B$32),(LOB!$I$1:$I$333))))



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default adding =if(iserror to formula

Select the cell(s) and run this macro to save all that typing and possible
syntax errors.

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


Gord Dibben MS Excel MVP



On Thu, 27 Aug 2009 07:24:01 -0700, KC wrote:

I've tried to add the =if(iserror to a formula, but I can't get it to work.
Can someone help me figure out what I'm doing wrong?

Original Formula:

SUMPRODUCT(--(LOB!$B$1:$B$333=$A34),--(LOB!$D$1:$D$333=B$32),(LOB!$I$1:$I$333))

Formula with =if(iserror in it - tells me i'm missing a parenthesis - but I
can't figure out where

=IF(ISERROR(SUMPRODUCT(--(LOB!$B$1:$B$333=$A34),--(LOB!$D$1:$D$333=B$32),(LOB!$I$1:$I$333),"",SUMPRO DUCT(--(LOB!$B$1:$B$333=$A34),--(LOB!$D$1:$D$333=B$32),(LOB!$I$1:$I$333))))


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default adding =if(iserror to formula

You may want to consider using two cells.

Put the =sumproduct() formula in one cell (say A1) and then use:
=if(iserror(a1),"",a1)

If you don't like to see the intermediate results, you could hide the column
with the =sumproduct() formula.

Sometimes, it's better to avoid doing the same calculation twice.

(xl2007 added an =iferror() function. If you're using that version, you may
want to read about =iferror() in excel's help.)



KC wrote:

I've tried to add the =if(iserror to a formula, but I can't get it to work.
Can someone help me figure out what I'm doing wrong?

Original Formula:

SUMPRODUCT(--(LOB!$B$1:$B$333=$A34),--(LOB!$D$1:$D$333=B$32),(LOB!$I$1:$I$333))

Formula with =if(iserror in it - tells me i'm missing a parenthesis - but I
can't figure out where

=IF(ISERROR(SUMPRODUCT(--(LOB!$B$1:$B$333=$A34),--(LOB!$D$1:$D$333=B$32),(LOB!$I$1:$I$333),"",SUMPRO DUCT(--(LOB!$B$1:$B$333=$A34),--(LOB!$D$1:$D$333=B$32),(LOB!$I$1:$I$333))))


--

Dave Peterson
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
Formula Help - Lookup, if, iserror?? Ash Excel Discussion (Misc queries) 9 November 7th 08 05:08 PM
Adding ISERROR to formula Pierre Excel Worksheet Functions 3 October 8th 07 07:08 PM
Using iserror in formula forest8 Excel Discussion (Misc queries) 1 September 2nd 07 03:51 AM
Using ISERROR to Solve #DIV/0 in a formula Leigh Douglass Excel Worksheet Functions 13 August 23rd 07 06:12 PM
Int Iserror Len Mid Find formula Aaron Excel Worksheet Functions 1 October 17th 06 05:56 AM


All times are GMT +1. The time now is 10:58 AM.

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

About Us

"It's about Microsoft Excel"