Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / February 2008

Tip: Looking for answers? Try searching our database.

Help to modify a formula

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bob Bob - 08 Feb 2008 03:55 GMT
This is my formula I need help with,
in cell I10 this is entered
=IF((I7-I6)*24>4,(I7-I6)*24-0.5,(I7-I6)*24)

Problem is when cell I6 & I7 are blank cell I10 shows #value I need it to be
blank or 0
any ideas?
thanks all.
Earl Kiosterud - 08 Feb 2008 04:11 GMT
Bob Bob,

You should be getting zero when I6 and I7 are empty.  It sounds as if there's a space or
something like that in the cell.  Some folks do that to clear a cell.

Signature

Regards from Virginia Beach,

Earl Kiosterud
www.smokeyl.com
-----------------------------------------------------------------------

> This is my formula I need help with,
> in cell I10 this is entered
[quoted text clipped - 4 lines]
> any ideas?
> thanks all.
joeu2004 - 08 Feb 2008 06:31 GMT
> This is my formula I need help with,
> in cell I10 this is entered
> =IF((I7-I6)*24>4,(I7-I6)*24-0.5,(I7-I6)*24)
> Problem is when cell I6 & I7 are blank cell I10 shows
> #value I need it to be blank or 0

You probably have "" or " " (some number of space characters) in I6 or
I7.  If you have only empty cells (i.e. no formula or value) or "",
the following would suffice:

=if( or(I6="",I7=""), 0, if( (I7-I6)*24>4, (I7-I6)*24-0.5, (I7-
I6)*24 ) )

If you need to allow for " " as well, the following will work in all
cases, if zero is an acceptable result:

=if( n(I6)*n(I7) = 0, 0, if( (I7-I6)*24>4, (I7-I6)*24-0.5, (I7-
I6)*24 ) )

By the way, you might consider this simplification:

=if( n(I6)*n(I7) = 0, 0, (I7-I6)*24 - 0.5*( (I7-I6)*24 > 4 ) )

HTH.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.