LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Pete at FMR
 
Posts: n/a
Default assigning values by intervals

I have data that I would like to assign a number to based on the interval in
which the data's time stamp falls. I am using five minute intervals so I
want to assign the data a number from 1-288 (representing all the 5 min
intervals in a 24 hour day). This is a little to complex for nesting IF
statements. Can I set up a table with a column showing the begining of the
interval and another showing the end with a third containing the number/code
and use some sort of LOOKUP function? Here is an example:

If the data in one row is time stamped 0:06:33 (six minutes and 33 seconds
after midnight) it would fall in the range between 0:05:00 and 0:09:59 which
is the second interval in the table and would therefore return a value of "2".

I am not quite sure how to get the 'between' logic to work since I am not
looking up a set value, like what is normally used for VLOOKUP etc...

Thank you, much appreciation.

Pete
 
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Match function with duplicate values in an array Richard Excel Worksheet Functions 3 April 22nd 23 07:45 PM
VB Assigning Values to a Series of Strings cincode5 Excel Discussion (Misc queries) 1 August 4th 05 11:38 PM
Count Intervals of Filtered TEXT values in Column and Return Count across a Row Sam via OfficeKB.com Excel Worksheet Functions 9 July 31st 05 03:37 AM
Combine FREQUENCY and SUM of Associated Values MichaelC Excel Worksheet Functions 3 July 3rd 05 01:54 AM
Adding values for prior date intervals Qaspec Excel Worksheet Functions 0 January 25th 05 01:49 AM


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