Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default I need Time Range to return Value

I need to get a Value Based on Start time.

If the Start time is between 7:00 and 14:59 = First
If the Start time is between 15:00 and 21:59 = Second
If the Start time is between 22:00 and 6:59 = Third
Values will show in Column "D"
A B C D
1 Name Start End Shift
2 John Doe 8:00 17:00 Value?

Any help.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,872
Default I need Time Range to return Value

Hi Eric,

Am Fri, 18 Oct 2013 13:07:47 -0700 (PDT) schrieb Eric Ocasio:

A B C D
1 Name Start End Shift
2 John Doe 8:00 17:00 Value?


try in D2:
=IF(AND(B2=TIME(7,,),B2<TIME(15,,)),"First",IF(AN D(B2=TIME(15,,),B2<TIME(22,,)),"Second","Third"))
and copy down


Regards
Claus B.
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default I need Time Range to return Value

Hi Claus

Thanks you so much, this really help. Only have one issue, on the blank cells it is giving me "Third" instead of a blank cell. Any ideas?



On Friday, October 18, 2013 3:14:55 PM UTC-5, Claus Busch wrote:
Hi Eric,



Am Fri, 18 Oct 2013 13:07:47 -0700 (PDT) schrieb Eric Ocasio:



A B C D


1 Name Start End Shift


2 John Doe 8:00 17:00 Value?




try in D2:

=IF(AND(B2=TIME(7,,),B2<TIME(15,,)),"First",IF(AN D(B2=TIME(15,,),B2<TIME(22,,)),"Second","Third"))

and copy down





Regards

Claus B.

--

Win XP PRof SP2 / Vista Ultimate SP2

Office 2003 SP2 /2007 Ultimate SP2


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,872
Default I need Time Range to return Value

Hi Eric,

Am Fri, 18 Oct 2013 13:28:30 -0700 (PDT) schrieb Eric Ocasio:

Thanks you so much, this really help. Only have one issue, on the blank cells it is giving me "Third" instead of a blank cell. Any ideas?


then try:
=IF(B2="","",IF(AND(B2=TIME(7,,),B2<TIME(15,,))," First",IF(AND(B2=TIME(15,,),B2<TIME(22,,)),"Secon d","Third")))


Regards
Claus B.
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default I need Time Range to return Value


You are a pro my friend thank you so much.


On Friday, October 18, 2013 3:33:36 PM UTC-5, Claus Busch wrote:
Hi Eric,



Am Fri, 18 Oct 2013 13:28:30 -0700 (PDT) schrieb Eric Ocasio:



Thanks you so much, this really help. Only have one issue, on the blank cells it is giving me "Third" instead of a blank cell. Any ideas?




then try:

=IF(B2="","",IF(AND(B2=TIME(7,,),B2<TIME(15,,))," First",IF(AND(B2=TIME(15,,),B2<TIME(22,,)),"Secon d","Third")))





Regards

Claus B.

--

Win XP PRof SP2 / Vista Ultimate SP2

Office 2003 SP2 /2007 Ultimate SP2


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
Return date if in range, else return blank LisaL Excel Worksheet Functions 1 July 22nd 09 03:23 PM
drop first row in range and return a new range object Rik Excel Programming 1 November 19th 08 10:12 AM
I need to return the lowest time value in a range of cells. al elkins Excel Worksheet Functions 2 January 26th 07 06:24 AM
Return Range Address from Active Range ExcelMonkey Excel Programming 1 February 10th 06 12:00 PM
use the current time to return a value [email protected] Excel Discussion (Misc queries) 2 November 28th 05 05:08 PM


All times are GMT +1. The time now is 08:04 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"