LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming, microsoft.public.excel.newusers
external usenet poster
 
Posts: 133
Default Splitting up timeperiod

On Jan 7, 6:04 pm, Bret Bernever wrote:
I have 4 Timeslots:
TimeSlot 1 - 6:00-8:00
TimeSlot 2 - 8:00-18:00
TimeSlot 3 - 18:00-22:00
TimeSlot 4 - 22:00-6:00

I have one time period:
TimePeriod - 17:00-1:00

Question: I want to split the time period in the appropriate timeslots
so that the results should be:

17:00-18:00 - Falls in TimeSlot 2
18:00-22:00 - Falls in Time Slot 3
22:00-1:00 - Falls in TimeSlot 4

Any ideas how to accomplish that?
I'm interested in the explicit timeintervals:
17:00-18:00
18:00-22:00
22:00-1:00
not the hours count!

Thanks in Advance
Bret Bernever


Bret,

The easiest thing would be to set up a simple VLookUp table like this:

0 4
6 1
8 2
18 3
22 4

The lookup value are the hourly slots. Set the range lookup of the
function to TRUE Use HOURS(TimePeriod) as the lookup value for each
time entry in your data set. That will associate each Time Period
with the appropriate Time Slot. Then you can do what you intend with
the info.

SteveM
 
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
splitting name mtin Excel Discussion (Misc queries) 3 November 7th 08 07:00 PM
Splitting Tree*Rat New Users to Excel 3 October 21st 08 12:55 PM
Splitting up timeperiod Bret Bernever New Users to Excel 12 January 11th 08 12:50 PM
splitting Last Name, First Name buggles Excel Discussion (Misc queries) 4 November 15th 07 01:07 AM
Splitting a table Matthew Excel Discussion (Misc queries) 3 June 28th 06 10:55 PM


All times are GMT +1. The time now is 04:36 AM.

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"