360 Days :: What Is The Current Number Of Day?
Dec 22, 2009there are 360 days in a year. is it possible for excel to show what is the current number of day?
eg. today is =350
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
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 RelatedI 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.
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.
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")......................
I am making process TAT(Turn Around Time) which required following information. In Excel 2007.
1-Count number of days between two dates where working days are (Sun to Thursday). So required to exclude (Friday,Sat + Holidays)
A1-Start Date Mar/01/2014
B1-End Date Mar/31/2014
C1-No Of Days 22
D1-Days between two dates 21
E1 To E10-Holidays
2-Count number of days between two dates where working days are (Sat to Thursday). So required to exclude (Friday + Holidays)
A1-Start Date Mar/01/2014
B1-End Date Mar/31/2014
C1-No Of Days 27
D1-Days between two dates 26
E1 To E10-Holidays
Note : Any weekend (off days) dates listed in holidays should not effect the query.
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
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 RelatedI 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] ....
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 RelatedI 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 RelatedIs 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?
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.
I want to calculate the end date of my German courses. This is how it works:
A course consists of 60 LU*. The course can occur i. e. three times a week: Monday, Wednesday and Friday. In each day the course lasts 2 LU, which means 6 LU each week. There is no course on Tuesday, Thursday, Saturday, Sunday and on holidays. Therefore this type of course that begins on 18-Nov-2013 will end on 03-Feb-2014.
Another course which occurs Tuesday, Thursday and Saturday, and respectively has 2 LU on Tuesday, 2 LU on Thursday and 3 LU on Saturday and starts on 03-Dec-2013 will end on 06-Feb-2014.
Therefore I want to create a worksheet where I set the start date, choose the days and respectively the LU amount on those days. The end date shall be calculated according to these criteria.
The workday function on excel cannot do this and I do not have any programming skills to work with VBA.
Legend:
*LU = lesson units; 1 LU is 45 minutes
Holidays:
28-Nov-13
29-Nov-13
08-Dec-13
09-Dec-13
25-Dec-13
31-Dec-13
01-Jan-14
[Code] ...........
I have a spreadsheet for tracking jobs. Most everything is based off of week # rather than date. I am trying to get the stats page of the workbook to tally the total number of late jobs per week.The current week is taken care of because there is a function that automatically displays on time yes or no and I just set it to count the yeses or nos.The problem I am having is for past weeks.
I tried- =COUNTIF(Table2[On-time],"No"+(CountIF(Table2[Week # Hidden],"<Weeknum(Now())" but that doesn't work. I also tried isolating the < like this. =COUNTIF(Table2[On-time],"No"+(CountIF(Table2[Week # Hidden],"<"Weeknum(Now()) and that did not work either.
------ UPDATE
In response to using CountIFS I have also tried-
=COUNTIFS(Table2[On-time],"NO",Table2[Due Week '# Hidden],"<Weeknum(Now())") this just returns a zero value even when I have a late job listed three weeks ago.
How to create a spreadsheet with what I think will be a very simple formula?
If date in B2 - date in A2 is 1 or less days, put a 1 in cell C2.
If date in B2 - date in A2 is 7 or less days but more than 1, put a 2 in cell C2.
If date in B2 - date in A2 is 30 or less days but more than 7, put a 3 in cell C2.
If date in B2 - date in A2 is 90 or less days but more than 30, put a 4 in cell C2.
If date in B2 - date in A2 is 91 days or more, put a 5 in cell C2.
OR
Another, maybe simpler, way of saying it is:
If date in B2 - date in A2 is 1 or less days, put a 1 in cell C2.
If date in B2 - date in A2 is 2-7 days, put a 2 in cell C2.
If date in B2 - date in A2 is 8-30 days, put a 3 in cell C2.
If date in B2 - date in A2 is 31-90 days, put a 4 in cell C2.
If date in B2 - date in A2 is 91 days or more, put a 5 in cell C2.
I've got a spreadsheet that gets its information from outside of Excel. The Date comes across as a number stored as text. I need to some how calculate the amount of days between this imported date (Settlement Date) and Today's date.
View 4 Replies View RelatedI 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 RelatedIn my header I am trying to show the current page number and the total number of pages in the workbook. So if I have 10 pages in my workbook, page 5 would read "5 of 10".
I have this in my header "&[Page] of &[Pages]". All worksheets with 1 page read "1 of 1" and worksheets with 2 pages read "1 of 2" on the first page and "2 of 2" on the second page.
So, I need to keep adding together all the numbers from cell row 0 upto and including the row number of the cell with the result. The column with the results is to the right of the column with numbers to add. So, if the numbers are positive, to the right of each should be an ever increasing number as a result. In the column with the numbers to add is a function which as a result gives either numbers or blank cells. It sounds simple but it is frustrating me. Why can't I use the function SUMIF with a ROW function inside the condition field? It always gives me 0 as the result. I use excel 2003.
I probably do't understand the SUMIF function but why isn't =SUMIF(A:A;"1>0") equivalent to =SUM(A:A). This too gives the result of 0. Why don't I get an error instead.
I have an application that when user insert a new row, it will place a dropdown box on first column of that row waiting user to make a selection to pupolate other attributes to the rest of columns of the row.
That runs fine if user follow the sequence precisely. That is, user create a row, make a selection, then create yet another new row, make a selection, and so on.
My trouble is that when user created a few rows consecutively without picking a selection from each dropdown first, but instead s/he first created a few rows (say on 21, 22, 23, 34, and 25) and then came back to make a selection from the dropdown box in row 21, the VB code would insist current working/active row number is 25, not 21. This becomes a big problem.
curRow = ActiveCell.Row
curRow = Selection.Row
both show curRow = 25, which are incorrect
Is there any mechanism that when user click on a dropdown, I will be able to get its correct position (row = 21, column = 1, for example) from the engaged dropdown box? In other programming languages "Me" is a reserved object that would give out individual's property, but I am not sure if that exists in Excel macro/VB.
I am new to Excel macro. I am looking for its answer for a few days and unfortunately I haven't found any clue yet.
Does anyone know the VB syntax for obtaining a table name or number on an existing worksheet? I'm using Excel 2007 and have a worksheet that is one large table. I have a macro which copies the worksheet to a new sheet, converts the table to a range and then edits out the elements I don't require (my macro won't strip out information I don't require if it's still a table, which is why it's converted to a range). However, every time I copy the sheet, the table number increments by one.
For example: Unitlist is the original table name. When I copy the worksheet, the table on the copied sheet becomes Unitlist1. If I delete the sheet and copy it again, the table becomes Unitlist2 etc. etc. In order to get around this, I need to be able to reference the name of the table on the copied sheet and then use that reference to convert the table to a range. I can convert the table to a range using:
ActiveSheet.ListObjects("Unitlist1").Unlist
However, I need an automated way to obtain the table name. I've attached a copy of my macro for further reference.
Sub CopySheetDeleteData()
Dim c As Range
Dim i As Long
With Application
.Calculation = xlCalculationManual
. ScreenUpdating = False
Sheets("Units").Copy After:=Sheets("Units")
' rename the sheet
Sheets("Units (2)").Name = "ExportUnits"......................
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.
I would like to find the average number of days events take from start to finish.
My data is in 3 columns:
EventName StartDate EndDate
I have a ton of EventNames, each of which have a StartDate. But I want to calculate the average days to complete only for those EventNames that have EndDates.
So, if a cell in the column EndDate is greater than zero, then take that cell, subtract it from the corresponding cell in the StartDate column; Add all of them together and divide by the count of those rows in the EndDate column that have a value.
How do I put this in excel terms? ....
I have a start date (say 01/04/07) and I need to add a number of days to it to get the start of the next financial period. Unfortunately, I need to ignore a small list of dates (bank holidays, etc).
View 9 Replies View RelatedIf I was to say have a date in cell A1, is there a formula which would tell me how many days from that date left in the financial year?
I was thinking an IF statement, but I know thats way off course! And it could get quite messy.
This is what I would like it to do:
Cell A1 - 30/10/2007
Formula - Finds the number of days between 30/10/2007 and the remainder of the financial year, which for me ends on 30/06/2007
Should give me the answer of "x" amount of days.
1/1/2007
1/1/2007
1/2/2007
1/2/2007
1/2/2007
1/30/2007
1/30/2007
1/31/2007
1/31/2007
1/31/2007
1/31/2007
2/1/2007
2/2/2007
2/2/2007
2/2/2007
2/28/2007
2/28/2007
2/28/2007
2/28/2007
2/28/2007
This list goes on with every workday of the month repeat several times, with no day have any set number of entries. Also each new month is just tacked on to the previous list. All of this is in column A but there are many other columns of data with these dates. I just didn't see the need to replicate that here.
What I need is to be able to count the number of unique days per each month but I do not want to have to specify a range for the month of January, then another range for February, etc. I just want to be able to list the column A4:A1200 and have the formula select just the unique days for January. Then in another cell modify the formula for unique days in February and so on.
If I had two dates in two separate cells , so E2 is the 01/10/08 and F2 is 06/10/08 and I want to work out that their is a difference of five days what would the sum be? Also is there anyway I could factor into that sum what is pure working days as opposed to weekends?
View 9 Replies View RelatedI am trying to set up a function to derive a number of days between 2 dates.
Within the table I have an on hire date, and off hire date, and an optional suspend hire date range in 2 other columns - ie. there are 4 columns with dates in.
On hire is in column B; offhire in C; suspend hire in G and recommence hire in H. The optional suspend hire date range will always fall within the main hire date range.
Column I calculates the number of days for the suspend hire period.
My key cut off date is in cell C4.
There are 3 different scenarios I need the function to cover.
1 - if the cut-off date (in C4) is later than recommence hire, calculate the number of days from hire start to cut-off date, less suspend hire period days.
2 - if the cut-off date (in C4) falls within the suspend hire period, calculate the number of days from the hire start to the begining of the suspend hire period.
3 - if the cut-off date (in C4) falls before the suspend hire period, calculate the number of days from the hire start to the cut-off date.
This is the fuction I have written:-
=IF($C$4>H10*($C$4-B10-I10),
IF(AND($C$4>G10,$C$4
I want to determine the days' difference between 2 days, but I keep getting decimals.
(I don't want to foramt the column, because I want to use the value in a Pivot Table.
I've tried:
=SUM(TODAY(),0-G2,0)