Weekend Shift Patterns

Jan 19, 2010

I'm trying to divide the hours between 2 given times in blocks:

i.e.: monday 0600 - 1400 = 8 hrs

2400-0700 [mon - fri] = 1
0700-1800 [mon - fri] = 7
1800-2400 [mon - fri] = 0

0000-2400 [weekend]

I got the first 3 blocks working but got stuck with the 4th one.

It should count only those hours between saturday morning 0000 and sunday night 2400 if it concerns a weekend day. and actually these hours should not be calculated in the first 3 time blocks.

View 12 Replies


ADVERTISEMENT

Show & Chart Shift Work Patterns

Feb 27, 2009

Split from How To Set Up A Spreadsheet The Right Way

Taking onboard what you suggested I have "rethought" the layout and it is now in a single table format. What had stopped me doing this previously was the fact that I was not able to show 7 days a week for 48 weeks in columns. However thanks to the transpose function all the data is now more user friendly (See Attached Workbook)

You mention the data should be quite easy to manipulate from here, any ideas as I am struggling with the concept of how to display the data in a time series. I assume that it will involve some form of lookup function referenced to the table of times, but thats as far as i can get.

View 3 Replies View Related

Lookup Wage Calculations (calculate Pay Per Shift Dependant On The Type Of Shift)

Dec 1, 2009

I have the basics set up, but need to work out how to make it calculate my pay per shift dependant on the type of shift i have worked.

I have attached a screen shot of the current page,

In it i have currently used validation drop boxes for the location and worked columns with tables just to one side of the sheet.

The shift pay is the column i am having trouble with.

I would like it to change dependant on what is selected in the 'worked' column.
For most things it should just display basic plus holiday, however if supervisor is selcted in the work column, it should display basic plus holiday plus supervisor.

View 3 Replies View Related

Calculate Pay For Shift Work With Different Rates Based On Shift Hours

Apr 11, 2008

a person works for certain hours and get paid according to the hours worked either by day or by night or a mix of both. Day payment is $8 when worked between 08:00 and 19:59 , night payment is $12 when worked between 20:00 and 07:59. The excel cell are formatted as datetime with yyyy-mm-dd hh:mm , the function works fine in getting the time information and checking whether the whole work is all day or all night , yet the if-then-else statements for calculation seems to be wrong!!

examples:

start = 2008-01-01 09:15 , end = 2008-01-01 11:40 , all day as it is between 08:00 and 20:00 and cost = 8/hr = 19.333

start = 2008-01-03 21:05 , end = 2008-01-04 02:05 , all night as it is between 20:00 and 08:00 and cost = 12/hr = 60.000

start = 2008-02-02 19:00 , end = 2008-02-02 20:05 , cost = 9.000 as 1 hour day = 8.000 plus 5minutes night = 1.000

Function prod(st As Date, en As Date) As Double
Dim shour As Integer
Dim smin As Integer
Dim ehour As Integer
Dim emin As Integer
Dim stod As String
Dim etod As String
pday = 8
pnight = 12
shour = Hour(st)
smin = Minute(st) + shour * 60
If (shour >= 8 & shour < 20) Then
stod = "day"
Else
stod = "night"
End If
ehour = Hour(en)
emin = Minute(en) + ehour * 60
If (ehour >= 8 & ehour < 20) Then.................

View 8 Replies View Related

How To Delete Patterns From Data

Jul 29, 2013

I have the following code for identifying the 1,3,2 patterns from sheet1 and it copy pastes those rows into sheet2. I was wondering if there is a way to modify this code to delete those patterns once it has identified them instead of pasting them into sheet2. In other word,s sheet2 needs to contain every other data except those identified patterns.

VB:

Sub test()
Dim myPtn As String, txt As String, m As Object, n As Long, LastR As Range
Dim ws1 As Worksheet, ws2 As Worksheet, myStep As Long, i As Long, t As Long
myStep = 10000 '<- change here if needed.
Set ws1 = Sheets("sheet1")
Set ws2 = Sheets("sheet2")

[Code]...

View 2 Replies View Related

Identify And Number Patterns

Nov 3, 2013

A person on this board did this for me with this so far and I need to be able to view more than 16 rows. I would like to view all the rows it finds. I have 62,000 rows on information this far and will exceed 500,000 so you can see my need to see all involved to save hours of sifting through data. I would also like a place up top near the box (column G.H)(3,4,5) another box for me to enter a new number combination to search. Presently I have to go through the data to find the first one which is also time consuming. I would like to be able to put say for example in the area I am mentioning:

2 6
4
2 8

View 1 Replies View Related

Regular Expressions Patterns

Sep 24, 2009

Hope the title isn't too broad. Every time I think I have got to grips with RegExp I get stuck on something apparently quite simple. So, I have a few queries so I hope OK to bundle them together.

1. How do I remove the word 'of' only if it occurs after certain other words (the other words should also go). E.g.

"Vale of White Horse" should stay the same
"Borough of Lambeth" should become "Lambeth" (because 'of' after 'Borough')

I tried "Borough(sof*)" but that doesn't remove either word.

2. How do I remove everything after a '/' (inclusive)?
I have tried "/sw+" which removes the first word after '/' but there could be other words

3. How do I remove everything inside brackets (inclusive)?

View 6 Replies View Related

Formulas Recognizing The Patterns

Aug 15, 2008

I am trying to do an "if" statment to look in every 23rd cell to see if it is greater than 0. if it is it populates what is in that cell. That is fine...

The problem is i want to create the "if" statement just a couple of time manually, than drag it down 300 rows and have it look every 23 cells. It does not recognize the pattern???

View 11 Replies View Related

Filled Patterns For Xy Chart Lines

Jun 6, 2007

I have an xy chart for which I would like to format the lines to be different patterns beyond those available in the format series dialog. I recognise that this will mean using VBA and I am happy to do that. I would like to be able to use patterns in the same way as they are used in a column chart.

I recorded a macro to see which properties were changed when the patterns are selected in the dialog for the xy chart and it is clear that it is only the LineStyle of the border and that there is no interior.

With Selection.Border
.ColorIndex = 57
.Weight = xlMedium
.LineStyle = xlGray25
End With

This would explain why when I use debug.print ser.Interior.Pattern I get -4105 or if I change ser.Fill.Forecolor etc it has no effect.

Is there any way to use user defined patterns to colour the lines in the same way as in a histogram/coloumn chart?

View 5 Replies View Related

Start Shift And An End Shift

Nov 18, 2009

I have a Start Shift and an End Shift time,

Start Shift = 2009/11/10 09:27:06 (GMT-6:0)
End Shift Time= 2009/11/10 15:13:03 (GMT-6:0)
eg. Total Time = 5.3 hrs

I would like to take if from this format, and calculate the total time difference. Sometimes the GMT codes may be -5:0 if that means anything. For the cell "Total Time" I only need it to have a decimal format.

View 12 Replies View Related

Creating Patterns For Auto Fill To Follow?

Aug 20, 2014

I'm trying to create an auto fill pattern to match B4-M4 then repeat with B5-M5 and continue to 350.

So for example, I'd like to manually enter "B4,C4,D4,E4,F4,G4,H4,I4,J4,K4,L4,M4,B5,C5,D5,E5,F5,G5,H5,I5,J5,K5,L5,M5" into column A and drag the auto fill box down until I've repeated the pattern to match all the way to M350.

Is this possible? I tried just entering the pattern as I've posted and dragging the auto fill down, but it doesn't fill the numbers properly and ends up with a strange pattern.

View 5 Replies View Related

How To Match Data Patterns Across Multiple Columns

Apr 14, 2009

I am using Excel 2007 and I need to search for data patterns that are spread across many columns. I am not sure how to search so that criteria is met across all the columns concurrently.

For example

I am interested in data that matches the following criteria ;

Column B has the value 55
Column C has the value 70
Column D has the value 80

Rows of interest are when all the criteria in columns B,C,D are met at the same time (e.g 55 in B, 70 in C and 80 in D).

View 9 Replies View Related

Cyclical Patterns - Highlighting Repeating Rows

Oct 10, 2011

I have created a spreadsheet to find cyclical patterns and my next task was to sort these patterns from highest value to lowest.

Next I need to start from the first row of the sorted spreadsheet and find the first row working down that repeats. Once I find his row I have to stop the search and highlight both the original and repeated rows. If the first row has no repeat it has to move to the second row and do the same operation until it finds a row that does repeat and so on.

View 8 Replies View Related

How To Create Patterns When Copying / Pasting Formulas

Jan 24, 2012

I was wondering if there was a way to create patterns when copying and pasting formulas?

For example, here is what I want to do right now:

=AVERAGE(Sheet1!I2:I650)
=AVERAGE(Sheet1!I2:I649)
=AVERAGE(Sheet1!I2:I648)
=AVERAGE(Sheet1!I2:I647)
=AVERAGE(Sheet1!I2:I646)
=AVERAGE(Sheet1!I2:I645)
=AVERAGE(Sheet1!I2:I644)
=AVERAGE(Sheet1!I2:I643)
=AVERAGE(Sheet1!I2:I642)
=AVERAGE(Sheet1!I2:I641)
=AVERAGE(Sheet1!I2:I640)

In other words, have a pattern in the formula?

Or something like this, but filling out cells horizontally.

=A1/A100
=A1/A99
=A1/A98
=A1/A97
=A1/A96
=A1/A95
etc...

Or:

=A1*A1
=A1*A2
=A1*A4
=A1*A8
=A1*A16
=A1*A32
=A1*A64
etc...

View 1 Replies View Related

Sum Weekdays And Sum Weekend

Aug 15, 2007

I have a sheet with alle days an date in one month

in column "A" the date (format: TTTT TT.MM.JJ)
in column "B" I have the worked hours

Below in the sheet I would to have to sums
each one for weekdays and weekends,

because my guys get more money if they work on a saturday or sunday.

I have been playing with the formulars
=sumif(weekdays(....., but cant geht the right thing

View 9 Replies View Related

If Weekend Then Message Box

Feb 11, 2008

F4 has a macro calendar. I want, if a weekend is selected on the calendar, to display a message that only weekdays are allowed.

Here is the hard part. I have the Analysis ToolPak installed within Excel, but cannot import it into VBA as a reference. It will be in conflict with some of the code I have. It does not allow code in Workbook_Open to execute correctly. So I have to work around this.

Private Sub Calendar1_Click()
ActiveCell.Value = Calendar1.Value
Range("E4").Value = Evaluate("WEEKDAY(F4,2)")
If Range("E4").Value = (Monday-Friday) Then
Range("F5").Select
Unload Me
Else
Range("E4").Value = (Saturday or Sunday)
Range("F5").Select
MsgBox ("Please select a valid business day. Weekends and Holidays are invalid.")
Unload Me
End If
2 Things:
1. How do I list

Range("E4").Value = (1,2,3,4,5)
2. Is there a better way of doing this? As far as determining a weekend and displaying error message if it is.

View 9 Replies View Related

Excel 2003 :: Changing Colour Palette To Include Patterns?

Dec 19, 2011

I'm trying to change the colour palette to include patterns (for charts). Is this possible? We use Excel 2003.

View 1 Replies View Related

Identify Every Weekend By Placing 'X'

Jan 8, 2010

If I have 1 Jan thru 31 Dec in A1 - A365, is there a way I can identify every weekend by placing 'X' in Col B alongside every occurrence of Saturday and Sunday?

View 2 Replies View Related

Remove Weekend Values?

Sep 4, 2009

I'm currently using the macro below to modify the two cells next to a date field in a template. The number of rows this will run through could vary from 2 to over 1 million, but the columns will always be the same. Because of the size of the datasets, this macro can run for quite a while, which is fine, but I'm thinking there's probably a better way to do it. To clarify, the object of this part of the macro is to determine if the date falls on a Saturday, and if so, change the value of the two cells to the right of the date to "0"

View 5 Replies View Related

Find Weekend Dates

Nov 13, 2006

Is there a quick way to find weekend dates in excel? I tried pasting all 2006 dates into J2:J366 using the fill handle. It has weekdays as an option but not weekend dates. Any easy way (formula or simpler) to find the weekend dates in this range?

View 2 Replies View Related

Finding Two Patterns In Column And Doing Calculations Depending On Pattern Order Found

Apr 30, 2013

I'm attempting to do work on pattern detection and actions based on how said patterns occur in a column. Here is what I would like excel to do for me:

Code:
Pattern W1

Example A1=A , A2=A , A3=B

Pattern L1 Consecutive "A" 3 or more

Example A4=A , A5=A , A6=A

Triggers on specific events:

While L1 tracking variable = 0 -- If L1 is found, mark a variable to -2 then set the corresponding cell in the column over to the value of the variable (-2)

While L1 tracking variable < 0 -- If consecutive L1s are found one after another, then (on each consecutive occurence) multiply the variable by 3, then set the corresponding cell in the column over to the value of the variable

If W1 is found while L1's variable is < 0, then multiply the value of the L1 tracking variable by -1 and add 1, then set the corresponding cell in the column over to the value of the L1 variable, then set L1's tracking variable to 0

If W1 is found while L1's variable is = 0, then set the corresponding cell in the column over to the value of 1

All data is in one column.

View 1 Replies View Related

Updating Values In Variable Ranges Based On Repeating Patterns In A Column

Jul 6, 2006

I have a list of two columns. Here’s an example. The left most column provides the row number.

_ A B
1 1 0
2 2 1
3 2 1
4 3 2
5 4 2.5
6 5 4
7 1 0
8 1 0
9 2 2

Whenever there are two repeating numbers in column one, I want to reduce certain numbers in column 2 by a certain amount. The amount is determined by half the difference between the number in column B corresponding to the second repeated number and the number in column B corresponding to the row after the second repeating number. The range of numbers that are to be reduced begins with the row after the second repeating number and ends with the last row before number one appears in column A. The values in column A are integers, always starting with one. For example, 1, 2, 3, 4, 1, 2, 3, 1, 2, 3, 4, 5.

For the above example, after finding the repeating number two’s at A2 and A3, it would reduce B4 through B6 by half the difference between B3 and B4 (1/2). The values for B4 through B6 would be updated in column B. The same for the next repeated numbers, which is one at A7 and A8. Half the difference between B8 and B9 is 1.

Here’s what the updated list would look like:

1 1 0
2 2 1
3 2 1
4 3 1.5
5 4 2
6 5 3.5
7 1 0
8 1 0
9 2 1

View 9 Replies View Related

Excel Date Without Weekend Count

Feb 6, 2014

I've got the following issue. I want to use the function =TODAY() + 2.

Because it's thursday 6-2 today, the outcome will be saturday 8-2.

The problem is that I want to exclude weekend in this formula, so the function must give monday 10-2 as the answer.

View 5 Replies View Related

Getting Autofill To Not Include Weekend Dates

May 7, 2009

1 have figured out how to create an auto fill that is a mix of days in between. (When dates are not in a row.) For example, a schedule that starts a date, and then adds 2 days, then 1 day, then 3 days etc....it is for a tracking schedule. Once created those amounts are the same for for every row. The problem is, when it counts the next day, or 2 days or 3 days etc, it cannot include a weekend date, rather just 2 working days, or 3 working days etc.
Is this possible?

Right now, I start my first cell with a date, and go to the cell to the right, and in my formula, I type the previous cell address and I add (+) some value (2) to represent the day amount, but right now it includes the weekend days as well, and I need them skipped.

View 5 Replies View Related

Time Calculation - Ignore Weekend

Jul 6, 2009

Please see attached Excel File.
I would like to calculate Column D depending on below criteria.

1. if both date is same than normal Column C-Column B.
2. if both date is not same than time diifrence should not be count after 17:30 to next day 08:30.
3. I do not want to include weekend (SAT & SUN) time diffrence if both date have.

In column D I have filled two cells that I want by formula.

View 11 Replies View Related

Weekend Work Schedule For Employees

Nov 28, 2013

I am attempting to create a rotating weekend work schedule in Excel to make life easier. There are 30 people who rotate Saturday's and Sunday's every month. Technically, they are only supposed to work 2 weekends a month, and am attempting a way to create this in Excel to make it more fair to the group instead of just picking and choosing which weekend these employees work, I would like an Excel program to do this for me.

View 1 Replies View Related

How To Calculate Sunday As Weekend In A Code

Nov 6, 2013

How to calculate weekend (ONLY SUNDAY) in VBA.

View 3 Replies View Related

Control That Report Sent Everyday Except Weekend For Each Country

Jun 29, 2014

I have a list of reports for many countries, I need to make sure each report is there for every country, except for weekend days.

report check.xlsx

View 1 Replies View Related

Create VBA To Distribute Rates And Exclude Weekend

Jun 24, 2014

I have to create VBA according to these criterias. I have a list of 22 rates that i need to distribute by order for a month period (30 days) noting that I need to skip weekends (Friday and Saturday)

Day 123.06.2014Monday20%
Day 224.06.2014Tuesday10%
Day 325.06.2014Wednesday7%

[Code]....

create this formula so that each time I change the date the rates are distributes accordingly

View 4 Replies View Related

Warning If Date Entered In Cell Is Weekend Day

Apr 5, 2012

I need a formula that will give a warning if the date entered in cell is a weekend day.

View 2 Replies View Related







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