Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Refer to Date/Time Range

I have a column with a months worth of date/time entries that are in 15
minute increments and I want to create a formula that refers to a range that
is NOT a weekend day and is greater than 9:00 and less than 21:15.
This will identify a PEAK usage time-frame each day.

Sample Data:
4/2/2007 8:00
4/2/2007 8:15
4/2/2007 8:30
4/2/2007 8:45
4/2/2007 9:00
4/2/2007 9:15
4/2/2007 9:30
4/2/2007 9:45
4/2/2007 10:00

I've tried usinge the WEEKDAY() function in combo with the HOUR() and
MINUTE() functions but I just can't seem to come up with anything that works!

Any suggestions will be greatly appreciated!!
  #2   Report Post  
Junior Member
 
Posts: 4
Default

=IF(AND(WEEKDAY(A3,2)<6,HOUR(A3)=9),TRUE,FALSE)
Add this in a column on row 3 - then drag down



Quote:
Originally Posted by Molasses26 View Post
I have a column with a months worth of date/time entries that are in 15
minute increments and I want to create a formula that refers to a range that
is NOT a weekend day and is greater than 9:00 and less than 21:15.
This will identify a PEAK usage time-frame each day.

Sample Data:
4/2/2007 8:00
4/2/2007 8:15
4/2/2007 8:30
4/2/2007 8:45
4/2/2007 9:00
4/2/2007 9:15
4/2/2007 9:30
4/2/2007 9:45
4/2/2007 10:00

I've tried usinge the WEEKDAY() function in combo with the HOUR() and
MINUTE() functions but I just can't seem to come up with anything that works!

Any suggestions will be greatly appreciated!!
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Refer to Date/Time Range

Does this help .....

=IF(AND(WEEKDAY(A1,2)<6,TIME(HOUR(A1),MINUTE(A1),0 )TIME(9,0,0),TIME(HOUR(A1),MINUTE(A1),0)<TIME(21, 15,0)),"Peak usage"," ")



"Molasses26" wrote:

I have a column with a months worth of date/time entries that are in 15
minute increments and I want to create a formula that refers to a range that
is NOT a weekend day and is greater than 9:00 and less than 21:15.
This will identify a PEAK usage time-frame each day.

Sample Data:
4/2/2007 8:00
4/2/2007 8:15
4/2/2007 8:30
4/2/2007 8:45
4/2/2007 9:00
4/2/2007 9:15
4/2/2007 9:30
4/2/2007 9:45
4/2/2007 10:00

I've tried usinge the WEEKDAY() function in combo with the HOUR() and
MINUTE() functions but I just can't seem to come up with anything that works!

Any suggestions will be greatly appreciated!!

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Refer to Date/Time Range

Perfect. This is exactly what I need!
Thanks!

"Toppers" wrote:

Does this help .....

=IF(AND(WEEKDAY(A1,2)<6,TIME(HOUR(A1),MINUTE(A1),0 )TIME(9,0,0),TIME(HOUR(A1),MINUTE(A1),0)<TIME(21, 15,0)),"Peak usage"," ")



"Molasses26" wrote:

I have a column with a months worth of date/time entries that are in 15
minute increments and I want to create a formula that refers to a range that
is NOT a weekend day and is greater than 9:00 and less than 21:15.
This will identify a PEAK usage time-frame each day.

Sample Data:
4/2/2007 8:00
4/2/2007 8:15
4/2/2007 8:30
4/2/2007 8:45
4/2/2007 9:00
4/2/2007 9:15
4/2/2007 9:30
4/2/2007 9:45
4/2/2007 10:00

I've tried usinge the WEEKDAY() function in combo with the HOUR() and
MINUTE() functions but I just can't seem to come up with anything that works!

Any suggestions will be greatly appreciated!!

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default Refer to Date/Time Range

One way could be to use "Conditional formatting" of the Date column with the
following formula:

=(WEEKDAY(A1)1)*(WEEKDAY(A1)<7)*(A1-INT(A1)0,37)*(A1-INT(A1)<0,89)=1

and specify the background colour as ... when the condition is true (maybe
you will need to adjust the values to 0,38 and 0,88 if you don't wish to
include the limits.
Please note that I am using a French version and assume that the equivalent
for the French ENT(A1) should be in English version INT(A1), as it is meant
to use only the integer part...:-)

Hope it helps,
Erny

"Molasses26" schrieb im Newsbeitrag
...
I have a column with a months worth of date/time entries that are in 15
minute increments and I want to create a formula that refers to a range
that
is NOT a weekend day and is greater than 9:00 and less than 21:15.
This will identify a PEAK usage time-frame each day.

Sample Data:
4/2/2007 8:00
4/2/2007 8:15
4/2/2007 8:30
4/2/2007 8:45
4/2/2007 9:00
4/2/2007 9:15
4/2/2007 9:30
4/2/2007 9:45
4/2/2007 10:00

I've tried usinge the WEEKDAY() function in combo with the HOUR() and
MINUTE() functions but I just can't seem to come up with anything that
works!

Any suggestions will be greatly appreciated!!





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Refer to Date/Time Range

I am still working with this one. I get an error when I copy the formula
directly over to my spreadsheet but I'm still looking into it because I have
a similar application where it would be useful to do this as well.
Merci!

"Erny" wrote:

One way could be to use "Conditional formatting" of the Date column with the
following formula:

=(WEEKDAY(A1)1)*(WEEKDAY(A1)<7)*(A1-INT(A1)0,37)*(A1-INT(A1)<0,89)=1

and specify the background colour as ... when the condition is true (maybe
you will need to adjust the values to 0,38 and 0,88 if you don't wish to
include the limits.
Please note that I am using a French version and assume that the equivalent
for the French ENT(A1) should be in English version INT(A1), as it is meant
to use only the integer part...:-)

Hope it helps,
Erny

"Molasses26" schrieb im Newsbeitrag
...
I have a column with a months worth of date/time entries that are in 15
minute increments and I want to create a formula that refers to a range
that
is NOT a weekend day and is greater than 9:00 and less than 21:15.
This will identify a PEAK usage time-frame each day.

Sample Data:
4/2/2007 8:00
4/2/2007 8:15
4/2/2007 8:30
4/2/2007 8:45
4/2/2007 9:00
4/2/2007 9:15
4/2/2007 9:30
4/2/2007 9:45
4/2/2007 10:00

I've tried usinge the WEEKDAY() function in combo with the HOUR() and
MINUTE() functions but I just can't seem to come up with anything that
works!

Any suggestions will be greatly appreciated!!




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
Can a cell refer to a Range of cells? Courreges Excel Discussion (Misc queries) 3 June 13th 06 03:25 PM
How does one refer to the n-1 element of a named range? Charles Hewitt Excel Discussion (Misc queries) 2 November 26th 05 06:56 AM
How do I refer a Range to a Cell Mal Excel Worksheet Functions 6 June 7th 05 08:47 AM
How do I refer to a non-empty row range in Excel Henry San Diego Excel Discussion (Misc queries) 1 June 2nd 05 09:06 PM
syntax to refer to a range as an array? david cassain Excel Worksheet Functions 12 May 26th 05 11:28 PM


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