Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default Assigning times to shift

Working with spreadshift containing date and times of events during a one
month period. I converted the cell content from date and time to time (23:00
format).

Now I want to go back and associate events with a given shift, i.e., If
B2=(7,0,0) AND time <=(15,0,0), "Days" (or it could just be a value, ie.,
1)

If I want to assign the value to one of three shifts, can I just string all
three formulas together and separate with commas?

Keep getting formula error.
Arghhh.

Thanks in advance for any help.
Help?????
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Assigning times to shift

Hi,

Try this,

=LOOKUP(24*A1,{1,7,15},{"Night","Day","Night"})

This will give 2 shifts 07:00 - 15:00 = days
all other time nights
I think you should be able to work out how to do it if you want 3 or 4
different shifts.

Mike

"Jon M" wrote:

Working with spreadshift containing date and times of events during a one
month period. I converted the cell content from date and time to time (23:00
format).

Now I want to go back and associate events with a given shift, i.e., If
B2=(7,0,0) AND time <=(15,0,0), "Days" (or it could just be a value, ie.,
1)

If I want to assign the value to one of three shifts, can I just string all
three formulas together and separate with commas?

Keep getting formula error.
Arghhh.

Thanks in advance for any help.
Help?????

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default Assigning times to shift

I'm probably just slower than most but I can't get it top work.
Using Excel 2007.
Have a column with values like "5:48," etc.

Would like to have a value like:

1 or days for 0700-1495
2 or evening for 1500-2259
3 or nights for 2300-0659

Any further help available?

"Mike H" wrote:

Hi,

Try this,

=LOOKUP(24*A1,{1,7,15},{"Night","Day","Night"})

This will give 2 shifts 07:00 - 15:00 = days
all other time nights
I think you should be able to work out how to do it if you want 3 or 4
different shifts.

Mike

"Jon M" wrote:

Working with spreadshift containing date and times of events during a one
month period. I converted the cell content from date and time to time (23:00
format).

Now I want to go back and associate events with a given shift, i.e., If
B2=(7,0,0) AND time <=(15,0,0), "Days" (or it could just be a value, ie.,
1)

If I want to assign the value to one of three shifts, can I just string all
three formulas together and separate with commas?

Keep getting formula error.
Arghhh.

Thanks in advance for any help.
Help?????

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Assigning times to shift

Presumably you suggested amending the suggested formula to
=LOOKUP(24*A1,{1,7,15,23},{"Night","Day","Evening" ,"Night"}) ?
If so, which times gave you which wrong result?

But it may get a wee bit confused with times like 14:95 :-)
--
David Biddulph

"Jon M" wrote in message
...
I'm probably just slower than most but I can't get it top work.
Using Excel 2007.
Have a column with values like "5:48," etc.

Would like to have a value like:

1 or days for 0700-1495
2 or evening for 1500-2259
3 or nights for 2300-0659

Any further help available?

"Mike H" wrote:

Hi,

Try this,

=LOOKUP(24*A1,{1,7,15},{"Night","Day","Night"})

This will give 2 shifts 07:00 - 15:00 = days
all other time nights
I think you should be able to work out how to do it if you want 3 or 4
different shifts.

Mike

"Jon M" wrote:

Working with spreadshift containing date and times of events during a
one
month period. I converted the cell content from date and time to time
(23:00
format).

Now I want to go back and associate events with a given shift, i.e., If
B2=(7,0,0) AND time <=(15,0,0), "Days" (or it could just be a
value, ie.,
1)

If I want to assign the value to one of three shifts, can I just string
all
three formulas together and separate with commas?

Keep getting formula error.
Arghhh.

Thanks in advance for any help.
Help?????



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default Assigning times to shift

Hmm.
They all come put to be "night."
I guess A1 is the cell containing the time.

The variable in this cell used to be date & time but I changed it with the
format time to just show the time.
Reading about this formula I'll bet the date information is still there even
though it is not displayed and that is what throwing this off.

I will keep looking but is ther an easy way to change the value from
date-time to just time or am I off track...?

