#1   Report Post  
Conditional Formatting
 
Posts: n/a
Default #Value must be 0

I have a time formula.
=IF($AF$4AF7,0,AF7-$AF$4)

Can you help me fina a way when the result is #value it must turn to zero.

Thanks in advance

  #2   Report Post  
DaveB
 
Posts: n/a
Default

Without seeing your sheet it's a little confusing what is causing the #value
to appear, in the following example i'm assuming it is the subtraction. If
not, nest the ISERROR(...) check appropriately.

=IF($AF$4AF7,0,IF(ISERROR(AF7-$AF$4),0,AF7-$AF$4))

Does that help?
--
Regards,

DavidB


"Conditional Formatting" wrote:

I have a time formula.
=IF($AF$4AF7,0,AF7-$AF$4)

Can you help me fina a way when the result is #value it must turn to zero.

Thanks in advance

  #3   Report Post  
Simon Letten
 
Posts: n/a
Default

Use the ISERROR function, e.g. IF(ISERROR(something),0,something)
--

Simon


"Conditional Formatting" wrote:

I have a time formula.
=IF($AF$4AF7,0,AF7-$AF$4)

Can you help me fina a way when the result is #value it must turn to zero.

Thanks in advance

  #4   Report Post  
William Horton
 
Posts: n/a
Default

Try the below formula. If the formula produces the #Value error only the
result will be 0. Otherwise the result will be whatever it is, even if it is
another type of error.

=IF(NOT(ISERROR(IF($AF$4AF7,0,AF7-$AF$4))),IF($AF$4AF7,0,AF7-$AF$4),IF(ERROR.TYPE(IF($AF$4AF7,0,AF7-$AF$4))=3,0,IF($AF$4AF7,0,AF7-$AF$4)))

Hope this helps.

Bill Horton

"Conditional Formatting" wrote:

I have a time formula.
=IF($AF$4AF7,0,AF7-$AF$4)

Can you help me fina a way when the result is #value it must turn to zero.

Thanks in advance

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



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