Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Rodney
 
Posts: n/a
Default Testing for error : was 2nd Occurence


I have my statement working OK, thanks to all.
=INDEX($E$1:$E$62933,SMALL(IF($B$1:$B$62933=B62938 ,ROW($E$1:$E$62933)),$F$2))

When the name is not found in the array,
I have a #NUM error value.
Is there a way to test for error, and replace with a zero
to the above statement please?


As an aside, I had the devils own trouble getting sense from
the above statement, when I used the array E2:E62933
(I had a header row, and felt I not need to include in the array)
when I used E1:E62933 everything worked fine.
Why is that?

Thankyou.
Rodney







  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

The error part comes from the SMALL function so you need to test there

=IF(ISERROR(Small(----)),0,your full formula)


Regards,


Peo Sjoblom

"Rodney" wrote:


I have my statement working OK, thanks to all.
=INDEX($E$1:$E$62933,SMALL(IF($B$1:$B$62933=B62938 ,ROW($E$1:$E$62933)),$F$2))

When the name is not found in the array,
I have a #NUM error value.
Is there a way to test for error, and replace with a zero
to the above statement please?


As an aside, I had the devils own trouble getting sense from
the above statement, when I used the array E2:E62933
(I had a header row, and felt I not need to include in the array)
when I used E1:E62933 everything worked fine.
Why is that?

Thankyou.
Rodney








  #3   Report Post  
CLR
 
Posts: n/a
Default

=IF(ISERR(INDEX($E$2:$E$62933,SMALL(IF($B$2:$B$629 33=B62938,ROW($E$2:$E$6293
3)),$F$2))),0,INDEX($E$2:$E$62933,SMALL(IF($B$2:$B $62933=B62938,ROW($E$2:$E$
62933)),$F$2)))

All on one line, watch out for wordwrap......

Vaya con Dios,
Chuck, CABGx3


"Rodney" wrote in message
...

I have my statement working OK, thanks to all.

=INDEX($E$1:$E$62933,SMALL(IF($B$1:$B$62933=B62938 ,ROW($E$1:$E$62933)),$F$2)
)

When the name is not found in the array,
I have a #NUM error value.
Is there a way to test for error, and replace with a zero
to the above statement please?


As an aside, I had the devils own trouble getting sense from
the above statement, when I used the array E2:E62933
(I had a header row, and felt I not need to include in the array)
when I used E1:E62933 everything worked fine.
Why is that?

Thankyou.
Rodney









  #4   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

Not necessary to drag the whole formula into the error check, the num error
comes only from the SMALL part

--
Regards,

Peo Sjoblom


"CLR" wrote in message
...
=IF(ISERR(INDEX($E$2:$E$62933,SMALL(IF($B$2:$B$629 33=B62938,ROW($E$2:$E$6293
3)),$F$2))),0,INDEX($E$2:$E$62933,SMALL(IF($B$2:$B $62933=B62938,ROW($E$2:$E$
62933)),$F$2)))

All on one line, watch out for wordwrap......

Vaya con Dios,
Chuck, CABGx3


"Rodney" wrote in message
...

I have my statement working OK, thanks to all.

=INDEX($E$1:$E$62933,SMALL(IF($B$1:$B$62933=B62938 ,ROW($E$1:$E$62933)),$F$2)
)

When the name is not found in the array,
I have a #NUM error value.
Is there a way to test for error, and replace with a zero
to the above statement please?


As an aside, I had the devils own trouble getting sense from
the above statement, when I used the array E2:E62933
(I had a header row, and felt I not need to include in the array)
when I used E1:E62933 everything worked fine.
Why is that?

Thankyou.
Rodney










  #5   Report Post  
Rodney
 
Posts: n/a
Default

Thank you gentlemen, both.
There is a palpable joy when finally,
something that seemed utterly obtuse, works. :)

I think I shall purchase for my wife, some flowers.........





  #6   Report Post  
CLR
 
Posts: n/a
Default

You're welcome Rodney...........

I think I shall purchase for my wife, some flowers.........

Thats a wonderful idea.........and you might throw in a hug for good
measure.......

Vaya con Dios,
Chuck, CABGx3



"Rodney" wrote in message
...
Thank you gentlemen, both.
There is a palpable joy when finally,
something that seemed utterly obtuse, works. :)

I think I shall purchase for my wife, some flowers.........





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
Automation Testing in an Excel application. HC Excel Discussion (Misc queries) 0 March 30th 05 02:05 AM
testing more than one variable in an if statement Charles Excel Discussion (Misc queries) 3 February 22nd 05 06:46 PM
Using VLOOKUP,what if I have more than one occurence of my Lookup. Mondie Excel Worksheet Functions 3 January 28th 05 07:45 PM
removing duplicates testing in 2 coloms Warzel Excel Worksheet Functions 3 January 23rd 05 11:39 AM
I need to count the occurence of text in a range of cells (which . Brenda Excel Worksheet Functions 1 December 12th 04 09:00 PM


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

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"