Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22
Default How to get rid/hide #NUM! error in Excel 2003?

Gentlemen,
I created array formula in Excel 2007. It works fine, but after it runs out
of condition matching results it will display #NUM! error. I can hide that
error with new IFERROR function in Excel 2007, but my problem is the document
will be used in Excel 2003, and havent found the way how to hide that error.
If I do the IF(ISERROR(FORMILA),,(FORMILA)) it will mess up my formula
results.
<a href="http://www.eonstone.com/250/Attendee checklist .xls"I attached
portion of the file I am working on. </a. The error I cant hide is on
5S_Audit sheet, columns B,C and D.
I need some expert help here, or maybe the formula need to be put together
differently.
Any help and suggestions are highly appreciated.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 419
Default How to get rid/hide #NUM! error in Excel 2003?

Guntars,

Create your own UDF to use in XL 2003. Here is a rough example below:



Function IfIsError(pvarResult As Variant, pvarValueIfError As Variant) As
Variant
'Public Function IfIsError(pvarResult As Variant, pvarValueIfError As
Variant) As Variant
'Private Function IfIsError(pvarResult As Variant, pvarValueIfError As
Variant) As Variant

If Application.WorksheetFunction.IsErr(pvarResult) Then
' If Application.WorksheetFunction.IsError(pvarResult) Then
' If Application.WorksheetFunction.IsLogical(pvarResult ) Then
' If Application.WorksheetFunction.IsNA(pvarResult) Then
' If Application.WorksheetFunction.IsNonText(pvarResult ) Then
' If Application.WorksheetFunction.IsNumber(pvarResult) Then
' If Application.WorksheetFunction.IsText(pvarResult) Then
' If Not IsDate(pvarResult) Then
' If IsArray(pvarResult) Then
' If IsEmpty(pvarResult) Then
' If IsMissing(pvarResult) Then
' If IsNull(pvarResult) Then
IfIsError = pvarValueIfError
Else
IfIsError = pvarResult
End If

End Function



As you can see, I included (but commented out) several different tests so
you can tailor it to your needs. Be sure to use the "NOT" keyword when
necessary, or switch your "If...Then" statement with your "Else"
statement...like I did with "If Not IsDate..."

You would call this in XL by entering a formula like this in a cell:

=IfIsError(A5/0,"Error - Please Fix Something!!!")

HTH,

Conan Kelly




"Guntars" wrote in message
...
Gentlemen,
I created array formula in Excel 2007. It works fine, but after it runs
out
of condition matching results it will display #NUM! error. I can hide that
error with new IFERROR function in Excel 2007, but my problem is the
document
will be used in Excel 2003, and haven't found the way how to hide that
error.
If I do the IF(ISERROR(FORMILA),"",(FORMILA)) it will mess up my formula
results.
<a href="http://www.eonstone.com/250/Attendee checklist .xls"I attached
portion of the file I am working on. </a. The error I can't hide is on
5S_Audit sheet, columns B,C and D.
I need some expert help here, or maybe the formula need to be put together
differently.
Any help and suggestions are highly appreciated.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default How to get rid/hide #NUM! error in Excel 2003?

