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


ADVERTISEMENT

Calculate All A Rates Seperate From B Rates And C Rates

Aug 15, 2007

formula is needed to get excel to calculate all A rates seperate from B rates and C rates example 10 A rates @ 50.00 9 B rates @ 40.00 and 6 C rates @ 30.00 so although the rates could be mixed up (not following in any particular order the result which I would like to appear on a separate spreadsheet would be A = 500.00 B = 405.00 C = 180.00 then to get them to total up = £1085.00

A 50.00
B 40.00 then separate sheet with answer a 100.00 b 40.00 c 60.00
A 50.00
C 30.00
C 30.00

View 9 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

Missing Rates

Jun 24, 2008

i have a bunch ofdaily rates back from 2005. sometimes ill have one or even 2 or 3 missing rates in a row. when there is a blank rate, i just want excel to calculate the average of the date below and the date after. right now, ive just been going manually to each missing date's rate and calculating the average.

View 9 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

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 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

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

Excel Add-in For A Series Of Rates?

Oct 25, 2011

There is a database of rates, stored in an excel table. There are dates (in the format MMYY) and corresponding currencies (100 in total)

I would like to have a custom function where I could type

=RATELOOKUP("EUR","0911")

And the corresponding rate will appear

The excel file with the rates is stored read only in a locked folder on the network so the format and layout will not be affected

How could I macro this? - then turn the result into an addin so that everybody can take advantage of this.

View 9 Replies View Related

Calculating Success Rates

Jul 20, 2006

I have three columns. The first column contains a certain category ( i.e. Cat 1, Cat 2, ect.), and the second and third columns contain numbers referring to that category:

Ex:
A1 B1 C1
Cat 1 6 5

I want to be able to find the success rate (C1/B1), but I want Excel to recognize what category it belongs too so I can split the success rates into categories in a different location. What function, if there is one, do I use, and what information do I need to plug in.

View 8 Replies View Related

Live Currency Rates

Dec 7, 2006

I know that Excel has a function to import currnecy rates from the MSN Money web site. But MSN Money doesn't support all currencies. I would like to build an excel sheet where a user can maintain the currency codes and the currency rate is being fetched from the internet. Does anybody have a suggestion from where I could get currency rates into Excel?

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

Distribute Macro To Others

Feb 28, 2008

I have created a Macro and would like to make it available to other members of my team. This Macro is to be used in various different workbooks - so it cannot be tied to a single specific workbook. I tried creating an Add-In, but I've learned that, even if I instruct my colleagues how to load the Add-In, they will not be able to see the Macro that is inside it. So what methods are recommended for distributing Macro's to other users?

View 7 Replies View Related

Calculating Using Times And Different Rates For Bookings?

Oct 14, 2013

I am trying to create a booking calculation sheet for facilities. I want it to create something like a quote for customers. So when booking facilities, the hourly rate changes after 6pm. What I want to do is to put in a start time and a finish time and it calculate how many hours are before 6pm and charge them at $12 per hour, as well as how many hours after 6pm and charge them $18 per hour. I have tried a few things but they don't seem to work. I'm struggling with the logic of it really. This is mainly because the start time may or may not be before 6pm, as too the finish time.

View 6 Replies View Related

Daily Compound Interest Using Two Rates

May 16, 2014

Formula to calculate a daily compound interest based on the higher rate of the two rates for the first 5 years, then after 5 years the calculation would only be based solely on the blocked rate.

View 4 Replies View Related

Calculation Time And Charge Rates

Oct 8, 2007

I am trying to figure out a formula to figure out how much to charge for hrs of a rental. There is an automatic $1000 charge regardless of time used. the rate chart is as follows:

$1000 + hourly charge = total

=<50 hrs= $15/hr
>50hrs but <100hrs= $6.50/hr
>100hrs=$4.10/hr

ex: so is A1= 200hrs then i want B1 to equal $1820.($1000 + (200 x 4.1))=1820.

I have an idea on how to write the formula, but i am having a little bit of trouble with it.

View 14 Replies View Related

Calculate Compound Interest Rates

Sep 22, 2011

I am trying to work out a formula to calculate compounded interest rates.

I have a table that is 24 columns wide (months).

1 row that will have amounts input in to the columns (these will be different amounts)

I want to have a row along the bottom that calulates the compounded interest at a fixed interest rate on the total amount that is in the first row.

I have managed to do this using a table but surely there is a formula for this as the table can become very troublesome if the input amounts change.

Ive added an image (attached) : excel.jpg‎

View 6 Replies View Related

Calculating Monthly Growth Rates

Feb 28, 2008

I have US money supply data, arranged monthly from 1975-2008. I need to calculate the monthly growth rates. I would really appreciate some help as I have no clue how to do this.

here is a link to a text version of the data I am using: [url]

View 9 Replies View Related

Grid To Determine Interest Rates

Jul 23, 2008

I have a grid to determine interest rates. The are add ons to the rate that are dependent on two factors - the credit score and the Loan to Value percent or LTV, both of which are shown in terms of ranges (720-739, etc). See the screen shot below.

I have already written formulas for converting the score and LTV to the ranges as they appear on the sheet (ie, if you type in a score of 722, the formula converts it to the range of 720-739.

What I need to do is this - when the score and LTV are input and determine which set of add ons come into play, I need the sheet to take those add-ons, identified by an x next to it at the top of the page, and add them to the base interest rate, giving me the final rate. Again, see below to make this more clear.

I've thought of using VLookup, but I don' think that would be applicable here.

What's the best method, and can you give me an example of what a formula might look like?

Loan Level Pricing Adjustments

Base Rate 6.25 6.25

Credit Score 741 >740

LTV 60 740 Cash Out 0 0 0 0.25 0.375 0.375 n/a >740 Investment 1.5 1.5 1.5 2 2.5 2.5 n/a >740 2-unit 0.5 0.5 0.5 0.5 0.5 0.5 0.5 >740 3-4 unit 1 1 1 1 n/a n/a n/a

720-739 all -0.25 0 0 0 0 0 0 720-739 Cash Out 0 0.125 0.125 0.375 0.5 0.5 n/a 720-739 Investment 1.5 1.5 1.5 2 2.25 2.5 n/a 720-739 2-unit 0.5 0.5 0.5 0.5 0.5 0.5 0.5 720-739 3-4 unit 1 1 1 1 n/a n/a n/a

View 9 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

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

Auto Populating Dates But Skipping Weekend?

Jan 17, 2014

I need to make a schedule for testing where I check the samples every 3 days but if that date hits on a weekend I want it to role over to the monday if it hits on a Sunday and Friday if it hits on a Saturday. In other words wait an extra day if it hits on a Sunday and check the sample a day early if it would normally be on a Saturday.

I have been playing around with the WORKDAY command and some of the other date functions but I can't figure this one out.

View 3 Replies View Related

How To Distribute 200 Items Into 14 Employees

May 19, 2014

I been working on excel sheet that will distribute 200 items between the employees that are available to work. I've attached a copy of the workbook. First I need to look at the quantity of employees I have working that day. Second Distribute the items to each one of the employees. Third give the first employee the first piece. Fourth give the next available piece to the last person with a zero piece in their list.

book8.zip‎

View 12 Replies View Related

Distribute Data Without Repetition

Feb 17, 2014

I organize monthly audits of work completed by the team. Essentially we all audit each others work; but we cannot audit our own work.

I would like a formula that will evenly distribute the jobs for audit without passing a job back to someone that owns the job originally. e.g. Gareth cannot audit a job Gareth owns, but can audit Zach or Claire's jobs. The Excel sheet attached should make it easy to understand.

So far I have tried: =INDEX(A2:A24,RANDBETWEEN(2,24)) but this duplicates data and I cannot get it to evenly spread the jobs amongst the team.

View 3 Replies View Related







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