Scheduling Macros: Run On An Hourly Basis

Apr 13, 2006

I have a macro that I want to run on an hourly basis, say at 9am, 10am, etc whenever the workbook is open. This needs to be definable as I have several users that will be conducting the same activity throughout the day. In other words I want the macro to run on the hour for user 1, quarter past the hour for user 2, half past for user 3 and quarter to for user 4. Each user does have their own unique macro to run so it should (hopefully) just mean introducing a line of code to each, defining the time to run.

View 4 Replies


ADVERTISEMENT

Scheduling For UAE Calendar

Jan 16, 2009

Attached is the file wherein I am trying to make the scheduling gantt for UAE calendar where the weekends are Friday and Saturday. I am not able to format sundays as workdays some how through my conditions.

View 2 Replies View Related

Formula For Scheduling..?

Nov 28, 2008

I have columns with the dates on the top, and staff listed on the rows to the left of the speadsheet. I must have 4 H's (indicating a base location), and 4 F's (indicating another base) in the column below the date. I want to have a cell, just above the date which will highlight red if there are any less than 4 H's and 4 F's. If there are 4 H's and 4 F's in the column (indicating full staffing levels), then I want the same cell to turn green, indicating that the day is OK. The red highlight would be a quick scan for supervisors to look at and see if we are deficient on staffing, and will prompt us to look for people who can be the missing H or F.

View 3 Replies View Related

Code For Scheduling

Feb 14, 2007

I have a table like the one below:
Day Night
2/26/2007DC
2/27/2007AB
2/28/2007AB
3/1/2007 CD
3/2/2007 CD
3/3/2007 BA
3/4/2007 BA

Each letter represents a 12 hour shift (ex. D team has 36 hours for the week). If I need coverage on 2/27/07 on the day shift, I need to find a team that is working 36 hours for that week and was not scheduled to work the shift before or the shift after. (Example, on 2/27/07 A team needs coverage. The only teams working 36 hours are D and C. C team work the previous shift. So the code would input D in a cell).

View 4 Replies View Related

Scheduling Ontime

Feb 15, 2007

Is there a way to set the ontime application to run even when excel is turned off? I'd like to be able to refresh a data table every morning at 6:30, even if excel is not on. Ideally, if even my computer isn't on. The code below works, but only if the sheet is open to the exact worksheet.

Option Explicit
Public RunWhen As Double
Public Const cRunWhat = "The_Sub"
Sub StartTimer()
RunWhen = TimeValue("09:54")
Application.OnTime earliesttime:=RunWhen, procedure:=cRunWhat, _
schedule:=True
End Sub

Sub The_Sub()
'my code here
StartTimer
End Sub

View 2 Replies View Related

Scheduling Macro For Every 5 Minutes

Sep 9, 2006

I have a simple macro that I run when I hit "Ctr Q".

How do I ensure that this macro runs every 5 minutes automatically from the first time I hit "Ctr-Q". Currently, it only runs once and then stops.

Here's my macro for your view:

Sub Macro1()
'
' Macro1 Macro
' Macro recorded 08-09-2006 by Scott
'
' Keyboard Shortcut: Ctrl+q
'
Range("B6").Select
ActiveCell.FormulaR1C1 = "NOW()"
Range("B6").Select
ActiveCell.FormulaR1C1 = "=NOW()"
Range("A4").Select
End Sub

View 9 Replies View Related

Employee Scheduling Using Solver

Sep 26, 2006

I have a scheduling problem that I'm trying to get my head around. Im sure that some kind person can give me some ideas on how to get this started. It may be extremely easy, but I just cant get it off the ground. Basically I have 15 doctors that work for me - 9 full time (38hrs/week) and 6 part time (15+hrs/week) in a general practice. We are open 7 days a week

Open Close
Monday8:3019:00
Tuesday8:3019:00
Wed8:3019:00
Thur8:3021:00
Fri8:3019:00
Sat9:0018:00
Sun9:0018:00

Doctors have 5 days on and then 2 days off.

The below is the proposed daily schedule and the doctor requirements. % of booked patients for the times and % of random patients for the times are included as well as average waiting times.
Booked Random Waiting Doctors
8:30 - 10:00Morning Hours55%45%30min5-7
10:00 - 13:00Increasing80%20%45min7-8
13:00 - 18:00Busy 100%01.5hr8+
18:00 - 19:00Decreasing70%30%1hr6-7
19:00 - 21:00Night 40%60%30min5+

There are 3 types of patient visits
ShortDoubleTriple
%0.810.140.05
Minutes153045

58% of patients choose their doctor and 42% come in off the street and will take the first available doctor.