What do you use with the IFERROR function that would be different from what
you use with IF(ISERROR ?

Post your IFERROR formula so we can see what it does.

--
Biff
Microsoft Excel MVP


"Guntars" wrote in message
...
Gentlemen,
I created array formula in Excel 2007. It works fine, but after it runs
out
of condition matching results it will display #NUM! error. I can hide that
error with new IFERROR function in Excel 2007, but my problem is the
document
will be used in Excel 2003, and haven't found the way how to hide that
error.
If I do the IF(ISERROR(FORMILA),"",(FORMILA)) it will mess up my formula
results.
<a href="http://www.eonstone.com/250/Attendee checklist .xls"I attached
portion of the file I am working on. </a. The error I can't hide is on
5S_Audit sheet, columns B,C and D.
I need some expert help here, or maybe the formula need to be put together
differently.
Any help and suggestions are highly appreciated.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22
Default How to get rid/hide #NUM! error in Excel 2003?

This is the array formula which works in Excel 2007:
{=IFERROR(TRANSPOSE(INDEX(Employees!A2:BN4,1,SMALL (IF(Employees!F4:BN4="5S",COLUMN(Employees!F4:BN4) ),COLUMN(1:1)))+37),"")}

In Excel 2003 I can get it to work if I remove IFERROR, but then I also get
that #NUM! error in a cells where results not returned. And I need to include
those extra cells because more information will be added later.

Here is that excel sample file example again:
http://www.eonstone.com/250/Attendee checklist .xls

Than you,
Guntars


"T. Valko" wrote:

What do you use with the IFERROR function that would be different from what
you use with IF(ISERROR ?

Post your IFERROR formula so we can see what it does.

--
Biff
Microsoft Excel MVP


"Guntars" wrote in message
...
Gentlemen,
I created array formula in Excel 2007. It works fine, but after it runs
out
of condition matching results it will display #NUM! error. I can hide that
error with new IFERROR function in Excel 2007, but my problem is the
document
will be used in Excel 2003, and haven't found the way how to hide that
error.
If I do the IF(ISERROR(FORMILA),"",(FORMILA)) it will mess up my formula
results.
<a href="http://www.eonstone.com/250/Attendee checklist .xls"I attached
portion of the file I am working on. </a. The error I can't hide is on
5S_Audit sheet, columns B,C and D.
I need some expert help here, or maybe the formula need to be put together
differently.
Any help and suggestions are highly appreciated.




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default How to get rid/hide #NUM! error in Excel 2003?

Guntars wrote...
This is the array formula which works in Excel 2007:

=IFERROR(TRANSPOSE(INDEX(Employees!A2:BN4,1,
SMALL(IF(Employees!F4:BN4="5S",COLUMN(Employees!F 4:BN4)),
COLUMN(1:1)))+37),"")

....

I can't see any point to the TRANSPOSE call. The INDEX call inside it
returns a single number, so TRANSPOSE does nothing. Best to remove it.

The #NUM! error would occur when the SMALL call's 2nd argument exceeds
the number of entries in its 1st argument. That could be trapped more
elegantly as

=IF(COUNTIF(Employees!F4:BN4,"5S")=COLUMN(1:1),IN DEX(Employees!
A2:BN4,1,
SMALL(IF(Employees!F4:BN4="5S",COLUMN(Employees!F4 :BN4)),COLUMN(1:1)))
+37,"")

which would be exactly the same in Excel 2007 and Excel 2003.
Furthermore, it'd propagate errors from Employees!F4:BN4 (if any),
which is usually a good thing.


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22
Default How to get rid/hide #NUM! error in Excel 2003?

Harlan Grove,
I tried your formula and it works great, if results are return in single
ROW. The reason I was using TRANSPOSE function, so I can look up data in ROW,
but results I want to be in COLUMN.
Thank you
Guntars


"Harlan Grove" wrote:

Guntars wrote...
This is the array formula which works in Excel 2007:

=IFERROR(TRANSPOSE(INDEX(Employees!A2:BN4,1,
SMALL(IF(Employees!F4:BN4="5S",COLUMN(Employees!F 4:BN4)),
COLUMN(1:1)))+37),"")

....

I can't see any point to the TRANSPOSE call. The INDEX call inside it
returns a single number, so TRANSPOSE does nothing. Best to remove it.

The #NUM! error would occur when the SMALL call's 2nd argument exceeds
the number of entries in its 1st argument. That could be trapped more
elegantly as

=IF(COUNTIF(Employees!F4:BN4,"5S")=COLUMN(1:1),IN DEX(Employees!
A2:BN4,1,
SMALL(IF(Employees!F4:BN4="5S",COLUMN(Employees!F4 :BN4)),COLUMN(1:1)))
+37,"")

which would be exactly the same in Excel 2007 and Excel 2003.
Furthermore, it'd propagate errors from Employees!F4:BN4 (if any),
which is usually a good thing.

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
how do I hide data elements in pivot in excel 2003 ? [email protected] Excel Worksheet Functions 0 September 28th 05 08:03 PM
Excel 2003 Macro Error - Runtime error 1004 Cow Excel Discussion (Misc queries) 2 June 7th 05 01:40 PM
Getting Excel error when trying to hide columns. Why? MClark Excel Discussion (Misc queries) 1 April 28th 05 11:28 PM
Excel 2003 Hide PivotItems Lee Excel Worksheet Functions 1 January 21st 05 08:41 PM


All times are GMT +1. The time now is 04:56 PM.

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"