"David Biddulph" wrote:

Presumably you suggested amending the suggested formula to
=LOOKUP(24*A1,{1,7,15,23},{"Night","Day","Evening" ,"Night"}) ?
If so, which times gave you which wrong result?

But it may get a wee bit confused with times like 14:95 :-)
--
David Biddulph

"Jon M" wrote in message
...
I'm probably just slower than most but I can't get it top work.
Using Excel 2007.
Have a column with values like "5:48," etc.

Would like to have a value like:

1 or days for 0700-1495
2 or evening for 1500-2259
3 or nights for 2300-0659

Any further help available?

"Mike H" wrote:

Hi,

Try this,

=LOOKUP(24*A1,{1,7,15},{"Night","Day","Night"})

This will give 2 shifts 07:00 - 15:00 = days
all other time nights
I think you should be able to work out how to do it if you want 3 or 4
different shifts.

Mike

"Jon M" wrote:

Working with spreadshift containing date and times of events during a
one
month period. I converted the cell content from date and time to time
(23:00
format).

Now I want to go back and associate events with a given shift, i.e., If
B2=(7,0,0) AND time <=(15,0,0), "Days" (or it could just be a
value, ie.,
1)

If I want to assign the value to one of three shifts, can I just string
all
three formulas together and separate with commas?

Keep getting formula error.
Arghhh.

Thanks in advance for any help.
Help?????






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Assigning times to shift

=LOOKUP(24*MOD(A1,1),{1,7,15,23},{"Night","Day","E vening","Night"})
--
David Biddulph

"Jon M" wrote in message
...
Hmm.
They all come put to be "night."
I guess A1 is the cell containing the time.

The variable in this cell used to be date & time but I changed it with the
format time to just show the time.
Reading about this formula I'll bet the date information is still there
even
though it is not displayed and that is what throwing this off.

I will keep looking but is ther an easy way to change the value from
date-time to just time or am I off track...?

"David Biddulph" wrote:

Presumably you suggested amending the suggested formula to
=LOOKUP(24*A1,{1,7,15,23},{"Night","Day","Evening" ,"Night"}) ?
If so, which times gave you which wrong result?

But it may get a wee bit confused with times like 14:95 :-)
--
David Biddulph

"Jon M" wrote in message
...
I'm probably just slower than most but I can't get it top work.
Using Excel 2007.
Have a column with values like "5:48," etc.

Would like to have a value like:

1 or days for 0700-1495
2 or evening for 1500-2259
3 or nights for 2300-0659

Any further help available?

"Mike H" wrote:

Hi,

Try this,

=LOOKUP(24*A1,{1,7,15},{"Night","Day","Night"})

This will give 2 shifts 07:00 - 15:00 = days
all other time nights
I think you should be able to work out how to do it if you want 3 or 4
different shifts.

Mike

"Jon M" wrote:

Working with spreadshift containing date and times of events during
a
one
month period. I converted the cell content from date and time to
time
(23:00
format).

Now I want to go back and associate events with a given shift, i.e.,
If
B2=(7,0,0) AND time <=(15,0,0), "Days" (or it could just be a
value, ie.,
1)

If I want to assign the value to one of three shifts, can I just
string
all
three formulas together and separate with commas?

Keep getting formula error.
Arghhh.

Thanks in advance for any help.
Help?????






  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default Assigning times to shift

huge progress by changing from date-time to time with month, etc., and time
commands.
only rub now is that anything with an hour value of "0," i.e., 0:36 gives #n/a

getting ready to head to work but if there is an easy fix for this last step
i would appreciate it.

thanks,

"David Biddulph" wrote:

Presumably you suggested amending the suggested formula to
=LOOKUP(24*A1,{1,7,15,23},{"Night","Day","Evening" ,"Night"}) ?
If so, which times gave you which wrong result?

But it may get a wee bit confused with times like 14:95 :-)
--
David Biddulph

"Jon M" wrote in message
...
I'm probably just slower than most but I can't get it top work.
Using Excel 2007.
Have a column with values like "5:48," etc.

