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 / July 2007

Tip: Looking for answers? Try searching our database.

Sum and If function

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mark.M.Sweeney@gmail.com - 06 Jul 2007 12:12 GMT
I have a simple sum that calculates the difference in between the
start time and end time.  But, what I don't know how to do is put in
an If statement that says If the difference is greater than 7,
subract :30.  Now, if I havr to do this as decimals, that is fine but
I was hoping to be able to keep it in a time format.

Thanks, Mark
Dave Peterson - 06 Jul 2007 12:27 GMT
I don't know if 7 is 7 days, 7 hours, 7 minutes, 7 seconds or what.

And is :30, 30 minutes or 30 seconds?

But in general:

=yourformula - if(yourformula>time(0,7,0),time(0,0,30),0)

Adjust those time(h,m,s) arguments the way you need.

And format the cell as time.

> I have a simple sum that calculates the difference in between the
> start time and end time.  But, what I don't know how to do is put in
[quoted text clipped - 3 lines]
>
> Thanks, Mark

Signature

Dave Peterson

Roger Govier - 06 Jul 2007 12:31 GMT
Hi Mark

One way
=IF((B1-A1)*24>7,B1-A1-TIME(0,30,0),B1-A1)

Signature

Regards

Roger Govier

>I have a simple sum that calculates the difference in between the
> start time and end time.  But, what I don't know how to do is put in
[quoted text clipped - 3 lines]
>
> Thanks, Mark
 
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.