#1
|
|||
|
|||
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 |
#2
|
|||
|
|||
In the last formula it should read MOD (A2...... not MOD (A10.........
Sorry Bob M |
|
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 |
MATCH function and time values | hanvyj | Excel | 2 | 05-29-2013 12:12 PM |
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 |
field value based on time of day | akraw | Word | 3 | 03-26-2011 08:29 PM |