and finally - doctors cant work for more than 4 hours without a break. brek details are below
HoursBreak
<4hrs0
4 - 5hrs10min
5 - 8hrs2*10 mins - 45min lunch
8+2 * 10min 2*45min lunch

I need to create a timetable for the doctors which optimises their time based on the above details. I also need to design a data sheet for reception which will maximise the number of patients seen. Finally I need to calculate what the maximum number of patients the centre can see on an average day say monday.

View 9 Replies View Related

Scheduling - Return Data In 3 Rows

May 16, 2014

If i input a 3 in a1 how do i return data in the 3 rows below:

Attached File : schedule2.xlsx

View 3 Replies View Related

24X7x365 Employee Shift Scheduling?

May 4, 2013

I'm trying to come up with an Employee Shift Scheduling template. I have 6 employees total with 3 different shifts (day, swing, graveyard). I would like to not do a rotating shift. I'm trying to figure out if a 5X8 shift is better or 4X10 and I would like to come up with a weekly schedule where I can see what shift everyone is working and were I have double coverage.

View 1 Replies View Related

Scheduling Staff To Shifts And Locations

Jun 10, 2014

I have 20 staff members that I need to schedule in half day shifts (AM & PM) across three different locations for the month of July.

I want to make sure there is no overlap/duplication for any one staff in a time slot. Nor do I want any one staff member to work an AM and PM shift in the same day.

Ideally, I would also like to avoid back-to-back shifts (e.g., not allow PM on Monday to be scheduled for an AM on Tuesday).

Lastly, I would like to have the number of shifts be be as equitably distributed across all of the staff members as well.

Any way that I can do this in Excel?

View 1 Replies View Related

Scheduling. Imported QuickBooks Data

Oct 4, 2007

I have an excel spreadsheet that contains customer data exported from Quickbooks. In that file there is a column called CType (Column G) which contains the scheduling cycle for that customer. There are eleven different possible schedules, including 15xYr, 1xMo, 2xMo, EOM (every other month), EOW (every other week), EOW-S / 1xMo-W (every other week between 5/1 and 10/31 and once a month during the rest of the year), EOW-Th (every other week but must be on a Thursday), ETW (every third week), On Call, W, Q.

Although the number of records changes daily, on average there are about 950 rows of data in the spreadsheet.

I need to set up an array (?) for the values in column G starting with G2 through the last non-blank row (all records will have data in column G), and calculate the next scheduled service date based on the schedule type shown in column G and the last service date which will appear in column M of that row. The last thing I need to consider is whether there is a value in Column N, which would represent a hard-entered ‘Next Scheduled Service Date’. If I find a date in that column it needs to over-ride the calculated value. My assumption to this point is that I should use a new column T to hold the value of the calculated schedule date. There are a few other details, but rather than confuse this whole thing further I’ll stop there.

What I’m struggling with is the most efficient means of running this macro. I’ve been looking at many, many threads over the past few weeks, reading
VBA Programming for Dummies (which I apparently am), and reviewing other resources.

View 3 Replies View Related

Scheduling Spreadsheet Visual Report

Apr 9, 2008

I am wanting to have a schedule posted as 8:00am to 5:00pm to show up in a format that shows the interval every thirty minutes with either a 1 or a zero so that I can calculate each intervals total staffing. Also if a break or lunch is entered I would like it to show a zero or .5 in the field (.5 being for 15 mins and 0 for anything taking the full 30 mins).

View 3 Replies View Related

Adding Hours / Time In Scheduling Sheet

May 30, 2014

So I'm having a problem trying to make this scheduling sheet.. What I did was row a would be the employee list then b,c,d and so on are mon-sun Originally in b1 I would put like 9am-5pm and c1 8-4 and so on and in row i I put the total and added a sum function but somehow it wasn't able to calculate. So then I redid the whole thing this time in row b1 i put 9am and c1 5pm and so on and again I put the total and added the function and it still came out wrong..

View 2 Replies View Related

Scheduling Technicians Based On Distance To Customer

Apr 22, 2006

I need to dispatch 10 technicians across the US starting each Monday. They go to 10 different customers for the whole week. I know the distance between each technician and each customer. What I would like to do is assign each technician to a customer so that the total distance traveled for all the technicians is minimized. I know that if it was only 3 techs and 3 customers (as an example), I could build a table of all the possible combinations (3 factorial or 6 permutations), determine the distance for each permutation and select the minimum. I'm not sure that doing this method with 10 techs is feasible as the number of permutations is 10 factorial or over 3 million possibilities. Anyone see a workable solution?

I've include a spreadsheet with customers, technicians and the distances between them!

View 9 Replies View Related

Employee Scheduling Program Gantt Chart

Feb 14, 2007

