Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default How to return 1 with #VALUE!?

Does anyone know how to return 1 with #VALUE!?
Thank for any suggestion
Eric
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default How to return 1 with #VALUE!?

One way:

=IF(ISERROR(<your formula), 1, <your formula)

In XL2007:

=IFERROR(<your formula,1)

However, it's generally bad practice to do so unless that error is
expected and not easily avoidable. Using either of the above formulae
will also mask other errors. One can usually identify the conditions
that would cause the error and prevent them.


In article ,
Eric wrote:

Does anyone know how to return 1 with #VALUE!?
Thank for any suggestion
Eric

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 196
Default How to return 1 with #VALUE!?

You can use the function ERROR.TYPE to only check for #VALUEs:

=IF(ERROR.TYPE(<YourFormula)=3,1,<YourFormula)

Altho all the caveats made by JE McGimpsey re masking genuine errors
still apply - you'll just have excluded the other error types.

Hope this helps!

Richard


Eric wrote:
Does anyone know how to return 1 with #VALUE!?
Thank for any suggestion
Eric


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
help with index to return particular cell value Allan from Melbourne Excel Discussion (Misc queries) 0 May 27th 06 03:20 AM
annualized return calculation for the purpose of portfolio performance evaluation sharkey Excel Worksheet Functions 2 April 8th 06 09:41 PM
Excel - return a picture or range rows as the result of a formula juststarting Excel Worksheet Functions 1 July 4th 05 12:59 AM
check if reference exists, then return its value or return 0 doudou Excel Worksheet Functions 1 June 4th 05 09:17 PM
How do create a formula to evalute a # to return 1 of 4 conditions Larry Excel Worksheet Functions 4 May 29th 05 12:58 AM


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