Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 114
Default Modify to eliminate #NUM! error


The following formula works fine however it returns #NUM! when there are no
more records to display. I do not want the error to return.

=INDEX(INDIRECT("$a$1:$a$500"),MATCH(SMALL($C$1:$C $500,ROWS($IV$1:IV1)),$C$1:$C$500,0))


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 506
Default Modify to eliminate #NUM! error

=IF(ISERROR(INDEX(INDIRECT("$a$1:$a$500"),MATCH(SM ALL($C$1:$C$500,ROWS($IV$1:IV1)),$C$1:$C$500,0))), "",INDEX(INDIRECT("$a$1:$a$500"),MATCH(SMALL($C$1: $C$500,ROWS($IV$1:IV1)),$C$1:$C$500,0)))

Remember to Click Yes, if this post helps!

--------------------
(Ms-Exl-Learner)
--------------------


"Gotroots" wrote:


The following formula works fine however it returns #NUM! when there are no
more records to display. I do not want the error to return.

=INDEX(INDIRECT("$a$1:$a$500"),MATCH(SMALL($C$1:$C $500,ROWS($IV$1:IV1)),$C$1:$C$500,0))


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Modify to eliminate #NUM! error

The usual way of avoiding such errors being displayed is
=IF(ISERROR(yourformula),"",yourformula), hence try
=IF(ISERROR(INDEX(INDIRECT("$a$1:$a$500"),MATCH(SM ALL($C$1:$C$500,ROWS($IV$1:IV1)),$C$1:$C$500,0))), "",INDEX(INDIRECT("$a$1:$a$500"),MATCH(SMALL($C$1: $C$500,ROWS($IV$1:IV1)),$C$1:$C$500,0)))
--
David Biddulph

"Gotroots" wrote in message
...

The following formula works fine however it returns #NUM! when there are
no
more records to display. I do not want the error to return.

=INDEX(INDIRECT("$a$1:$a$500"),MATCH(SMALL($C$1:$C $500,ROWS($IV$1:IV1)),$C$1:$C$500,0))




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Modify to eliminate #NUM! error

Depends on what you have in ColA and colC

If ColC is having numerics...try
=IF(COUNT($C$1:$C$500)<ROWS($IV$1:IV1),"",(INDEX(I NDIRECT("$a$1:$a$500"),MATCH(SMALL($C$1:$C$500,ROW S($IV$1:IV1)),$C$1:$C$500,0))))

'try if colC will have both text and numerics
=IF(COUNTA($C$1:$C$500)<ROWS($IV$1:IV1),"",(INDEX( INDIRECT("$a$1:$a$500"),MATCH(SMALL($C$1:$C$500,RO WS($IV$1:IV1)),$C$1:$C$500,0))))


--
Jacob


"Gotroots" wrote:


The following formula works fine however it returns #NUM! when there are no
more records to display. I do not want the error to return.

=INDEX(INDIRECT("$a$1:$a$500"),MATCH(SMALL($C$1:$C $500,ROWS($IV$1:IV1)),$C$1:$C$500,0))


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 114
Default Modify to eliminate #NUM! error


That is one heck of a formula! It does what it says on the tin :)

Thank you (Ms-Exl-Learner)

"Ms-Exl-Learner" wrote:

=IF(ISERROR(INDEX(INDIRECT("$a$1:$a$500"),MATCH(SM ALL($C$1:$C$500,ROWS($IV$1:IV1)),$C$1:$C$500,0))), "",INDEX(INDIRECT("$a$1:$a$500"),MATCH(SMALL($C$1: $C$500,ROWS($IV$1:IV1)),$C$1:$C$500,0)))

Remember to Click Yes, if this post helps!

--------------------
(Ms-Exl-Learner)
--------------------


"Gotroots" wrote:


The following formula works fine however it returns #NUM! when there are no
more records to display. I do not want the error to return.

=INDEX(INDIRECT("$a$1:$a$500"),MATCH(SMALL($C$1:$C $500,ROWS($IV$1:IV1)),$C$1:$C$500,0))




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Modify to eliminate #NUM! error

Incase you are using XL2007 checkout help on the function IFERROR()

--
Jacob


"Jacob Skaria" wrote:

Depends on what you have in ColA and colC

If ColC is having numerics...try
=IF(COUNT($C$1:$C$500)<ROWS($IV$1:IV1),"",(INDEX(I NDIRECT("$a$1:$a$500"),MATCH(SMALL($C$1:$C$500,ROW S($IV$1:IV1)),$C$1:$C$500,0))))

'try if colC will have both text and numerics
=IF(COUNTA($C$1:$C$500)<ROWS($IV$1:IV1),"",(INDEX( INDIRECT("$a$1:$a$500"),MATCH(SMALL($C$1:$C$500,RO WS($IV$1:IV1)),$C$1:$C$500,0))))


--
Jacob


"Gotroots" wrote:


The following formula works fine however it returns #NUM! when there are no
more records to display. I do not want the error to return.

=INDEX(INDIRECT("$a$1:$a$500"),MATCH(SMALL($C$1:$C $500,ROWS($IV$1:IV1)),$C$1:$C$500,0))


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Modify to eliminate #NUM! error

it returns #NUM! when there are no more records to display.

If the formula returns #NUM! it can only come from this:

SMALL(C1:C500,ROWS(IV$1:IV1))

So, you only need to trap that portion of the formula.

--
Biff
Microsoft Excel MVP


"Ms-Exl-Learner" wrote in message
...
=IF(ISERROR(INDEX(INDIRECT("$a$1:$a$500"),MATCH(SM ALL($C$1:$C$500,ROWS($IV$1:IV1)),$C$1:$C$500,0))), "",INDEX(INDIRECT("$a$1:$a$500"),MATCH(SMALL($C$1: $C$500,ROWS($IV$1:IV1)),$C$1:$C$500,0)))

Remember to Click Yes, if this post helps!

--------------------
(Ms-Exl-Learner)
--------------------


"Gotroots" wrote:


The following formula works fine however it returns #NUM! when there are
no
more records to display. I do not want the error to return.

=INDEX(INDIRECT("$a$1:$a$500"),MATCH(SMALL($C$1:$C $500,ROWS($IV$1:IV1)),$C$1:$C$500,0))




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 to eliminate 0's Dani B Excel Discussion (Misc queries) 3 December 18th 08 04:20 PM
when copying from one spreadsheet to another I get "#VALUE!" error,how can I eliminate it? Joe Excel Discussion (Misc queries) 3 March 21st 08 09:53 PM
eliminate zero S S Excel Worksheet Functions 5 February 10th 07 09:24 AM
How to eliminate #REF pat59 Excel Discussion (Misc queries) 2 March 2nd 06 10:40 AM
How do I eliminate, in Excel XP, "too many cell formats" error? Dennis Excel Discussion (Misc queries) 2 March 24th 05 06:44 PM


All times are GMT +1. The time now is 03:15 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"