I'm trying to create an Employee Scheduler. I want my employees (1 technician per row for a total of 10 rows) in the 1st column then the monthly calendar to the right (1 cell/day). That is what you'll see when you open the worksheet. Then, down below I set up my Data Area where I input my project, start date, end date, technician (where each tech is assigned a unique number), and other data across a row of cells. This could be infinite (or at least up to the very last row).

I modified a free Project Scheduler I got from XL-EasyGantt to become my Employee Scheduler but am having some difficulties getting it to do what I want. The project Scheduler basically works by entering (on the same row) the project (or task), the start date and finish date and then the cells get automatically filled in across those dates. This allows for overlapping of tasks but I want to create an Employee Scheduler so it doesn't allow overlapping or schedule a technician to start a new project before he/she has completed the one their on.

The main function which is in each cell of the monthly calendar is as follows: =IF(OR(AND($G28>=K$4,$G28<L$4),AND($M28>=K$4,K$4>=$G28)),IF(AND($E11="x",$M28>=K$4,$M28<L$4),"x",IF($E11=".",".","..")),"")

My problem: I want to be able to look at the Main Schedule and see when each Technician is scheduled for a job (or multiple jobs) for any given month. I want the function to look in my Data Area and assign the start date and end date of a project and the corresponding technician number and fill in the date cells across from their name in the Schedule above.

View 6 Replies View Related

Quarterdata Into Hourly Data

Aug 22, 2007

I have a dataset in one column. Here 4 cells should be turned into 1 in a new column using a middelvalue.

How do i get excel to do this, so it uses 4 new cells from the first row to every new cell in the new column?

View 12 Replies View Related

Hourly Census Formula

Feb 10, 2009