Would like to have a value like:

1 or days for 0700-1495
2 or evening for 1500-2259
3 or nights for 2300-0659

Any further help available?

"Mike H" wrote:

Hi,

Try this,

=LOOKUP(24*A1,{1,7,15},{"Night","Day","Night"})

This will give 2 shifts 07:00 - 15:00 = days
all other time nights
I think you should be able to work out how to do it if you want 3 or 4
different shifts.

Mike

"Jon M" wrote:

Working with spreadshift containing date and times of events during a
one
month period. I converted the cell content from date and time to time
(23:00
format).

Now I want to go back and associate events with a given shift, i.e., If
B2=(7,0,0) AND time <=(15,0,0), "Days" (or it could just be a
value, ie.,
1)

If I want to assign the value to one of three shifts, can I just string
all
three formulas together and separate with commas?

Keep getting formula error.
Arghhh.

Thanks in advance for any help.
Help?????




  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Assigning times to shift

That's an easy one, I guess. Just change Mike's 1,7,... to 0,7,...

=LOOKUP(24*MOD(A1,1),{0,7,15,23},{"Night","Day","E vening","Night"})
--
David Biddulph

"Jon M" wrote in message
...
huge progress by changing from date-time to time with month, etc., and
time
commands.
only rub now is that anything with an hour value of "0," i.e., 0:36 gives
#n/a

getting ready to head to work but if there is an easy fix for this last
step
i would appreciate it.

thanks,

"David Biddulph" wrote:

Presumably you suggested amending the suggested formula to
=LOOKUP(24*A1,{1,7,15,23},{"Night","Day","Evening" ,"Night"}) ?
If so, which times gave you which wrong result?

But it may get a wee bit confused with times like 14:95 :-)
--
David Biddulph

"Jon M" wrote in message
...
I'm probably just slower than most but I can't get it top work.
Using Excel 2007.
Have a column with values like "5:48," etc.

Would like to have a value like:

1 or days for 0700-1495
2 or evening for 1500-2259
3 or nights for 2300-0659

Any further help available?

"Mike H" wrote:

Hi,

Try this,

=LOOKUP(24*A1,{1,7,15},{"Night","Day","Night"})

This will give 2 shifts 07:00 - 15:00 = days
all other time nights
I think you should be able to work out how to do it if you want 3 or 4
different shifts.

Mike

"Jon M" wrote:

Working with spreadshift containing date and times of events during
a
one
month period. I converted the cell content from date and time to
time
(23:00
format).

Now I want to go back and associate events with a given shift, i.e.,
If
B2=(7,0,0) AND time <=(15,0,0), "Days" (or it could just be a
value, ie.,
1)

If I want to assign the value to one of three shifts, can I just
string
all
three formulas together and separate with commas?

Keep getting formula error.
Arghhh.

Thanks in advance for any help.
Help?????






  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default Assigning times to shift

Thanks, that worked!

What if I need to get more granular in my analysis and plot by 2 or 4 hour
intervals, i.e., 0001-0159, 0200-0359, etc.?


"David Biddulph" wrote:

That's an easy one, I guess. Just change Mike's 1,7,... to 0,7,...

=LOOKUP(24*MOD(A1,1),{0,7,15,23},{"Night","Day","E vening","Night"})
--
David Biddulph

"Jon M" wrote in message
...
huge progress by changing from date-time to time with month, etc., and
time
commands.
only rub now is that anything with an hour value of "0," i.e., 0:36 gives
#n/a

getting ready to head to work but if there is an easy fix for this last
step
i would appreciate it.

thanks,

"David Biddulph" wrote:

Presumably you suggested amending the suggested formula to
=LOOKUP(24*A1,{1,7,15,23},{"Night","Day","Evening" ,"Night"}) ?
If so, which times gave you which wrong result?

But it may get a wee bit confused with times like 14:95 :-)
--
David Biddulph

