Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-20-2013, 12:55 AM
H28Sailor H28Sailor is offline MOD function with a time field Windows 7 32bit MOD function with a time field Office 2007
Advanced Beginner
MOD function with a time field
 
Join Date: Mar 2013
Posts: 55
H28Sailor is on a distinguished road
Default MOD function with a time field

Hi there



I currently collect a huge amount of Forex tick data and wish to analyse it.

Firstly I put all the records into time buckets of 40 minutes using the following:-

=A2-MOD(A2, 40/24/60) where A2 holds a time stamp e.g. 12:34:58

So far so good...................

Now I wish to reduce two and ONLY TWO of the time periods to 35 minutes using the following formula:-

=IF(OR(AND(A2>="12:00:00",A2<"12:40:00"),AND(A2>=" 16:00:00",A2<"16:40:00")),A2-MOD(A2, 35/24/60), A2-MOD(A10, 40/24/60))

This seems to result in the two periods I am trying to reduce being reduced to 35 minutes but other seemingly random periods also get reduced and the whole thing is a bit of a mess!

Any ideas?

Bob M
Reply With Quote
  #2  
Old 07-20-2013, 12:57 AM
H28Sailor H28Sailor is offline MOD function with a time field Windows 7 32bit MOD function with a time field Office 2007
Advanced Beginner
MOD function with a time field
 
Join Date: Mar 2013
Posts: 55
H28Sailor is on a distinguished road
Default

In the last formula it should read MOD (A2...... not MOD (A10.........
Sorry

Bob M
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
time field issue in mail merge Aude Mail Merge 16 05-18-2014 06:22 AM
MOD function with a time field MATCH function and time values hanvyj Excel 2 05-29-2013 12:12 PM
MOD function with a time field Date/Time Field Autopopulation Question Dendalee Word 3 10-26-2012 06:37 AM
Excel / Access 2010 Time field conversion djsn Excel 0 05-24-2012 09:55 AM
MOD function with a time field field value based on time of day akraw Word 3 03-26-2011 08:29 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:16 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft