Allocate Days Into Periods In Which They Fall
Jul 5, 2009How can days be allocated into the periods in which they fall if they run across a number of months.
The attached sample might explain it better.
How can days be allocated into the periods in which they fall if they run across a number of months.
The attached sample might explain it better.
I have a sheet that has a start date and an end date for holidays.
The start date for the test holiday is 23/05/14
The end date for the test holiday is 15/7/14
I need a formula that will calculate how many of the holidays (work days only Mon-Fri) fall in each month from May through July.
I got this problem I can’t solve, maybe it is easy to solve, but I am fairly new to writing functions in excel.
I got a lot of different dates in single column, what I need is to pull the dates if they fall in to the range, from today till 30 days from now.
I understand it calls for array formula.
My problem is , I have a date range 21-Feb-2013 till 07-Mar-2013 (Col C2, Col D2 respectively) which is holiday list for a person.
I am trying to pull out the number of working days for that person in the month of Feb which should exclude weekends.
To get the total no. of working days for the month of Feb, I have used the below formula.
=NETWORKDAYS(DATE(YEAR(C2),MONTH(C2),1),EOMONTH(C2,0))
This gives me a value of 20 which is correct.
Now I need to find no. of days which fall under the month of FEB from the date range 21-Feb-2013 till 07-Mar-2013 (Col C2, Col D2) which are working days. so that I can subtract that from no. of working days for that month (FEB) to get the no. of working days which the person has actually worked.
Our company has been taken over by new mgt (Y co) on 1st Nov 2012 from old mgt (X co). Y co has the policy of providing employees with EOS benefits as mentioned below:
1st 5 yrs - 1 month salary per year
5-10 yrs - 1.5 month salary per year
+10 yrs - 2 months salary per year
But for deciding the slab, total period of service is considered. The below table provides the calculation of days as on 31st Dec 2012 based on different joining dates which I need to fix by way of formula.
Name
Hire date
Salary
Total service (days)
X co
Y Co
1st 5 yrs
5-10 yrs
+10 yrs
George
09-02-2005
1000
2883
2822
61
61
[Code] ........
I'm trying to calculate the length of a work order to develop an average and future proposal estimates.
For example:
Job received = A1
In work = B1
Job completed = C1
Total days to complete = D1
I know I can enter in D1 C1-A1 and get the correct result but I want the field to calculate A1-TODAY() until a completion date is entered. This would display the number of days the job has been in work until completed. Once completed use the C1 for calculation.
Sorta like
If(C1=">=0" then (A1-Today()) else C1-A1)
I will then use conditional formatting with block colors to indicate whether it is a completed job or in work job.
I'm needing a formula that will determine the number of days that fall in a specific month based on a date range. For example, if I have a date range of 10/15/2009 to 01/13/2009, I need the formula to determine the number of days in each month within the range (October has 15 days in the date range; November has 30, December has 31, and January has 13.) I have a large spreadsheet that would be so much easier to manage with such a formula. Currently, my spreadsheet is setup as follows. I need the forumla automatically fill in the number of days under each month.
Stard Date End Date Oct-09 Nov-09 Jan-10 Feb-10
10/15/2009 01/13/2009
I'm using Excel 2007.
My Vlookup result may relate to a number of occurances of the same source product code. I want to allocate the result so that the last occurance gets the balance. See attached file.
View 4 Replies View RelatedI need to allocate an existing subroutine (its code below) to a new button I'd like to add to my sheet. Two questions arise: to use "form control" or "activeX"?, also should I redfine the first line of the code?
[Code] .........
I allocate result of formula FORMULA R1C1 into the active cells,,,AND NOW I wan to allocate it into a variable x or y (I dont want that the result appears in the spreadsheet, just into a variable to work the code!)
View 9 Replies View RelatedThe number of transactions is scaled down to provide this example.
Rebate scheme (Cum Sales = Cumulative sales) based on the total turnover of a group of customers.
Cum Sales....Rate....Sales Band...Rebate
20,000........1.0%.......20,000........200
35,000........2.0%.......15,000........300
45,000........2.5%.........3,400.........85
...................Total......38,400.......585 average rebate 1.5%
I would like to correctly allocate the £585 rebate across the individual customers who have generated the turnover i.e. NOT by using the simple 1.5%.
Clearly the large sales value customers will have earned a higher % rebate than the lower sales value customers - but how to calculate?
Customer....Sales value...Rebate
A...................15,000
B.......................900
C....................7,000
D....................3,000
E.......................500
F.....................9,000
G.....................2,000
H.....................1,000
Total...............38,400.........585
I have a series of data that acts upon a traffic light system, i.e. Green, Amber and Red. These variables are posted along row 1 for example and there are 10 columns. Per column I have a tick and cross to answer a question. How can I find out how many ticks were on green days, amber days and red days? I have attached an example.
View 4 Replies View RelatedI am trying to create a Excel file for my job. I work in a warehouse where I have many different orders all of which are made up of various different numbers of items and priorities. For example:
Order 1 = 45 items, Priority 1
Order 2 = 78 items, Priority 1
Order 3 = 48 items, Priority 2
Order 4 = 34 items, Priority 3
The total number of items is divided by the number of staff to give each staff member a total for the evening.
I plan to have a list of these orders in the excel file.
What I would then like to do is to have each staff member allocated orders so that the their total is reached. The sheet would automatically allocate orders to each person from the list of orders so that based on priority first then by the largest number of items to the smallest.
I think this should be a fairly simple sheet to create and I have a view of creating an application for it if I can get it working.
Excel 2003
I have a macro and want to allocate it to a "button" . The macro is all ok.
So I make visible the FORMS floating toolbar / icon set.
There are 16 icons on this floating toolbar / icon set.
But the icon for button is missing, in that it is just 100% blank.
The other 15 icons are all ok, such as "Group Box".
Normally I would click this "button" icon, then draw my button, then allocate my macro to it.
I want to allocate the Quantities which is available in DC based on Sales, Store OH and In Multiples of Pallet Rounding (PR).
For Eg. If I have 200 Qtys in DC, Excel should allocate these 200 Qty's in multiples of PR to highest selling stores and also consider the store On Hand.
Below is the Format
Article #
Store #
Region
PR
Model
[Code]...
I'm trying to design a spreadsheet to allocate an amount to different bands.
For example - I have the figure 1750.
Band 1 : 0-500 (1)
Band 2 : 501-1000 (0.8)
Band 3 : 1001-1500 (0.6)
Band 4 : 1501-2000 (0.4)
Each unit in each band has a value (in brackets). So as you can see, the value of a full Band 1 would be 500. But the next band is only worth 400 when full, and Band 3 is only worth 300. I want band 1 to fill up first, then band 2, then band 3, then finally band 4.
I would like to be able to allocate the figure 1750 to all the bands automatically - starting with band 1, then 2, then 3, then 4.
formula to do the following:
Assign numerical values to the letters G, A, R each having the values of 3, 2 and 1 respectively and then take an average of their values. Please be aware that in some cells there may be no letter.
So in a 5 cell range the values could be:
blank, G, A, R, blank which equates to a result of 2 for an average, (3+2+1)/3 (the two blank cells are discounted).
On Sheet1 I have ListBox1 referencing data from Sheet2 for the ListFillRange property. The Listbox is a control box added on to the worksheet.
I wish to have a VBA Subroutine that defines the ListFillRange dynamically according to the size of the source data range. ie. Sometimes the range is AH3:AL300, othertimes the range could be AH3:AL200 etc. The last row of data needs to be the last selection in the Listbox.
The range looks like:
1 10:00 blah
2 10:05 moreblah
etc
Attached is a spreadsheet wherein I'm trying to extrapolate project costs across various months based on working days in a month subject to start and end dates of the project. Need an accurate formula to spread the cost.
Days & Cost Allocation Example.xlsx‎
I need a formula to add numbers together that fall under a certain value in a row and a certain column from more than one pivot table.
I have used this
=GETPIVOTDATA("orders",$A$*,"Month","December,","WAIT BAND","2-3")
and this works fine for bringing across the data for that pivot. The problem i have is if i then also want to add numbers from another to another pivot.
=GETPIVOTDATA("orders",$A$*,"Month","December,","WAIT BAND","2-3") + =GETPIVOTDATA("awaiting orders",$A$*,"Month","December,","WAIT BAND","2-3")
I have about 50 timespans.
Each is formatted to have start time in column A and end time in column B (DD/MM/YY h:mm).
I also have a list, with about 850 rows timestamped (same format).
I need to mark all rows which fall in one of the ranges.
I have items arriving on certain dates (the dates are listed in column N)
In the cell to the right of each month, I want to have a formula that will count the dated cells in column N that fall under each month.
i.e. In cell B5, next to January, I want to display the total number of cells that contain a date in January (ultimately giving me the number of items that arrive in January) the number would read '5' because there are 5 dates in January that are in the list.
I need to figure out a way to get an average for the numbers in column A, but ONLY those numbers in column A that have the number "1" in column B. example:
Column A Column B
3 5
6 1
4 1
The average would be "5", because the numbers 6 and 4 have "1" next to them in column B.
I have to columns of data
Date and number
4/1/2012861,808
11/1/2011594,930
11/1/20102,740,320
11/1/20121,041,948
10/1/20111,726,000
10/1/20091,628,000
10/1/20082,059,929
10/1/2011 4,002,000
9/1/20062,979,602
9/1/20073,774,000
9/1/2011NA#
I want to take the average of the numbers between if they fall between dates of 2006 and 2007.
I can not do it with averageifs because I have that NA# in the second column. I dont know what to do.
I have something that works but only if it does not contain NA#, below is the example of what works:
=AVERAGEIFS($D$2:$D$131,$B$2:$B$131,""&H2)
I have a spreadsheet in which I have a date column. I would like to be able to count the number of cells that fall within a specified date range and am struggling to find a formula that works.
I've tried - =(COUNTIF(North!N:N, ">23/05/2008")+COUNTIF(North!N:N, "
Need a solution for calcuate a week in user enterd date?
Example
A1 A2
07/01/2009 1
07/01/2009 5
I have written some simple VBA code so that on Sheet 4 I have a drop down list box to choose the month.
When the month is chosen by the user it moves to the active cell and changes the dates, as well as dates in some other columns (I used activecell.offset ....).
This code runs perfectly fine when I haven't refreshed the pivot tables in the workbook. But straight after a refresh, if I try and change the month it gives a run time error and gets stuck at the first instruction:
Sub cboMonth_Change()
Sheet4.Range("C2").Activate
I'm trying to make my formula work. It is working now but I need to add one more criteria and I can' figure it out. I need to get a number of entries that fall into this categories:
John Smith09/02/2009Closed
=sumproduct(--(A1="John Smith"),--(B2>=Today()-90),--(C3="Closed"))
Now I need to get a count of entry either if there is a date >= Today()-90 or if it says "Closed" in C1. But I only need one of the two and I can' figure it out.
I have in column A the units, and in B and C the date changes. I want, when I pick a month from the box, that it only picks the IN and OUT date that applies to the month that I picked (per unit). For ex: if I choose Month march, it should show only for unit 19902506 for example: A2 and A5. And not A7 and A11. As March falls in between the Start and End Date. Is that passible? Something with OFFSET? I managed to find the latest known date with the formula =lookup (Column M:N) but Im not sure
View 2 Replies View RelatedPlease see the attached xls file so see what I am referring to.
I have shipments that are going to different destinations (rotterdam, austria, london, etc.)
I would like to count the arrival dates in column H that fall under each week's span, but ONLY IF its corresponding value in column F is 'rotterdam'.
Column C contains the ideal numbers that I would like column B's formula to return. I plan on doing this for the entire year, but if someone can some up with a formula, I might be able to modify it for the rest.
Note: This is only an example spreadsheet, I am going to be referencing an external file with much more information on it.