VBA Multiply Figure By Working Days In Current Month
Aug 28, 2013
I have the following sheet layout.
COLUMN B
COLUMN C
COLUMN D
COLUMN E
COLUMN F
COLUMN G
[Code] .....
What I'm trying to do, is add a formula via VBA in the "FTE" column (Column Q), which is as follows:
Search row 5 in columns C:N and find the month which matches the current date.When a match is found, take the corresponding value from row 4 and multiply this value by the value in column P.So using the above as an example, the formula in column Q on row 5, would be 22 multiplied by 32.05 giving a total of 705.10.
VB:
Sub Extract()
Dim ws As Worksheet, LastRow As Long
Const StartRow As Long = 5
For Each ws In Worksheets(Array("Direct Activities", "Enhancements", "Indirect Activities", "Overheads", "Projects"))
LastRow = ws.Cells(Rows.Count, "B").End(xlUp).Row
[Code] ....
View 1 Replies
ADVERTISEMENT
Jul 14, 2008
I have an excel sheet where I need to insert the working days of the current month in a row. The working days are from Sunday through Thursday, that is, 5 days a week.
For example, for the month of July, 01 is Tuesday and the week ends on 3rd. So the row should look like this:
1-3 | 6-10 | 13-17 | 20-24 | 27-31
View 9 Replies
View Related
Mar 5, 2014
I have a access table with two fields named as "Month" and "Bank Holidays". I have put names of the month in this table for 2014 and the corresponding bank holidays of each month. Now I want to write down the piece of code that will execute when a button on the userform is pressed and it should check the current month of the year and then display the total working days ( After subtracting bank holidays of that month and weekends of that month from the total working days of that month).
View 3 Replies
View Related
Aug 19, 2007
Is there a formula to calculate the working days left in the current month? I work in the financial services industry and am putting together a spreadsheet to automatically calculate sales production needs per "working day", based on my businesses schedule.
We are open M-F and Saturday, not including holidays. Now, I can look at a calendar, count the days left and put them in to the spreadsheet, but I'd prefer to have it calculate automatically.
On my spreadsheet, I have used the =TODAY() formula. In the cell below, I would like to have it calculate the actual working days remaining in the current month.
Since today is Sunday August 19th, I know that there are 11 working days left (starting Monday 08-20-2007). Is there a way to get Excel to do that?
View 9 Replies
View Related
Oct 4, 2006
Is there a formula or code that returns the dates in the month in the current month before today? For example, today is 4th october 2006. so I would like it to return a column of values that include 1/10/2006, 2/10/2006, 3/10/2006, 4/10/2006.
View 2 Replies
View Related
Jul 1, 2010
I receive an extract from our Financial System monthly which list all the balances for each date of the month (both workings day and week-end(Sat. and Sun.)).
I would like to create a macro which will extract only working date (Mon.- Fri) and the balances in the columns.
View 6 Replies
View Related
Apr 2, 2009
I have two columns of dates, leave start and end dates (when people start leave i.e. annual leave). Would need to introduce column(s) to calculate how many days fell within the month including the end date and excludes weekends.
For example, if the staff on leave from 31st March to 6 April, i need to show that the number of leave taken as 1 day in March and 4 days in April.
View 9 Replies
View Related
Aug 20, 2013
Basically, I'm doing a recorded macro for work where I take an export and manipulate the data to show differences between sales from last year and this year. Also comparing this months projected sales to avg of last 6 months and also against last years this month.
The problem I'm running into is in automating the this month sales for mid-month exports. I can do it individually but I can't find a formula that will do it. Data is in one cell per month, so ex. 130 sales this month so far. I need to have it convert that to projected sales for total month based on what day it currently is.
View 1 Replies
View Related
Sep 28, 2009
I have the following data:
column a: column B:
1
7
9
25
I need a formula to make column B equal to the current month adding the day in column A. so that column B equal the following:
column a: column B:
1 09/1/2009
7 09/7/2009
9 09/9/2009
25 09/25/2009
View 3 Replies
View Related
Mar 20, 2009
I have log data in two columns:
Column A: Date/time (at 30 minute intervals)
Column B: Numeric data
On the last row of each month, I’m trying to perform a SumProduct on the two columns and display that result in column C.
The end of the range is determined by the month in the current row.
I’m having difficulty finding the beginning of the range, though. I need to account for both the normal dynamic calendar days & the fact that I may get data starting mid-day and mid-month.
I have this formula, but I’m not sure how to make the first array dynamic or if this is even correct approach.
Manual
=IF(OR(MONTH(A1009)=A4)*(A$4:A$65536
View 9 Replies
View Related
Jan 21, 2010
I have a spreadsheet for monthly supplies. In row 1 is Jan – Dec and in the row 2 below are empty cells where there will be a total for that month’s purchases. I want a conditional format formula to automatically bold and highlight the current month’s total and month name.
Also, when I enter February totals next month and that number is input into February’s total, I want that month and total to bold and highlight BUT I also want the previous month’s bold and highlight to vanish at the same time. Is this possible?
View 9 Replies
View Related
Jul 31, 2014
I've got the below so far, but where it says V2>=(Q2+5) , I would like it to add 5 working days instead, is this possible?
Code:
=IF(AND(T2="Awaiting",V2>=(Q2+5)),"Overdue","Raised within 5 Days")
It would also be great if there is a way to say that if T2="Not Required, then put "Not Required" in W2 (where the IF statement is)
View 4 Replies
View Related
May 1, 2006
I would like to create a monthly inventory, based on workdays (Monday - Friday)Myrna Larson has a formula that I would like to use with the workday function, but I don't know how to combine them.
=IF(A1="",A1,IF(MONTH(A1+1)=MONTH(A1),A1+1,""))+ = workday
to fit on the page, I need the dates to be from the 1st to the 15th, and 16th to the 31st. I am not sure how to write this either.
View 11 Replies
View Related
Jul 18, 2012
the MONTH(NOW()) Function, as I need it to reference the month preceding the current month.
View 3 Replies
View Related
Oct 2, 2005
function in a spreadsheet that will list all of the days in
a given month automaticaly with the entry of the 1st of the month only.
Ex;
10/01/05 entered dated
10/02/05 auto fill
10/03/05 "
. "
. "
10/31/05 end of auto fill
I would like the function to stop filling dates at end of the month even for shorted months such as Feb.
View 10 Replies
View Related
Feb 13, 2013
I wanted to determine the number of days between two dates. Specifically, if the initial date is in one month, and the second is in a different month and an output would result a number of days in each month until the final date. BUT I have a large amount of data to do this for in a list view, way to put a formula in excel and just drag down the entire list to get the required information. see below for an example.
The result I'm looking for is the separate the months and only show the relevant months between the two dates in one cell or the adjacent. Something similar to the table outlined below.
Input Data
Result
Start Date
[Code]....
View 3 Replies
View Related
Nov 6, 2009
I want to have a column that will show the length of employment for a list of employees. I have a column for each employee already listed as their hire date. What I want to do is have the next column indicate how many days that employee has been on board.
I know about the =Today() and =NOW() and would assume I need to use this somewhere this way every time the spreadsheet is opened it would update the length of employment.
View 2 Replies
View Related
Dec 22, 2009
there are 360 days in a year. is it possible for excel to show what is the current number of day?
eg. today is =350
View 9 Replies
View Related
Aug 31, 2007
i'm working with a macro i'm putting together that basically needs to add 5 days to the current date to insert it into a cell on the data sheet. my current code is like this:
'Insert Date Information
Dim vDate As Date
Range("D2").Select
ActiveCell.FormulaR1C1 = Format(Now, "mm.dd.yy")
vDate = ActiveCell.Text
' Get Date info
Dim vDate2 As Date
vDate2 = Application.InputBox(Prompt:="Type in the due date for the location." & Chr(13) & _
& Chr(13), Title:="File Name")......................
View 2 Replies
View Related
May 16, 2008
As I searched I see that JD "Julian Day" started from '4713/01/01' BC, counted 1 noon at noon. and suppose we are now in '2008/05/16', what is the algorithm of finding the days from '4713/01/01' BC through '2008/05/16'?
View 4 Replies
View Related
Jun 15, 2014
I am looking for 3 outputs from the attached report. Output report also attached.
1.Under the column "Created_date"(Column I), I am trying to count the number of rows which has current month in column L and result in output report file under "Risks Added" column.
2.Find and count the number of rows which has been modified this month by using "Modified_Date"(Column N) column and result in output report file under "Risks Updated" column.
3.Compare the column "Status_Change_Date" which is updated this month and "status". If that row has the Status column as 'Resolved' and the 'modified date' column has current month, please give the count of those rows in the output report file under "Risks Mitigated" column.
Below is the basic vba code for copying the rows which has this month created date
[Code] .....
Attached Files:
Sample Report.xlsx‎
Output Report.xlsx‎
View 1 Replies
View Related
Nov 28, 2008
I don't think there is a built-in function for retrieval of the last day of the month, is there?
Does anyone know how I can retrieve the last day of month using VBA?
So that I can use it like DATE.
View 9 Replies
View Related
Apr 9, 2009
how i can fix the formula below to show the number of remaining days between the given date and the current date.
View 3 Replies
View Related
Mar 2, 2008
I currently have a sheet that shows monthly tasks and their due dates. There is also a control that when clicked, resets the due date to the following month of the same day.
What I would like to do is setup some type of reminder such as either flash the due date cell if possible or change the fill color. It should do this when the system date is = to or 4 days before the due date.
The only way I can see doing this is using VBA, which I do not know very well.
View 3 Replies
View Related
Feb 18, 2013
I've got a spreadsheet with several rows and the numbers within those rows are totalled up at the bottom. Is there a way where i can highlight the cell within the spreadsheet and it takes it off the accumulative total at the bottom? or something similar to this effect? I just don't want to have to remove figures from this spreadsheet and highlighting will be a good way of seeing what has been done
View 1 Replies
View Related
Jun 6, 2014
In A column the date something is received will be entered.
In B column there is a drop down list that has "insured" "Fee" "Aged Debt" "Other".
In C column I am trying to get another date to populate dependant on what is picked from column B, so if Insured is picked then 1 working day needs to be added to the date in column A and populate in column C. If any of the other 3 options are selected 5 working days needs to be added to the date in column A and populated in column C.
I have been using this formula: =IF(B2="","",IF(B2="Insured",A2+1,A2+5)) however this is not working days and I am stuck how to get to add working days
View 4 Replies
View Related
Aug 30, 2012
I want to compare performance data YoY, updated monthly on a YTD basis.
Sheet1: columns of data as follows
Jan11 Feb11 ... Dec11 Jan12 Feb12 ... Dec12
1000 200 ... 500 800 900 700
...
Sheet2: If we have data through July 2012, I want to show a sum of Jan-Jul11 against Jan-Jul12 on a separate sheet.
Cell1 (updated each month) = July
ColumnA: Jan-(cell1) 2011
ColumnB: Jan-(cell1) 2012
Is there a formula I can use in columns A & B that will reference cell1 and update using the data from sheet1 automatically when cell1 is changed each month?
View 4 Replies
View Related
Apr 9, 2008
I am working on spreadsheet that calculates yearly totals. It is set up similar to this:
Jan Feb Mar Apr May ETC. TOTAL
Charge 123 123 123
Goal 223 223 223 223
Cash 111 111 111
% Coll. 50% 50% 50%
The "goal" column is Self calculated for the current month (I.E. it's April, that goal is calculated) The "Charge, Cash, and % Collections" columns won't be fill in for April until its over.
have it add Aprils "Goal" but not add "Mays" and so on... Doing this for the entire year.
View 9 Replies
View Related
Jan 28, 2009
I have a table with 2 date columns, and I need to subtract one date from another to give me the number of days the job has taken, but this also needs to exclude the weekends. There is no hours involved.
I.e.
Start Date Finish Date Days Taken
22/Jan/2009 27/Jan/2009 4
Is there a formula that i can use to work out the days taken.
there is multiple rows of information, the above is an example.
View 7 Replies
View Related
Mar 6, 2014
I am a memeber of this forum for more than a year, and currently assign into a new assignment which dealing an excel file everyday. We have one excel file for moniroting of action items generated by the management after the study. As since there were around 2,500+ rows has been generated since in the beginning of 1990's till todate. So I was thinking of instead of getting the result through filter manually, I want to create a formula that will count of how many has been closed this month out of the total numbers of action items.
Is it possible to use the COUNTIF formula to count the number of items in Col C, where Col B contains a date?
2-Jan-13 Closed
2-Jan-13 Closed
5-Jan-13 Closed
19-Feb-13 Closed
16-Feb-13 Closed
22-Feb-13 Closed
2-Mar-14 Closed
5-Mar-14 Closed
8-Mar-14 Closed
10-Mar-14 Closed
15-Mar-14 Closed
View 10 Replies
View Related