"Jon M" wrote in message
...
I'm probably just slower than most but I can't get it top work.
Using Excel 2007.
Have a column with values like "5:48," etc.

Would like to have a value like:

1 or days for 0700-1495
2 or evening for 1500-2259
3 or nights for 2300-0659

Any further help available?

"Mike H" wrote:

Hi,

Try this,

=LOOKUP(24*A1,{1,7,15},{"Night","Day","Night"})

This will give 2 shifts 07:00 - 15:00 = days
all other time nights
I think you should be able to work out how to do it if you want 3 or 4
different shifts.

Mike

"Jon M" wrote:

Working with spreadshift containing date and times of events during
a
one
month period. I converted the cell content from date and time to
time
(23:00
format).

Now I want to go back and associate events with a given shift, i.e.,
If
B2=(7,0,0) AND time <=(15,0,0), "Days" (or it could just be a
value, ie.,
1)

If I want to assign the value to one of three shifts, can I just
string
all
three formulas together and separate with commas?

Keep getting formula error.
Arghhh.

Thanks in advance for any help.
Help?????






  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Assigning times to shift

Change it in the same way as you did when you added an extra shift earlier.
--
David Biddulph

"Jon M" wrote in message
...
Thanks, that worked!

What if I need to get more granular in my analysis and plot by 2 or 4 hour
intervals, i.e., 0001-0159, 0200-0359, etc.?


"David Biddulph" wrote:

That's an easy one, I guess. Just change Mike's 1,7,... to 0,7,...

=LOOKUP(24*MOD(A1,1),{0,7,15,23},{"Night","Day","E vening","Night"})
--
David Biddulph

"Jon M" wrote in message
...
huge progress by changing from date-time to time with month, etc., and
time
commands.
only rub now is that anything with an hour value of "0," i.e., 0:36
gives
#n/a

getting ready to head to work but if there is an easy fix for this last
step
i would appreciate it.

thanks,

"David Biddulph" wrote:

Presumably you suggested amending the suggested formula to
=LOOKUP(24*A1,{1,7,15,23},{"Night","Day","Evening" ,"Night"}) ?
If so, which times gave you which wrong result?

But it may get a wee bit confused with times like 14:95 :-)
--
David Biddulph

"Jon M" wrote in message
...
I'm probably just slower than most but I can't get it top work.
Using Excel 2007.
Have a column with values like "5:48," etc.

Would like to have a value like:

1 or days for 0700-1495
2 or evening for 1500-2259
3 or nights for 2300-0659

Any further help available?

"Mike H" wrote:

Hi,

Try this,

=LOOKUP(24*A1,{1,7,15},{"Night","Day","Night"})

This will give 2 shifts 07:00 - 15:00 = days
all other time nights
I think you should be able to work out how to do it if you want 3
or 4
different shifts.

Mike

"Jon M" wrote:

Working with spreadshift containing date and times of events
during
a
one
month period. I converted the cell content from date and time to
time
(23:00
format).

Now I want to go back and associate events with a given shift,
i.e.,
If
B2=(7,0,0) AND time <=(15,0,0), "Days" (or it could just be a
value, ie.,
1)

If I want to assign the value to one of three shifts, can I just
string
all
three formulas together and separate with commas?

Keep getting formula error.
Arghhh.

Thanks in advance for any help.
Help?????








Reply
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
Program for assigning work shift hours frankiee Excel Discussion (Misc queries) 1 March 10th 06 02:54 AM
IS THERE A FORMULA TO MAKE E=6:00PM ETC SHIFT TIMES AND HOURS Angel Devoid Excel Worksheet Functions 2 December 28th 05 06:25 PM
How are relay leg times or driving times entered and totaled? commissioner Excel Worksheet Functions 1 July 26th 05 09:27 PM
Subtracting lunch breaks from different shift times badger Excel Discussion (Misc queries) 5 June 27th 05 04:10 PM
How do I turn off Mouse Scroll in Excel(Shift key 5-times)? PC_Joe Excel Worksheet Functions 1 May 19th 05 07:48 PM


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