Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 60
Default Formula returns #value! if value is not found

Hello,

Formula returns #value! if value is not found:

=SMALL(V14:V21,IF(COUNTIF(V14:V21,"<0"),1,COUNTIF( V14:V21,0)+1))

Is there a solution to avoid #value! I need only to see the minimum

Thanks Arno
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Formula returns #value! if value is not found

Hi,

I don't see how you het a #Value! error out of this, you would get #NUM!.
You can achieve that with your own formula like this

=IF(ISERROR(SMALL(V14:V21,IF(COUNTIF(V14:V21,"<0") ,1,COUNTIF(V14:V21,0)+1))),"",SMALL(V14:V21,IF(COU NTIF(V14:V21,"<0"),1,COUNTIF(V14:V21,0)+1)))


But I'd go with the more compact array formula which does the same thing

=IF(ISERROR(SMALL(IF(V14:V21<0,V14:V21),1)),"",SM ALL(IF(V14:V21<0,V14:V21),1))

'This is an array formula which must be entered by pressing CTRL+Shift+Enter
'and not just Enter. If you do it correctly then Excel will put curly brackets
'around the formula {}. You can't type these yourself. If you edit the formula
'you must enter it again with CTRL+Shift+Enter.

Mike

"Arno" wrote:

Hello,

Formula returns #value! if value is not found:

=SMALL(V14:V21,IF(COUNTIF(V14:V21,"<0"),1,COUNTIF( V14:V21,0)+1))

Is there a solution to avoid #value! I need only to see the minimum

Thanks Arno

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 60
Default Formula returns #value! if value is not found

Thank you ! Ciao Arno

"Mike H" wrote:

Hi,

I don't see how you het a #Value! error out of this, you would get #NUM!.
You can achieve that with your own formula like this

=IF(ISERROR(SMALL(V14:V21,IF(COUNTIF(V14:V21,"<0") ,1,COUNTIF(V14:V21,0)+1))),"",SMALL(V14:V21,IF(COU NTIF(V14:V21,"<0"),1,COUNTIF(V14:V21,0)+1)))


But I'd go with the more compact array formula which does the same thing

=IF(ISERROR(SMALL(IF(V14:V21<0,V14:V21),1)),"",SM ALL(IF(V14:V21<0,V14:V21),1))

'This is an array formula which must be entered by pressing CTRL+Shift+Enter
'and not just Enter. If you do it correctly then Excel will put curly brackets
'around the formula {}. You can't type these yourself. If you edit the formula
'you must enter it again with CTRL+Shift+Enter.

Mike

"Arno" wrote:

Hello,

Formula returns #value! if value is not found:

=SMALL(V14:V21,IF(COUNTIF(V14:V21,"<0"),1,COUNTIF( V14:V21,0)+1))

Is there a solution to avoid #value! I need only to see the minimum

Thanks Arno

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Formula returns #value! if value is not found

Your welcome

"Arno" wrote:

Thank you ! Ciao Arno

"Mike H" wrote:

Hi,

I don't see how you het a #Value! error out of this, you would get #NUM!.
You can achieve that with your own formula like this

=IF(ISERROR(SMALL(V14:V21,IF(COUNTIF(V14:V21,"<0") ,1,COUNTIF(V14:V21,0)+1))),"",SMALL(V14:V21,IF(COU NTIF(V14:V21,"<0"),1,COUNTIF(V14:V21,0)+1)))


But I'd go with the more compact array formula which does the same thing

=IF(ISERROR(SMALL(IF(V14:V21<0,V14:V21),1)),"",SM ALL(IF(V14:V21<0,V14:V21),1))

'This is an array formula which must be entered by pressing CTRL+Shift+Enter
'and not just Enter. If you do it correctly then Excel will put curly brackets
'around the formula {}. You can't type these yourself. If you edit the formula
'you must enter it again with CTRL+Shift+Enter.

Mike

"Arno" wrote:

Hello,

Formula returns #value! if value is not found:

=SMALL(V14:V21,IF(COUNTIF(V14:V21,"<0"),1,COUNTIF( V14:V21,0)+1))

Is there a solution to avoid #value! I need only to see the minimum

Thanks Arno

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
IF formula returns error; abbreviating the formula MZ Excel Discussion (Misc queries) 4 January 7th 10 11:02 PM
SeriesCollection(2).Formula returns formula for series 1 Brian Murphy Excel Programming 1 February 2nd 09 10:07 PM
Formula Not Found - Urgent! Harley D Excel Programming 5 May 4th 06 04:58 PM
Lookup returns message box when an exact match is not found JFeeman Excel Worksheet Functions 3 February 11th 05 07:19 PM
Question about what the Find function returns if the item wasn't found JC10001 Excel Programming 4 April 6th 04 02:44 AM


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