I have been using the attached formula to calculate total volume (customers seen) by hour (between 1 and 2, 2 and 3 and so on...). But how can I change this formula to take a census at a certain period of time (let's do it on the hour to be easy) instead of double-counting those who were there, but left in the same hour and those who just entered in the same hour. I hope this makes sense...a true census really should not count two people twice though which I think is happening here...

I hate to create a sense of urgency, but would love to begin working on this later tonight. Please let me know if you need more detail.

View 8 Replies View Related

Extract Hourly Data

Jul 14, 2009

I have an excel work sheet with 2 columns and hundreds of rows. The first column is time in minutes over a number a years and the second is a list of corresponding data readings (numbers). I want to only select on the hour data from the list however I cannot seem to do it. The times vary in the sense that they are not all just 1 minute apart, some are every minute, then there might be a 10 minute gap in data, a few more minutes, then another gap etc.. All I want to be able to do is to select all the on the hour data from the list and its corresponding data value.

View 6 Replies View Related

Updating Hourly Rates

Mar 27, 2007

I am trying to create a conditional formula. I have multiple workers that work for different $$ per hour. I am keeping the hourly rates on one page for security purposes (the person that is going to be updating the hours worked is not very computer savy and they less they have to type the better) and the hours on another... I want copy a formula down the page that will calculate the hours to the hourly rate. The issue is that i want the formula to look at all of the hourly rates (assume they get raises) for Joe and multiply the most recent hourly rate times the hours... in addition I don't want the formula to re-calculate when a new hourly rate is put into the hours sheet.

Example

Jan. 1 joe works 8hours at $10 per hour formula in A1 (or wherever) calculates $80
Jan. 2 joe gets $1 raise
Jan. 2 Joe works 8 hours at $11 per hour formual in A2 calculates $88 but formula in A1 maintains the $80 and does not calculate the $1 raise.

View 12 Replies View Related

Return One Value Per Day (from Hourly Data)?

Nov 4, 2008

I have a list of days and hours, and data for whether a type of event either did or did not occur for each sampled hour. I need to return a new value, some sort of "Event Day" value, which will essentially tell me if an event occurred at least once for each day.

Attached is a sheet with 4 days' worth of data. Jan 1st and 3rd 2006 are my two "Event Days".

To complicate things, I can't be sure I have 24 hour readings for each day, so I can't assume each day is a data range (e.g. A1:A24). Hours might be missing. (As such, I am trying to organise along the lines of IF the preceding cell is the same date...)

I also have lots of data stored as months, so would love a formula I could just autofill down. All it needs to do is effectively flag up for me when a day has experienced one event.

View 4 Replies View Related

Calculate An Hourly Wage

Jun 2, 2007

I am trying to build a costings sheet for shift work. The first problem I am experiencing is getting excel to split up a shift into the different bands.

For example the shift needs to be calculated on different rate bands, from 00:00 to 08:00, 08:00 to 19:00 and then 19:00 to 00:00. There is a different hourly rate for each band. Therefore if I enter a start time and end time, I need excel to calculate the total charge over the different rate bands.

For example a shift 07:00 - 21:00 would have:

1 hour 07:00 - 08:00 at Night rate
11 hours 08:00 to 19:00 at Day Rate
2 hours 19:00 to 21:00 at Night Rate

Once I have this worked out I have the added complication of different rates on Friday evening,s, Saturdays and Sundays etc. But at the moment one problem at a time !

View 9 Replies View Related

Summing Hourly Values

Mar 22, 2007

I have a list of values at 'x' min intervals (the intervals sometime changes). I want to sum each hour's values eg. between 0:0:0 hour and 0:59:59, I want to add values 1040+800+860+870. Then I want to proceed and add all values for the next hour i.e. between 1:0:0 and 1:59:59, and so on. I have about 65000 of these calculations to do, so the need for some vba programming.

Hour value
0:14:531040
0:29:53800
0:44:53860
0:59:53870
1:14:53850
1:29:53860
1:44:53710
1:59:53670
2:14:53610............

View 5 Replies View Related

Convert Times Into Hourly Intervals

Sep 26, 2013

i have a s/sheet with thousands of times in a column (eg col1 below in 24 hour format) and would like these in an adjacent column in hourly intervals (eg in Col2 below

e.g.

Col1 ColB
00:23 0 - 1
02:54 2 - 3
09:07 9 - 10
15:24 15 - 16

Is there a formula I can run to enable?

View 2 Replies View Related

Hourly Average With 15 Minute Data

Nov 6, 2009

I have a large sheet with the values of power from a counter in a 15 minute base.

A B
01.01.09 00:15 0,25
01.01.09 00:30 1,15
01.01.09 00:45 0,75
01.01.09 01:00 2,01
and son on until the end of the month
What I am trying to do is to create a macro which calculates the average per hour and put in another columns like this:
01.01.09 01:00 average from 00:15 until 01:00
01.01.09 02:00 average from 01:15 until 02:00
and so on until the end of the month.

View 9 Replies View Related

Hourly Ticks Between Two Time Stamps

Dec 22, 2009

1/1/20080:221/2/200814:051/1/20082:451/3/200819:301/1/20089:001/1/200819:33

In time Out time

I 've used the site many times in the past, but this is my first post.

Above is a small example of the data Im working with. I'm not wanting to plot all of this out by hand, so hopefully someone can help (there are around 30,000 samples). I'm looking to track by hour when a customer is actual here. The first row is one customer in @ 00:22 and out the next day at 14:05.

I would like to have dates of the year down column A and hours 0 through 23 across row 1. Then a number of customer here on 1/1/2008 by every hour of the day on to 1/2/2008 so on and so.

View 9 Replies View Related

Convert Hourly Data To 15 Minutes Granularity?

Mar 14, 2013

I have a string of data containing hourly timestamps with a value attached to each timestamp.
I need the timestamps to be every 15th minutes instead of hourly. So basically, I need the hourly value to be continued four times for each timestamp.

See the attachecd workbook. It should be quite simple, but for some reason I just cant figure it out!? A bit embarressed In the woorkbook, I need VGTs and VPTs to be in a 15 minutes granularity.

ERROR: Cannot upload workbook - uploader not showing so here are shot of the raw data:

VGTs
VPTs
01/02/2013 00:00

[Code].....

View 9 Replies View Related

Half Hour Data Into Hourly Values?

Mar 26, 2013

I have large data sets with half hour values that I need to average into hourly values. Here is an example of the data:

28.12.2012
01:30:00
0,1
2,4
2,5
127,6

28.12.2012
02:00:00
0
0,9
0,9
118,5

[code]....

View 5 Replies View Related

Median Hourly & Annual Rate In Same Column

Mar 24, 2008

How can I get the median of a column that contains both hourly and annual rates? I would like to either multiply the hourly rate * 2080 or divide the annual rate by 2080 then get the median.

View 6 Replies View Related

Aggregating Timestamped Data Up To Half Hourly Totals

Feb 21, 2013

I have a worksheet containing one timestamp column and a single column of data, the interval being one minute. How can I aggregate it to get half-hourly totals?

View 4 Replies View Related

Any Way To Show Axis At Hourly Interval But Keep All Data In Chart?

Apr 13, 2012

I have got a lot of data to put in a chart that updates every 5 minutes with new data - i have a chart that Line chart that shows this.

It shows the cost of something every 5 minutes.

I have put this in a chart using offset but obviously i want to show the cost over the course of the day - because this updates every 5 minutes, the axis at the bottom (which has the time of the data) is massive and doesn't look good.

Is there a way to show the axis at an hourly interval but keep all the data in the chart?

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved