Computer Support Forum

Solved: working with dates in excel

Question: Solved: working with dates in excel

i am trying to make a spreadsheet that will tell me when a customer has not made a payment on an item in X amout of months. ex: i want the cell to turn red if it has been over 3 monoths since the customer has made a payent. basicly it is just conditional formatting on the cells. i don't know and can't figure out how to work with dates in the formula bar, especially display the current date

help would be much appreciated, TY

Relevance 100%
Preferred Solution: Solved: working with dates in excel

I recommend downloading and running Reimage. It's a computer repair tool that has been proven to identify and fix many Windows problems with a high level of success.

I've used it in the past to identify and fix everything from blue screens (BSOD's), ActiveX errors, corrupt files and processes, dll/exe/sys errors, recover lost memory, Windows update problems, defragging, malware removal etc.

You can download it direct from this link http://downloadreimage.com/download.php. (This link will automatically start a download of Reimage that you can save to your computer.)

Answer: Solved: working with dates in excel

Hi there,

Dates are arranged by Serial Numbers. One whole number is one whole 24 hour period, so one day is 1, two days is 2, thus 0.5 works to be half of a day.

The formula for today's date is =TODAY()

So in your conditional formatting, you could use something like this ...
Code:
=A1<TODAY()-90
This assumes that A1 is the cell you are in and the one with the date in question in it.

Post back if you need more help.

HTH

2 more replies
Relevance 70.11%

I am having problems working on a spreadsheet of dates and am looking for help. I am creating a file to show membership ages and senority in our area. Here is my setup.The first column: "Members name". Second column: "Date of birth". Third column: DOB converted to automatically updated "Age" by Year and Month with "Datedif". Fourth column: "Hire date". Fifth column: Hire date automatically converted to "Length of Senority" by Year and Month with "datedif".I want to get the totals and averages of the Age and Senority columns. I think I have the averages worked out by using =AVERAGE(B2:B49) and then converting that with =DATEDIF(B53,TODAY(),"Y")&" Yr, "&DATEDIF(B53,TODAY(),"YM")&" M". But I am not having any luck with the totals.Can anyone help?

Answer:Working with dates in Excel

It is rather difficult to visualise this.Could you upload the file (with the members names removed) to a site like click here and provide a link to download it.

6 more replies
Relevance 70.11%
Relevance 70.11%

Hi there

I'm having problems with dates in a macro. To simplify things, here is an example of my problem. I have code that goes something like this:

Range("K1").Select
Do
If Range("k1") <= Range("D9") then
ActiveCell.Offset(0, -1).Range("A1") .select
End If
Loop Until ActiveCell >=Range("K1") or ActiveCell = ActiveCell.Text

Cells K1 and Cells D9, C9 and B9 all have dates. Assume that the dates are as follows:
K1 = Sept 05, 2005
D9 = Oct 15, 2005
C9 = Sept 05, 2005
B9 = Aug 2, 2005
A9 = text

The problem is that the cursor stops at the text cell (A9) and completely by-passes all the dates. It should stop at Cell C9. If C9 did not equal K1, then the cursor should stop at cell D9.

The macro works fine if I take out the inequality signs and just leave the equal signs. What Am I doing wrong??

Please help.

Mario
 

Answer:working with dates in Excel

7 more replies
Relevance 69.7%

Hello,I am trying to write a macro to determine the percentage of dates in a column of cells (format: 30-Sep-10) that occur before the end of the current calendar year.I have tried using the DCOUNTIF function, but I think I am having problems with excel recognizing the date and working with the date in the context of the current calendar year. This is what I have, which doesn't seem to work at all. The C[-2] is the column with the dates in it:For i = 2 To Sheets.Count Worksheets(i).SelectRange("J8").Select ActiveCell.FormulaR1C1 = "=DCOUNTIF(C[-2]:C[-2],<DATE(year(now())+1,0)" Range("K8").Select ActiveCell.FormulaR1C1 = "=DCOUNT(C[-3]:C[-3])" Range("L8").Select ActiveCell.FormulaR1C1 = "=((RC[-1]-RC[-2])/RC[-1])" Range("J6").Select ActiveCell.FormulaR1C1 = "Ground Task IDs" Range("J7").Select ActiveCell.FormulaR1C1 = "due this year" Range("K7").Select ActiveCell.FormulaR1C1 = "Req" Range("L7").Select ActiveCell.FormulaR1C1 = "% complete"NextThank you for any help.

Answer:Excel Macro working with dates

Hi,I don't think that you need a macro to do this.As a test I had 1000 dates in column A in cells A2 to A1001The dates ranged from 01 January 2009 to 31 December 2011The method I used is based on counting the total number of dates and the total number of dates that are on or before 31 December 2010.Then calculate the percentage.=COUNT(A2:A1001) counts all cells containing numbers (Excel stores dates as numbers - 40373 is 14 July 2010)I used =COUNTIF(A2:A1001,"<=" & DATE(2010,12,31)) to count the number of cells containing a date on or before the 31st December this year.Putting all this into one formula I get:=COUNTIF(A2:A1001,"<=" & DATE(2010,12,31))/COUNT(A2:A1001)Then format the cell with a percentage number format.Or if you prefer the value directly use:=(COUNTIF(A2:A1001,"<=" & DATE(2010,12,31))*100)/COUNT(A2:A1001)Regarding a macro, i did this:Option Explicit

Sub datePercnt()
Dim intTotal As Integer
Dim sngBefore As Single
Dim rngDates As Range
Dim dtEndDate As Date
Dim rngCell As Range
Dim sngResult As Single

'set the range containing dates
Set rngDates = Worksheets("Sheet1").Range("A2:A1001")

'set counters to zero
intTotal = 0
sngBefore = 0

'set end date
dtEndDate = DateSerial(2010, 12, 31)

'loop through each cell in the range
For Each rngCell In rngDates
'add 1 to count of all dates
intTotal = intTotal + 1
'test date in cell against end date
If rngCell.Value <= dtEndDate Then
'if on or before add 1 to 'before total'
sngBefore ... Read more

8 more replies
Relevance 67.24%

Hi,I am using a SQL query to import data into Excel. The database has some time fields which are formatted as datetime rather than just time, so each entry is in the format yyyy-mm-dd hh:mm.In all cases, the time is less than 24 hours (this is the time recordal program for our consultants) per entry, so the date element is always the same. For some reason, the date is always shown as 1899-01-01 in the database, and this has never been an issue when using Excel 2003 - the date simply displayed as 00-01-1900 and then the relevant time was shown. For example, if some had spent 1 hour 30 minutes on a job, the relevant entry, when imported to Excel, would be 00-01-1900 01:30.However, since 'upgrading' to Excel 2010, the above example now returns 00-01-1900 00:00, and switching the format of the cell to Number or General shows the value as being 0.This used to work fine in Excel 2003, so any ideas on what has changed in Excel 2010?Thanks.

Answer:Imported dates earlier than 1900 not working in Excel 2010

This may help: http://www.exceluser.com/explore/ea...

3 more replies
Relevance 66.42%

I would like to build a spread sheet so when I enter a date the adjacent cell will have a date according to some rules. For example

Dates entered between Jan-01-2013 and Mar-31-2013 the adjacent cell will have a date of July-01-xxxx (where xxxx is the same year as the entered date. Can someone help me out with this.

thanx
 

Answer:Solved: excel dates

9 more replies
Relevance 66.42%

Is there any way I can get a value produced that is the previous week day, ie not a weekend, that I can then export into notepad? To be run automatically everyday?
 

Answer:Solved: Excel dates

10 more replies
Relevance 66.42%

Quick question.

Lets say I have a date.

11/01

Is there a formula that would return and IF statement?

For example

I am looking to all the dates between 12/15 and 01/15

I have tried to create a formula using the IF statement, but cant only get the first half.

=IF(A1<=12/15,"TRUE","FALSE")

But how do I get the second half for it to check if if the date is less then 01/15? every time I try I get an error.
 

Answer:Solved: Excel Dates

Howdy. If I understand correctly. Be sure to check year, since the year will be in the cell whether it displays or not.

=IF(AND(A1<=12/15,A1>01/15),"TRUE","FALSE")
 

3 more replies
Relevance 66.42%

Hey
I have imported data from an outside database and it brought in the dates seperated. The information is in columns and the day, month (which is in text), and year each have their own cell. There are hundreds of dates. Due to space considerations I need each date to only take one cell. Is there any way to do this without having to do it by hand?
 

Answer:Solved: Dates in Excel

Not sure which version of Excel you are using, but am assuming 2007. I will also mention what to do if you are using 2003 or earlier

Create a blank worksheet and do the following so that you can see how the following formula works and then how to convert it as a value rather than a formula

In A1 type 24
In B1 type June
In C1 type 1990
In D1 type =DATEVALUE(CONCATENATE(A1,B1,C1))

Assuming you have similar data in the Columns A, B and C, copy the formula in D1 down column D until you have a formula for each row of data in A, B, C

Select all the formulas in column D and click on Home Ribbon tab ans click on the Copy Icon to place it in the clipboard. 2003 and earlier Edit, Copy

Whilst those cells are still selected click on Home ribbon tab and click on the little down arrow just under the Paste button and select paste values. 2003 and earlier Edit, paste Special, Values OK

Your data in column D will now be as a date (not a formula) which in the background is treated as a number, which then allows you to do calculations on the dates.

Now select columns A, B and C and delete those columns

You are now left with column A and the dates in single cells.

Hope that helps
 

3 more replies
Relevance 66.42%

I have no idea if this is even possible, but I would like to create a spreadsheet that auto-populates a series of dates based on one date that the user enters. Let's say I have a goal date to complete a project, and for every project I work on, something needs to happen 6 weeks prior to the goal date, another thing needs to happen 4 weeks prior to the goal date, and something else needs to happen 1 week and 5 days before the goal date. I would like to set up 4 cells in Excel: one for the goal date, and three for the various things that need to happen leading up to that goal date. I would like to be able to enter the goal date into the main cell and have the other three cells auto-populate with the correct date based on what I enter in the goal date. For example, if I enter a goal date of 11/01/2016, I would like the other three cells to automatically populate themselves with: 09/20/2016 (6 weeks prior), 10/04/2016 (4 weeks prior), and 10/20/2016 (1 week and 5 days prior). Is this possible? Can Excel return dates in that way?

Answer:How can I auto-populate dates in Excel based on other dates?

Sure, it's easy. Excel internally stores Dates and Times as numbers. Each day is a whole number and time is the decimal portion of that day. See here for a pretty good explanation of how Excel deals with Dates and Times as well as links to all the various Date and Time functions that Excel offers:http://www.cpearson.com/excel/datet...As for your question, simply subtract the number of Days required from the cell with the Goal Date.With 11/01/2016 in A1, use this to return 9/20/2016:=A1-42(42 is 6*7, or 6 weeks.)I'll leave the other two formulas to you. ;-)Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.

2 more replies
Relevance 66.01%

Excel 2007
I want to calculate the time (in years) between 2 dates ... so that a 27 month span would appear as 2.25 years.
Using the formula " =year(A1)-year(A2) " yields an answer in whole years. I want an answer accurate to 1 (or 2) decimal places.
Defining the cell with the above formula in it, as a "Number" with 1 (or 2) decimal places does not do it,
Any suggestions ?
Thanks
 

Answer:Solved: Excel - Time Between Dates

11 more replies
Relevance 66.01%

I have two worksheets, Dates and R Dates.

The Dates worksheet has this weeks dates (12/8/2008 - 12/12/2008). The R Dates worksheet has future dates of when projects come due.

What is the easiest way to match the dates from the "Dates" worksheet and the "R Dates" worksheet?

For Example, if 12/8/2008 is found on both worksheets, I would like "Yes" to be entered in D5 of worksheet "Dates". If 12/8/2008 is not found on both, then I do not wnat anything to happen.
 

Answer:Solved: Excel Match Dates

16 more replies
Relevance 66.01%

I have attached the example document.

Would like to know if i entered in a known date, how would i have it add in a known remaining years.
if the years calculate by a point and not a month.

Ex. there are 12 years in a month. there are only 10 whole numbers in the calculation.

so if the computer gives me a remaining life of 2.5 years that would mean two years and 6 months.

but what if the computer gives me 2.2 remaining years? how many years and months is that?

And once the 2.2 is figured out how can i have it auto calculate that to the known date that i have to give
me a total date with the computer date and the know date?

Let me know if the example is not explained well enough.
 

Answer:Solved: Excel 2007 Help with Dates

You don't need your chart to figure out the decimals. Probably the easiest way to do it is:

=B22+365.25*C2

This multiplies 365.25 (the average number of days in a year) times your half life to get the total number of days represented by the half life. Then add that to your date. It may be off by a day or two (depending on the half life) since some years have 365 days and some have 366, but it should be very close. Hope that helps.
 

3 more replies
Relevance 66.01%

I'm working in Excel '03, I have 3 columns of dates. Opened, Due and Closed. I would like to sum the number of days it took to close an item (opened date + closed date), shown in another column, and then compare the Due date to the Closed date, if the Closed date is later than Due, have either the Due or Closed date be highlighted in red...

I am formating something wrong here, as it is looking at my dates as numbers... I really need to take more classes....

Thanks in advance, Skyie
 

Answer:Solved: Excel - Dates Question

7 more replies
Relevance 66.01%

I'm attempting to use the VLOOKUP function to look up dates, which I've successfully done before. This time around, VLOOKUP does not seem to be finding the dates I'm looking for, even though they exist and are an exact match. So here's a sample.

So my dates look like this:

Date/Time
9/1/2007 13:00
9/1/2007 13:27
9/1/2007 13:58
9/1/2007 14:00
9/1/2007 14:35
9/1/2007 15:07
9/1/2007 15:48
9/1/2007 16:00

Now I only want the values that have been reported on the hour, so my lookup values look like this:

9/1/2007 13:00
9/1/2007 14:00
9/1/2007 15:00
9/1/2007 16:00

My function looks like this:
VLOOKUP(B2,Sheet1!$B$1:$F$12422,3,FALSE)

Excel seems to be finding some dates successfully, but other dates it returns a #N/A. I have used an if statement to test some of the dates that are not being successfully found. So I use the function IF(A1=B1,"YES","NO"), where A1 is the date in the date in the table, and B1 is the matching date I am trying to find...and when I do this, I receive "YES", which to me suggests the dates are exactly the same, formatting and all, so Excel should have no trouble finding the exact match. I have also tried converting the dates to the serial number (i.e. 12/13/2006 20:00 = 39064.83333), and although the numbers match exactly, that has not solved the problem either.
Can anyone help me out?
 

Answer:Solved: Excel: Looking up dates using VLOOKUP

6 more replies
Relevance 66.01%

Hi all,
I've spent a good few days reading posts on this site it seems between everyone here there a whole host of knowledge!

I'm here as I am having trouble with an excel sheet and I'm unsure how to solve it.
I am using excel 2007 on my laptop.

I've searched both this site and google for a few days now but I haven't found anything that seems to be what I need.
There is a thread on here that was helped by Keebellah and that is the closest I can find to what I am trying to do however I can't seem to edit the code in such a way that gets it working in my sheet.

Let me explain what I am trying to do.

My sheet is a training tracker which has a column of names of employees and some dates.
Specifically the dates are: Ideal WK4 date, Ideal WK8 date, Ideal WK12 date. These all have dates inserted.
There is also a column next to each of these that either says completed, or is empty.

I am trying to get Excel to email me when one of these dates is 7 days away or less, unless the column says completed. Then I don't want an email.
I want the email to basically say:
EMPLOYEE NAME is due for their WK? meeting within 7 days. Please schedule this in.

The employee name and WK4/8/12 should be pulled from the sheet.

Logically speaking, this is what I am looking for...
IF M(ideal date column wk4) = less than 7 days, send email with row data. If O=Complete don't send

IF Q(ideal date column wk8) = less than 7 days, send email with row data. If S=Compl... Read more

Answer:Solved: Emails from Excel using various dates

16 more replies
Relevance 65.19%

Hi, before you all tell me how easy this is let me explain.
I can change the way the dates are displayed but when I create the pivot table it uses the full date value giving me a pivot table column for every day not just every month as desired.
Can I actually convert the date data without manually going through and adding the month in a new data column?
Thanks in advance, Olivia
 

Answer:Solved: Excel reconfigure dates from mm/dd/yy to mm/yy for pivot

have a read here
http://chandoo.org/wp/2009/11/17/group-dates-in-pivot-tables/

you can group by month
 

3 more replies
Relevance 65.19%

I have an MI system that outputs a lot of information into Excel, I then need to sort the information as follows:

One entry will have multiple start and end dates for qualifications

For A27 I need to look at all of the A27 entries (1, 2, 3 etc) and put in the cell the earliest date.

For A28 A31 I need to look at all the A28 and A31 entries and put in the latest date.

I have attached a sample spreadsheet that will hopefully clarify the above.

Thanks, Lisa.
 

Answer:Solved: EXCEL 2007 Problem with Dates

7 more replies
Relevance 65.19%

Hi,

I have a spreadsheet that calculates how long a contract has left to run, using the following formula:

=((EDATE(R5,S5))-TODAY())/30

where R5 is the start date of the contract, and S5 is the duration of the contract.

I need to make the spreadsheet think that it's June, and not today, but I'm struggling. Does anyone have a suggestion?

Thanks in advance!
 

Answer:Solved: Fooling Excel 2007 with dates

Answered my own question with a bit more fiddling. Just converted the date to a number and subtracted it.
 

3 more replies
Relevance 65.19%

I have a row of dates against a surname and first name in one workbook that I need to organise. For example:

Graham Mitchell 1/12/07 31/2/08 6/6/08
Sam Knowles 1/11/07 6/1/08 4/4/08

I then need to organise them in a different workbook as follows:

November December January February
Graham Mitchell 1/12/07 31/2/08
Sam Knowles 1/11/07 6/1/08

What formula would I use to look at a line of dates in a workbook and put information into the cell if the month & year are the same but leave it blank if it different??

Hope that I explained this okay. I am using Excel 2007 by the way.

Lisa92
 

Answer:Solved: Transferring dates from one workbook to another in Excel

7 more replies
Relevance 65.19%

I am trying to merge data from an Excel S/sheet to a Word doc and this data includes dates which I need in the format of '28 September 2005'. I've changed the format in both Excel & Word and for some reason it still merges the dates as '9/28/05'. I've even gone to the extent of putting a character in front of the date so Excel doesn't recognise it as a date but surely I don't have to do this everytime? I have pages & pages of Word docs to go through and edit this extra character out of.

What am I doing wrong???
 

Answer:Solved: Merging dates from Excel to Word

I do beleive I just figured it out myself! LOL

Simple add one space before the first number of the date in the Excel spreadsheet. I thought this would also add the space to the Word doc but it doesn't! Problem solved.
 

1 more replies
Relevance 65.19%

Hey Guys,

I am currently working with Excel 2007, but need this spreadsheet to work on older versions of Excel also.

I have a training tracker spreadsheet, containing details of what training has been completed by an employee and when.. some of this training is one off (machinery etc), but some of it is required to be repeated on a timescaled basis (6 months, annually, etc.).

The fields currently contain the date the employee had their training signed off.. how can I make conditional formatting work so that say, after 6 months, the field colour turns red to make it stand out...??

Thanks in advance... let me know if a copy of the speadsheet will help, I can remove all personal details and give you a copy to play with.

Cheers
 

Answer:Solved: Conditional Formatting Dates (Excel)

Hiya
If you set the selection with the details as in the attached picture it should work.Please let me know if it doesnt and if it does then please mark this thread as solved.
 

2 more replies
Relevance 64.37%

Hi

I need help from one of you excel gurus out there.

I will see if I can explain clearly what I am trying to achieve.
I would like a macro that searches a worksheet for all debit transactions and credit transactions seperately for a given date and then sums them up. For example if i had two debit transactions on the 17th March, the macro finds the range for all transactions on the 17th and sums up those debits. Again the same for credits.
Ok, here is where it gets trickier, I need it to do it for all days from 1/07 to 30/06. So it's searching to see if there are any transactions for any of those dates and then sums them up.

I appreciate any assistance

Thanks
Strybes
 

Answer:Solved: Excel 2003 Help with sum range of dates found

11 more replies
Relevance 64.37%

Hi All

Does anybody know if it is possible to insert rows between two dates so that the sequence follows.

Example:
I have the following 3 dates on 3 seperate lines.

1/02/2009
1/07/2009
1/07/2010

Is it possible to do a macro or write visual basic code to add rows so that it looks like this:

1/02/2009
1/03/2009
1/04/2009
1/05/2009
1/06/2009
1/07/2009
1/08/2009
1/09/2009
1/10/2009
1/11/2009
1/12/2009
1/01/2010
1/02/2010
1/03/2010
1/04/2010
1/05/2010
1/06/2010
1/07/2010

Thanks Strybes
 

Answer:Solved: Excel 2003 Insert Row between dates help needed

9 more replies
Relevance 64.37%

Hi there,

In the attached spreadsheet, I'm trying to sum up the sales of a product line, by a particular sales rep, product and date. I'm getting an answer, that at first glance looks correct, but if I total up the yearly sales using an independent formula, I arrive at a different figure.

I think the problem is stemming from sales on the month-end dates, but I can't work out how to correct it. Any help would be much appreciated.

Note: At first glance the spreadsheet seems to contain confidential data. I'm happy it's not.
 

Answer:Solved: Excel 2010: Problems with SUMIFS and dates

9 more replies
Relevance 64.37%

Hey guys i need a formula that can change my 1000's of dates from regular mm/dd/yy into year and Quarter

so for example my date is 10/12/05

i need it to output 2005 Q4

thanks
 

Answer:Solved: Excel-Changing dates to year and Quarter

Assuming your dates are in column A, you can use this formula and drag it down all of the cells. Hope that helps.

=RIGHT(YEAR(A1),4)&" "&"Q"&ROUNDUP(MONTH(A1)/3,0)
 

3 more replies
Relevance 64.37%

Hi all,

I am currently using Excel 2003.
I have a column of dates which display the following format 17-Feb-2006. I would like to copy theses from one cell to another, but not in a date format, but as text. Problem is, if I copy into another cell and change the cell format to text, it diplays the cell valuation of 38765.
I also try the data>table to columns route and it does show the cell as text but in this format: '02/17/06'

I believe in excel 97 I could simply copy>paste special>text only, but this seems to have been removed from excel 2003.

I have also simply tried to insert an apostrophe at the beginning of the data in the cell, but this also goes on to display the following format; '02/17/06'

Does this make sense and if so, can anyone pleeeease help.

Many thanks
 

Answer:Solved: Excel 2003 - Copying dates as text

7 more replies
Relevance 63.55%

Hello,
I'm without any success hardly trying to modify (as begginer I'm still unable to create) some macro's I found in this forum in order to send data from Excel sheet into a specific public (or not if it's too heavy) calendar in Office 2010.
Import would take place with a push of a button and duplicates should not be allowed...

Even a simple line like: Dim olApp As Outlook.Application gives an error ...Maybe I'm getting tired...

And how should I modify those lines in order to select a specific Calendar (using Folder(Calendar name) in place of GetDefaultFolder in the lines mentioned here under?
Set olNS = OL.GetNamespace("MAPI")
Set olFolder = olNS.GetDefaultFolder(olFolderCalendar)

If someone would be kind enought to give me a help, here are some details about my Excel sheet:
Column A "Company", Column D "Date soon", Column G "Date Late"
Column A is fully completed, but columns D and G have some lines without any date...
 

More replies
Relevance 63.14%

I'm sure this a basic one - sorry - but how can I quickly set up project management sheets with say 6 months of 'week commencing' dates across the top columns?

Thankyou from a chilly but sunny London!
 

Answer:Solved: Excel tip - quick way to insert dates for project management sheets

9 more replies
Relevance 60.68%

Hi
I use forms to give the user the ability to change dates and have the queries run for their dates. Today (??) Seriously, it worked yesterday! the Forms![FormNate]![Name of Date Text field] doesn't work. What am I missing?

SELECT Commcustomer.Accno, Commcustomer.DateonComm, Commcustomer.Deposit, Commcustomer.Amount
FROM Commcustomer
WHERE (((Commcustomer.DateonComm) Between [Forms]![F_Comparison Reports]![Text64] And [Forms]![F_Comparison Reports]![Text66]));

It asks me to enter the start and enddates (text64 and Text66) for every report. I don't know what has changed. and now the reports also don't like the Text box that contains =[Forms]![F_Comparison Reports]![Text64] - so that the dates the user requested appear on their report - it comes up with #Name

I have no idea what I did!
 

Answer:Solved: Dates from form 'suddenly' not working

I am not sure what has caused it, but this is not the frst time this problem has come up.
Can you try adding 2 new fields to the form and change a query to the new fields to see if that works, that is what I had to do for one of the fields on this Thread.

http://forums.techguy.org/business-applications/1074449-solved-ms-access-report-load.html
 

2 more replies
Relevance 60.27%

Hi I need some help.

I have a log that lists the start date and end date of my fleet of cars. I want to be able to tell how many cars we had in our fleet on any day (and then be able to average out the number of vehicles in a month)

What I have is two columns with the first containing the start date of the car and the second containing the termination date of the car.

Example

Code:

21/04/2006 20/04/2010
21/04/2006 20/04/2010
27/04/2006 26/04/2010
28/04/2006 27/04/2010
1/05/2006 28/04/2010
3/05/2006 29/04/2010
3/05/2006 30/04/2010
12/05/2006 11/05/2010
17/05/2006 1/05/2010

On another sheet I have dates starting 1/1/2003 incrementing by a day up to 2013. What I am looking for is a way to count how many times each of the dates falls between (or on) the date in each of the ranges.
EG in the example data above 5/5/2006 = 7, 6/5/2006 = 7, ..., 12/5/2006 = 8. (I hope! )

Note - I am using dates in the format DD/MM/YYYY

Hope you can help!
 

Answer:Solved: Counting number of times dates occure between range of dates

8 more replies
Relevance 59.45%

I need to figure out how to create a query that groups data by date. But the tricky part is that I need to group by Year, not the actual dates recorded in the columns. To make it even more tricky, it needs to be a running total.

Eventually, this query is going to be used as the source of a line graph that shows how many projects our company has "approved" over time. The X axis is going to be Year and the Y axis is going to be "Number of Projects"

Each project has its own record in the database, along with its own date on which it was approved in a MM/DD/YYYY format.

As for the running total: the graph is going to be constantly going up. For example: if in 2000 we had 0 projects approved, then in 2001 we approved 5 projects, then 2000 would have a point at 5. Then in 2002 we approved 2 projects, the line would need to go up to 7, not jump down to 2 for 2002.

How can I get my query to return the Year on the X axis and the running total on the Y axis? Is this even possible, or can I only get it to work in Excel?

Attached is a picture of what the end chart is going to look like (in Excel... but I need to use Access).

Thanks.
 

Answer:Solved: Access 2007 - Showing only Year when working with dates

11 more replies
Relevance 59.45%

Once again I'm reaching out to the TSG forums for help. I have a column (bid request date) and another column (bid approved date). In my pivot table I have a count of these by my team members. # of Bids Submitted and # of Bids Approved and I want to add another column into the pivot table, "Approval rate" which divides the # of Approved by # of submitted. Is there an easy way to do this in a pivot table?
 

More replies
Relevance 57.4%

For some reason as I have added dates to cells, they are not getting converted to the Date type I have selected: 15/03/2009I type in my entries in this format:March 15, 2009 (usually it converts immediately but not this time)I've tried selecting the columns of cells with dates, Select>Format>Cells>Date and Type but nothing changed (although one date was converted to 03-15-2104Any suggestions?

Answer:converting excel dates in Excel 2003

Dat's cuz they're probably not being recognized as dates by Excel. My guess from afar is that the cells are formatted as Text and aren't accepting any other formats. Excel is finicky like that sometimes.Try this with one of your stubborn "dates"...let's assume it's in A1=DATEVALUE(A1)Now format that cell anyway you want.Then do a Copy...PasteSpecial...Values to eliminate the formula.

7 more replies
Relevance 55.76%

I've searched for issues regarding non-working VBA code written for Excel 2010 and compatibility wit Excel 2011 for MAC.
I am currently using Addin (*.xlam) files that hold all the necessary code to process multiple files without needing to use the PERSONAL.XLSB and as eliminating the need to copy VBA code to every file that requires.
This works perfectly with all the Windows Office versions.
Today a colleague want's to run this same file on a MAC book with Office 2011.
The moment he opens the Addin het gets an error that a library cannot be found, understandable, but the Tools Reference in the VBA project is also greyed out so I cannot even try setting any reference.
Does anyone have any experience with this or is this something that needs a complete new approach when it regards Office on the MAC?

I hope somebody can help
 

Answer:Solved: Excel 2010 xlam file not working with Excel 2011 for MAC

6 more replies
Relevance 55.35%

Firstly I am a beginner of beginners but I try to learn as much as I can.
I have put the following protection code into an Excel 2003 workbook and everything runs ok. I then opened the workbook in Excel 2007, and saved it as a .xlsm file. When I try to open the .xlsm file in Excel 2007, I get a vba Runtime error 13, "Type mismatch", and the code sticks at the first line below("If Worksheets...). I have tried everything that my limited knowledge allows, searched the web for 2 days, and still have no answers.
Any help would be greatly appreciated.

Private Sub Workbook_Open()
If Worksheets(28).[A51] > "" And Worksheets(28).[A50] = Worksheets(28).[A51] = False Then
MsgBox "Sorry, this program is not registered for this computer, please e-mail .......... for more info."
Application.DisplayAlerts = False
Application.Quit
End If
End Sub
My system specs are shown below.

Tech Support Guy System Info Utility version 1.0.0.2
OS Version: Microsoft Windows 7 Home Premium, Service Pack 1, 64 bit
Processor: Intel(R) Core(TM) i3 CPU M 380 @ 2.53GHz, Intel64 Family 6 Model 37 Stepping 5
Processor Count: 4
RAM: 2934 Mb
Graphics Card: Intel(R) HD Graphics, 1243 Mb
Hard Drives: C: Total - 290143 MB, Free - 172186 MB;
Motherboard: Dell Inc., 0WXY9J
Antivirus: avast! Antivirus, Updated and Enabled
 

Answer:Solved: Excel 2003 vba code not working in Excel 2007

16 more replies
Relevance 54.53%
Question: excel dates

Filename: SysInfo.exe
Full Path: c:\Users\JIMBO\AppData\Local\Microsoft\Windows\INetCache\IE\RBAGCWGH\SysInfo.exe

____________________________

____________________________
Developers
Not Available

Version
1.0.0.2

Identified
6/27/2016 at 5:17:31 PM

Last Used
Not Available

Startup Item
No
____________________________
Many Users
Thousands of users in the Norton Community have used this file.

Mature
This file was released 4 years 8 months ago.

Good
Norton has given this file a good rating.
____________________________
Source File:
sysinfo.exe

____________________________
File Thumbprint - SHA:
8243b4ea661b060fe8cf4babc11ab5f51eadd28a0c9d66303183e8eceace8234
File Thumbprint - MD5:
Not available
 

Answer:excel dates

What is your problem and/or question?
 

2 more replies
Relevance 54.53%

I'm trying to set up a spreadsheet so that each time I open it, the time between two dates is calculated. The two dates would be today (the day I open the spreadsheet) and a date about 10 years away. Any help would be appreciated.ThanxDD

Answer:Excel - between two dates

For examplein A1 30/03/2017in B1 =TODAY()in C1 =DATEDIF(B1,A1,"d")

10 more replies
Relevance 54.53%

I have a column of calendar dates (A1:A100) that do not include Saturdays or Sundays. I have certain production times for various products that I must base off of these dates and am having trouble counting an amount of days that doesn't include any Saturdays or Sundays in my count. Example below.

10-02-2006 I need to add 18 production days to this date. Workdays only being Mondays-Fridays, I need the answer of the formula to equal 10-25-2006.

Can anyone assist?

Ron
 

Answer:Need Excel HELP with Dates

7 more replies
Relevance 54.53%
Question: Excel Dates

I have been using this formula to let clients know when their bills are due:
=DATE(YEAR(A1),MONTH(A1),DAY(A1)+90)
this ends up looking something like this: 1/1/04
however, I have had a request from them to have it look more like this: 1-Jan-2005.
Any help would be greatly appreciated. Thank you.
 

Answer:Excel Dates

12 more replies
Relevance 54.53%
Question: Excel Dates

Eldest daughter driving me mad.At business she is working on a database in Excel.She tries to shorten the DOB entry as for example23/11/29 for someone born in 1929 but it comes out as 23/11/2029 yet when she enters 23/11/31 it comes out as she wants it as 23/11/1931. Is there something we need to format in Cells/Date?Brambles

Answer:Excel Dates

and have the same problem! Using excell 2000 and my cells are formatted correctly. Very strange, however there are lots of very helpful people on this site and here's hoping.Taffy

3 more replies
Relevance 54.53%
Question: excel dates tip

Can anyone let me know the formula for coverting a date held in excel as yyyymmdd into dd/mm/yyyy.Many thanks

Answer:excel dates tip

Assuming that is a text value try=DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2))where A1 holds the text date.

2 more replies
Relevance 54.53%
Question: Excel and dates

Hi All,I am updating a old spreadsheet and wanted to add some work days down the side of it. The problem I have is that I only want Mon-Friday dates to be listed. For example....12/3/201212/4/201212/5/201212/6/201212/7/201212/10/2012etc.....For some reason I can't get it to work right. In this example you can see that the first work day for Dec is the 3rd and that the 8th and 9th are passed over because they are a weekend. I know I have done this before I just can't remember how I did it. I was able to click on a cell and drag down to highlite a months worth of cells and put in a formaula in the first cell and then all the dates would just show up below it. Anyone have any ideas?ThanksSpoiler

Answer:Excel and dates

Quote from: Spoiler on December 14, 2012, 10:10:41 AMI know I have done this before I just can't remember how I did it. I was able to click on a cell and drag down to highlite a months worth of cells and put in a formaula in the first cell and then all the dates would just show up below it. Are dates for all rows part of the existing data? If so, then one approach might be to add a column to show the day of the week and then use a Filter to show all days except Saturday and Sunday.

6 more replies
Relevance 54.53%
Question: Dates and Excel

I have a sheet in excel which I input my daily results. Some dates or blocks of dates are missing as I am unable to gather the data. (vacation, travel, etc)Column A is the date (mm/dd/yyyy)Column B is the result (0.00)I have another sheet with the following:Column A has a list of all dates (month and day only) (366 rows) Columns B through M have the year in row 1I need to lookup the month and the day and attach the year based on the column year (this is easy)=VLOOKUP(DATEVALUE(MONTH($A2)&"/"&DAY($A2)&"/"&YEAR(C$1)),Generation!$B:$C,2)BUT I need the exact date data returned. VLOOKUP returns the closest lower value.If no exact date then return 0 or "".Is there an easy way to do this in Excel without writing code?Thanks for helping in advance!

Answer:Dates and Excel

If you want an exact match, you need to use FALSE or 0 in your VLOOKUP as the optional range_lookup argument:=VLOOKUP(DATEVALUE(MONTH($A2)&"/"&DAY($A2)&"/"&YEAR(C$1)),Generation!$B:$C,2,0)Review the VLOOKUP Help file to see the options for this argument.If an exact match isn't found, this will return #N/A, so wrap the formula in an IF(ISNA()) function to get a "" of 0 if the VLOOKUP evaluates to #N/A. This will return "":=IF(ISNA(VLOOKUP(DATEVALUE(MONTH($A2)&"/"&DAY($A2)&"/"&YEAR(C$1)),Generation!$B:$C,2,0)),"",VLOOKUP(DATEVALUE(MONTH($A2)&"/"&DAY($A2)&"/"&YEAR(C$1)),Generation!$B:$C,2,0))

4 more replies
Relevance 54.53%
Question: Excel dates

I have a friend from california he has got office over here in europ but because of work he needs too change his dates in excel too american format how can i do this?

Answer:Excel dates

Hopefully this guide will help.

2 more replies
Relevance 54.53%
Relevance 54.53%

I've got a strange one, I think !!!Current date is 16 Jan 2005, and in my module I say Dim CurrDate As LongCurrDate = Format(Now(), "00000")This sets CurrDate as 38369Later in the module I want to compare this date with one from a cell ...Dim MyNewDate As LongMyNewDate = Range("N" & MyStoreRow) ... value is 17 Jan 2005The value being returned in MyNewDate is 38369, not, as I would expect, 38370 ...In another worksheet, the new date in Nxx is 18 Jan 2005, and this returns a value of 38370, not 38371 ... Any ideas as to what's happening here ?!?! Is my Current Date wrong ? Is this a known 'problem' ?!?!?

Answer:Dates in Excel VBA (again !) ...

I'm not sure what is goung on but you would be better off working with Dates rather than LongsSub test()Dim mydate As Datemydate = Now()MsgBox mydateEnd Sub

6 more replies
Relevance 54.53%
Question: Excel and dates

I have two columns of dates, A and B. Column B is just As date plus 30 day. What i want it to do is, whenever i update column A's date, i dont want column B's date to change. how do i do that??

Answer:Excel and dates

i dont want column B's date to change.Remove the formula that updates B?MIKEhttp://www.skeptic.com/

24 more replies
Relevance 54.12%

Hello to all,

recently my excel started to change the dates lets say from 02/01/08 to 06/08/02 etc. But it doesnt change all dates just some. Please, help me with this.

My operating system is Windows XP.

Thanks,
 

More replies
Relevance 54.12%

This is multi-part question on how to create different formulas on the attached worksheet.

#1 - I would like to count the number of Start Dates IF the Start Date is blank or greater than today, but only IF there is a date in the Requisition Date column. This would be to indicate the total number of open positions as of today.

#2 - I would like to count the number of cells in column A that are greater than or equal to 17 IF the Start Date is blank or greater than today, but only IF there is a date in the Requisition Date column. This would indicate total number of open positions that have a grade lever of 17 or above.
 

Answer:Excel-Counting with dates

7 more replies
Relevance 54.12%

Hey there,I would appreciate if i get help on Excel Date formatting. Problem Statement: when I download the report from Business Intelligence, I get certain columns with Dates. The cell values are so rigid that, I can't format the dates which are in System driven format, and few are easy to convert to MDY, or DMY or whatever. But few, I cannot change. Second Problem: When all the data is related to Quarter 1, when I try to format the date, I end-up getting dates as 02-Sep-2011, but the actual date is 02/09/2011 when I pull it from reporting system.The date should be 09-Feb-2011. I have some 3000 lines of such adamant dates, help me to get out of this issue.Positively seeking anybody's help.Gracias/Thanks/Saludos/Dhanyawad/Shukriya

Answer:Adamant Excel Dates...

re: "I can't format the dates which are in System driven format,"I don't know what you mean by "System driven format" but I can tell you that very often data that gets downloaded from websites and/or other applications ends up in Excel as Text instead of numbers or dates.Since I can't see your spreadsheet from where I'm sitting, I'm going to take a guess and suggest that both of your problems are related to each other.Let's start with Problem 2:re: I end-up getting dates as 02-Sep-2011, but the actual date is 02/09/2011 This statement does not really make sense. 02/09/2011 could actually be 02-Sep-2011 or it could actually be 09-Feb-2011, depending on how Excel (actually Windows) is set up. Let me explain.The format in which Excel recognizes dates is based on the settings in the Regional and Language Control Panel, Customize button, Date tab. This is what determines whether the first 2 digits represent the day or the month.My guess is that the values that you cannot format as dates are those where Excel can not recognize the month.For example, since your system is recognizing 02/09/2011 as 02-Sep-2011 I'll assume that your Windows setting is something like dd-mmm-yyyy.Excel has no problem changing 02/09/2011 to 02-Sep-2011 since 09 is a valid month, but it wouldn't know what to do with 02/15/2011 since there is no 15th month. My guess is that Excel decides that values like 02/15/2011 must be text and therefore cannot be formatted as a date.Try changing your Control panel s... Read more

3 more replies
Relevance 54.12%

I want to put hourly rates of $6 alongside weekdays and $7 for weekends.I did this it doesn't work:=IF(A2=weekday, 6, 7)Help?

Answer:EXCEL If else statement with dates

The WEEKDAY function must refer to a cell that contains a date.Assuming your system is set up such that Sunday is weekday 1 and Saturday is weekday 7, this should work:=IF(AND(WEEKDAY(A2)<>1,WEEKDAY(A2)<>7),6,7)For any WEEKDAY not equal to 1 or 7, the function will return 6.Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.

2 more replies
Relevance 54.12%

HiCould you please let me know how can I add up the totals if when one the column contains dates? SUM( ( Sheet1!A2:A7 = "in" ) * ( Sheet1!B2:B7 ="Jan-10") * Sheet1!C2:C7 ) it return 0... ideally would be to get the total from c column if A column = in, and B column = Jan feb and march. is it possible?

Answer:Excel sum formula with dates

B2:B7 ="Jan-10"Is it January 10th 2010 orJanuary 2010?MIKEhttp://www.skeptic.com/

9 more replies
Relevance 54.12%

Hi All,

I have spent all day trying to figure out how to do this and when i think i have done it.. something is missing!!

So, when the date in column A = Today, i need an email to be sent to the email address in column F stating the below:

"Hi All,

Engineer (Column B), is visiting Customer (Column C) today at (Column D) to complete (Column E)

Many Thanks"

I just cant get it to work!!

Please can someone advise what i'm doing wrong?

Sub eMail()
Dim lRow As Integer
Dim i As Integer
Dim toDate As Date
Dim toList As String
Dim eSubject As String
Dim eBody As String
With OutLook.Application
.ScreenUpdating = False
.EnableEvents = False
.DisplayAlerts = False
If (Cells(i, 1) = TODAY < "") Then
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
toList = Cells(i, 7)
eSubject = "Engineer " & Cells(i, 2) & "job list " & Cells(i, 1)
eBody = "Hello All, " & vbCrLf & vbCrLf & "Engineer" & Cells(i, 2) & "Is at customer" & Cells(i, 3) & "in" & Cells(i, 4) & "and is" & Cells(i, 5) & vbCrLf & vbCrLf & "Many Thanks"

On Error Resume Next
With OutMail
.To = toList
.CC = ""
.BCC = ""
.Subject = eSubject
.Body = eBody
.bodyformat = 1
.Send
End With

On Error GoTo 0
Set OutMail = Nothing
Set OutApp = Nothing
Cells(i, 5) = "Mail Sent " & Date + ... Read more

Answer:Emailing from Excel on certain dates

16 more replies
Relevance 54.12%

Good day i would like to ask how to make an if statement with datesit would appear like thisa1=any date depending on expected deliveryb1=date receivedc1=either "Delayed" or "Ontime"IF A1<=b1 then c1="Ontime" else c1="Delayed" Endsomething like this for excel..

Answer:Excel coding using if for dates

Here is what you asked for:IF A1<=b1 then c1="Ontime" else c1="Delayed" EndThe syntax of an IF function is =IF(logical-test, value-if-true, value-if-false)=IF(A1<=B1,"Ontime","Delayed")However, I have a question.If A1 is the expected delivery date, and it is less than the date received, isn't the package Delayed?What am I missing?Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.

7 more replies
Relevance 54.12%

i want to sum numbers between date ranges how do i do this?

Answer:excel formula for dates

Try using =DATEDIF()=DATEDIF(1stDate,2ndDate,"Interval")1st Date : Earliest date. 2nd Date : Most recent date. "Interval" : What you want calculated. Must be surrounded with quote marks. Intervals can be: "d" Days between dates."m" Months between dates."y" Years between dates."yd" Days between the dates, as if the dates were in the same year."ym" Months between the dates, as if the dates were in the same year."md" Days between the two dates, as if the dates were in the same month and year.MIKEhttp://www.skeptic.com/

6 more replies
Relevance 54.12%

I want to have an IF true/false statement stating that for a column of DATES, if the date is before "5/1/2013" TRUE and everything else false within the if statement. thank you in advance!

Answer:How do a lay out an EXCEL IF statement using DATES?

Try this:With your column of DATES in column A,put this formula in cell B1 and drag down.=IF(A1<DATE(2013,5,1),"True","False")What happens if the date is exactly 5/1/2013?See how that works for you.MIKEhttp://www.skeptic.com/message edited by mmcconaghy

2 more replies
Relevance 54.12%

I am trying to do the following:If the date is before 1/1/2014 in cell I15 I want cell J15 to say "yes". If the date is after 1/1/2014 in cell I15 I want cell J15 to say "no".Then, in another cell, I want if cell I15 is between 1/1/2014 and 1/1/2015 I want the value in G15 to be placed in cell K15.

Answer:If Statement in Excel with Dates

For the J15 formula, what do you want to return if the date in I15 is equal to 1/1/2014?The same question holds for the formula in K15: What if the date equals one of the 2 dates that you are checking for?BTW, the solution will be based on the IF function. Have you read anything on the IF function in the Excel Help files or via a Goolge search? Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.

2 more replies
Relevance 54.12%

I have crated a large excel spreadsheet where dates are in 3 columns ie day/month/yearIs there a way to get the dates in a single columnthanks in advancebbmf

Answer:dates in columns on excel

Assuming that day, month and year are numbers in columns A, B and C=DATE(C1,B1,A1)

2 more replies
Relevance 54.12%

Working with Excel 2000 is there a way to filter dates?

Thanks for your help.
 

Answer:EXCEL - Filter Dates

8 more replies
Relevance 54.12%

how do i write a formula for this. if priority high add 2 days to date raised, if priority low add 14 days to date raised?

Answer:Excel formula to add dates

What do you mean by "date raised"?How will Excel know what is a High priority and what is Low?Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.

4 more replies
Relevance 54.12%

I want to have two dates within the if statement. This is what I made, but i need it corrected. =IF(J2>DATEVALUE("5/31/2014"),"GOOD","EXPIRED" J2>DATEVALUE("6/31/2014"),"GOOD","EXPIRING SOON")

Answer:EXCEL If Statement Using Dates

Fieldman,Sorry it's taken me a day to get back to you, I've been pretty busy...I don't know if I understand what you're wanting to do or not, but the only way that I'm aware of to put multiple "IF" statements into one field is to do it the way I demonstrated above. You can put as many as you'd like in there to achieve what you're trying to do.This is just a shot in the dark, but I've re-read your posts several times now and am wondering if it would work the way you want if you change the formula in A2 to something like this:=IF(A1>DATEVALUE("5/31/2014"),"GOOD",IF(A1>DATEVALUE("6/31/2014"),IF(A1>DATEVALUE("5/31/2014"),"EXPIRED","EXPIRING SOON"),"EXPIRING SOON"))I really think you will need to play with the formula above to make it work, but I think something like this is going to be your best bet.Law of Logical Argument: Anything is possible if you don't know what you're talking about.

10 more replies
Relevance 54.12%

I would like to use the countif funcion to count how many times a product appears in a column by month. For example, I have two columns - Date & Product. The dates span over one year and I would like to know how many times a product appears each month.Hope you can help.Thanks, Mary

Answer:Excel counting dates

Assuming dates in column A and product names in column B:To count the number of product X sold in September (Month 9)=SUMPRODUCT((MONTH(A1:A10)=9)*(B1:B10="X"))

2 more replies
Relevance 54.12%

I have two columns of dates - a Due Date and a Completed Date - I want to compare the dates in each column and have the results appear in a table I have created on a separate sheet in the same workbook. If the completed date is after the due date for a certain type of information (contained in another column; ie, IMAC or Out of Scope), I want to count that instance as "Missed" in my table. Any help would be greatly appreciated!

Answer:Need help comparing dates in Excel.

I don't quite understand how the "IMAC or Out of Scope" information relates to your question.If all you are trying to do is compare 2 values (dates) a simple IF function should do it for you:=IF(A1>B1, "Missed", "")This will return Missed when A1 is greater than B1 and return a blank cell if not.Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.

4 more replies
Relevance 54.12%

Forgotten how to format dates in excel so they accumulate down the column.e.g. has to be like this down the column1st January 1950, 1st February 1951, 1st March 1950 .... 1st January 2006 help much appreciated. Durko

Answer:Excel and Formatting Dates

Should it be 1st March 1952? If so:Tools > Add-ins, make sure Analysis Toolpack is ticked.With the first date in A1 enter in A2=EDATE(A1,13)and copy down as far as needed. Select Column A, Format > Cells and set to display as you wish.

4 more replies
Relevance 54.12%

Hi,

Need Urgent help. Need a formula, explained in detail in attachment and trying to explain here

Column A (Inv Value) Column B (Col.Date) week1 (14/4/2012 - 18/4/2012)
4500 1/5/2012 0 (formula)
225000 23/4/2012 0
55393 17/4/2012 55393 (formula)

* Column A and B are Data field from where we will take data.
* Column C and D are the fields where i need to put formula

**** If column C date range is in Column B date, then put the value of Column A
I can split Column c in two cells with start date and end date if needed (then merge remaining cells)

Appreciate your help and support on urgent bases to solve my issue. < removed email address - etaf moderator >
 

Answer:Excel Formula - Dates

11 more replies
Relevance 54.12%

Does Excel (version 9.0) have a feature which will allow me to compute various day/month/year time lapses? For instance can I compute the number of months between Oct. 1, 2003 and September 31, 2013? Or if I want to determine what day it is 25 years from today? I can do this on my handheld, but would like to design an Excel formula for it. Any help would be appreciated.
 

Answer:Computing Dates in Excel

Use the datedif function

i.e. =DATEDIF(Date1,Date2,"Interval")

Where
Date1 is Start Date
Date2 is the end date
Interval is one of the following: You must use the inverted commas

"m" Months
The number of complete months between Date1 and Date2.

"d" Days
The number of days between Date1 and Date2.

"y" Years The number of complete years between Date1 and Date2.

"ym" Months Excluding Year
The number of months between Date1 and Date2, as if Date1 and Date2 were in the same year.

"yd" Days Excluding Years
The number of days between Date1 and Date2, as if Date1 and Date2 were in the same year.

"md" Days Excluding Months And Years
The number of days between Date1 and Date2, as if Date1 and Date2 were in the same month and the same year.
 

1 more replies
Relevance 54.12%

I have a strange problem I hope someone can shed some light on

I want to make a new column of months from a date
I have a detached with column A as a normal date format 01/12/2006 DD/MMM/YYYY
I then in column B use the month function - so = month(A1)
it displays 12 - and if I go onto the Fx to see the expression helper / wizard
I get told that i get a number returned 1-12 here 1 = Jan and 12 =dec

so that i format the =month(a1) into a MMM-YY format and
get Jan-1900 - I'm cool with the 1900 as i have not specified YYYY but why do i get Jan returned instead of Dec

But what I'm after and maybe a simpler way is to have a dropdown on my pivot table of MM-YYYY from my date field rather than DD-MMM-YYYY

so I can choose and show month data

I'm sure I did this in the past just by using format - MMM-YYYY on a date field and it worked in the picot table OK

any help appreciated
 

Answer:Excel: Dates: Month

7 more replies
Relevance 54.12%

Hi there.

I am trying in Excel 2007, to do the following:

A guy phones in a fault. The date and time are recorded. When the fault is fixed, the date and time are recorded again. I need to calculate the response time, but I need it to only look at business hours, which are 8 to 5, Monday through Friday, when calculating this. Some faults may stretch over more than one working day, or over a weekend.

Is there a simple way to do this?

Thanks in advance for any help.
 

Answer:Excel, dates and times

I think you'll have to Google for this

I can suggest the following link for starters:
http://www.cpearson.com/Excel/datetime.htm#WorkHours
 

2 more replies
Relevance 54.12%

When cells are formatted as date in Excel 2000, they change to a 5-digit number (starting with 3). Has anybody come accross this, and does anybody know a way around?
 

Answer:Dates in Excel 2000

9 more replies
Relevance 54.12%

I am having trouble figuring out how to write the correct function using countif. I have two columns. One column has the start date and the other column has the end date. I want a separate cell to countif those two dates are between the specified dates.

start date end date
jane doe 1/22/2008 4/3/2008

February ?

So for February I need to countif those two dates fall between 2/1/2008 and 2/28/2008.
Please help.
 

Answer:countif excel between two dates

16 more replies
Relevance 54.12%

I am trying to subtract two dates in excel but I keep getting weird results...

My dates are formatted like this: 8/11/2010

I am using TODAY() to return the current date. Then I want to compare that to see how many days have passed since a given date. So my formula is this: =TODAY()-D2

Now, it seems to kind of work because the result I get is 1/30/1911. 30 days is the correct answer! But why am I getting the full date?? How can I fix this? And why the heck is it saying 1911 - on another computer I tried it says 1/30/1900...

??
 

Answer:subtracting dates in excel... help please!

Look into the Datediff function. I think for what you want (doing this from the top of my head) is Datediff("d", D2, TODAY()) or you can sub TODAY() for NOW(). Like I said it is from the top of my head but should be something like that.
 

3 more replies
Relevance 54.12%

How do I write an If/Then statement in excel to change data to red if it's 6 months old? I have one field for the current date, B2, and a column of dates, B6-B40, that I want to know if the dates are older than 6 mo from today's date. If they are older then 6 months from today's date, I want the dates in column B and their corresponding data in column A to turn red. Any ideas? Thanks in advance.

Answer:if then statements with dates in excel

See if this works for you:This is for Excel 20071) Select your cell or Range of Cells: B6-B402) On the ribbon click Conditional Formatting3) Click on New Rules, it?s near the bottom of the dialog box.4) Click Use Formula to determine which cells to format.5) Enter the formula: =DATEDIF(G3,TODAY(),"M")>6=DATEDIF(B6,TODAY(),"M")>66) Click on the Format button7) Select the Fill Tab8) Select a pretty color9) Click OK10) Click OKThis will highlight the cells that are GREATER THAN Six months.For Six Month OR GREATER use:=DATEDIF(G3,TODAY(),"M")>=6=DATEDIF(B6,TODAY(),"M")>=6EDITED, did change the cells from my test sheet.MIKEhttp://www.skeptic.com/

3 more replies
Relevance 54.12%

In an excel spreadsheet, I have two colums, each with a date in it. I want the third column to yield the greater of these two dates. For example, column one has 11/10/09, column two has 12/15/10, I want column three to show 12/15/10 as the greater of these two dates. Thanks.

Answer:excel if then statements with dates

Try this:If 11/10/09 is in cell A1andIf 12/15/10 is in cell B1in cell C1 enter the formula: =IF(A1>B1,A1,B1)MIKEhttp://www.skeptic.com/

4 more replies
Relevance 54.12%

Number of working hours between two dates. Working hrs 6:00 AM to 8:00 PM. Including Saturday, excluding Sunday and Holidays

More replies
Relevance 54.12%

Hi,I am looking to write If statement that if I write a date into cell A2, then A1 will display "Good" if its within 4 years since the date in A2, or A1 will display "Expiring Soon" if its between 4-5 years after A2, or A1 will display "Expired" if its 5 years after the date in A2. I have never used If statements with dates before so I don't know where to start and any help will be greatly appreciated.Thanks,

Answer:How to If Statements Using Dates in Excel?

re: "if its within 4 years since the date in A2"By its I assume you mean today's date. If so...Take a look at the EDATE function. EDATE returns the serial number that represents the date that is the indicated number of months before or after a specified date (the start_date).e.g. For your 5 year (60 months) expiration criteria, this should work.=IF(EDATE(A2,60)<TODAY(),"Expired","")Basically what this says is "If I add 60 months to the date in A2 and the result is less than today's date, then the date in A2 must be more than 5 years ago."The "inverse" of that is to subtract 60 months from today's date to get the same result:=IF(EDATE(TODAY(),-60)>A2,"Expired","")Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.message edited by DerbyDad03

3 more replies
Relevance 54.12%

Hi,Please help - I'm sure this has already been asked and answerred but I'm really struggling to find the answer I understand.In Excel - I'm trying to get a column of dates to add up and tell me how many date = Jan, how many = Feb and so on. Example. Dates column is formatted like 01-Jan-10. If there are 15 entries of Jan then I want the system to report back in another cell 15, if Feb had 24 enteries then 24 reports back and so on throughout the year.Thanks for any help! I'm sure I'm going to kick myself when I find out the answer - but thanks anyway!

Answer:Counting dates in MS Excel

What kind of entries are you talking about?

12 more replies
Relevance 54.12%

I am working with an Excel file and I have today's date autopopulating in cell C1 using the NOW function. In cell b12 I enter the date of an instance, for example 4/15/2013, then in C12 I am using the function of IF(B12="","",SUM(B12+30)) to give me 30 days from the date. In cell H12 I am trying to have that cell autopopulate if the date in C12 is older than today's date in C1. I have written the formula the way I feel it should work, but it is not working yet. Here is what I have =IF(C12="","",IF(C12<C2,"","X")). Once I get that working there is another formula for me to add where it turns the line red if there is an X in H12. It seems like a lot of stipulations and connections and I know if one thing is off, then more than likely even more will not work.Thank you

Answer:Excel if then statements using dates

I don't see where you are using C2 for anything, so I can't answer any question related to IF(C12<C2,"","X").BTW, if you are only dealing with Dates, why not use =TODAY() instead of = NOW()?Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.

4 more replies
Relevance 54.12%

Probably a simple solution to a fairly simple question but it's had me stumped for ages.In the first column i typed in a date (26-03-08)what i then want to do is drag this date down and for it to increase in value by weeks ie 02-04-08, 09-04-08 etc. Can it be done, or have i got to go through and type it all out (which would have been quicker now with the time i've spent mucking around).Many thanksNos

Answer:creating dates in excel

Providing the column is formatted as Date then enter the first two dates, select both cells and drag down.

2 more replies
Relevance 54.12%

Hello,
What a great help this forum is.
I know nothing at all about VBA, yet managed to get a macro in excel that allows me to send the "due date" emails that works almost perfectly for my needs. I based my macro on the code found here https://forums.techguy.org/threads/...ue-date-reminder-based-on-excel-file.1129238/
But i'm still missing one function in this macro for it to be perfect for my needs. I want it to send only one email to the "area manager" specifying all the items (serial number and location) that follow my due-date rule (instead of one email per item). I want it to send a list of items that are due this month for example.
Is it possible?
 

More replies
Relevance 54.12%

I have an excel document. How can I get excel to automatically populate several fields based on a date in another field. For example: If field A5 has a date of 02/01/2011..how do I have Excel automatically generate fields C6 thru C14 with dates of 2/1 thru 2/8? The fields in C6 thru C14 would change based on the date entered in C5. Any help is greatly appreciated

Answer:If and Then Statements with Dates in Excel

In C6 enter this:=A5In C7, enter this and drag it down as far as you need:=C6+1Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.

9 more replies
Relevance 54.12%

Some times I have only the year (eg 1914). Other times I have the full date (eg 12/25/2011). If I format the Excel for as a date and enter merely 1914, it shows as 3/28/1905 (its reading only the "1914"). I do NOT want to enter 1/1/1914 - because that is an incorrect date (all I have is the year 1914). What I want: If I have only the year, I want only the year (eg 1914) to show. If I have the full date, I want the full date (eg 12/25/2011) to show. How do I do it? Does it require an IF statement?

Answer:Formatting Dates in Excel

Not sure what it is your after, but Excel stores dates and times as a number, representing the number of days since January 1, 1900So when you enter 1914, Excel reads it as 1,914 days since 01/01/1900or 03/28/1905.See this page for a complete explanation of how Excel works with Dates/Times:http://www.cpearson.com/excel/datet...MIKEhttp://www.skeptic.com/

5 more replies
Relevance 54.12%

I am trying to change some dates in a column in excel 2007. I want the date to read the month and year but the year that I need is 2007 and the cell wants to automatically change to 2008. How can I prevent this from happening?

Thanks for the help
puterputter
 

Answer:Dates in Excel 2007

6 more replies
Relevance 54.12%

excel insists on changing the year I enter (such as 2005) to the current year (2011) after I have specifically formatted the cells in the date format I selected. For example, I enter 5/2005 and end up with 5/2011. No matter what date format I select from the drop-down, it keeps doing this.

Answer:why does excel change my dates

I formatted some cells as Custom m/yyyyWhen I enter 5/2005 it displays 5/2005 and shows 05/01/2005 in the fomula bar.Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.

3 more replies
Relevance 54.12%

This should be simple and I thought I had it nailed, but the formula is not working, so I am obviously doing something wrong.I have two adjacent columns. The first column is always populated with a date and the second column may be populated with a date or may be blank. I am trying to determine if one or both dates are greater than 3/1/2008, then the row is "OK"; if neither date (or if the second column is blank) is before 3/1/2008, then that row is out. Here's what I tried to use: =IF(OR(H2>DATEVALUE("03/01/2008"),I2>DATEVALUE("03/01/2008")),"OK""OUT").The formula just does not return the correct result. Thanks for the help.

Answer:nested if excel with or and dates

You are missing a comma between "OK" and "OUT"Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.

17 more replies
Relevance 54.12%

Hello,I am trying to do the following in Excel:If the date in column Q1, is 30 days over the date in column P1, outline or fill Q1 in a color. Is this an IF statement or conditional formatting?Thank you!

Answer:Excel if statements with dates

Conditional formatting is what your looking for:1) Select your cell, Q12) On the ribbon click Conditional Formatting3) Click on New Rules, it?s near the bottom of the dialog box.4) Click Use Formula to determine which cells to format.5) Enter the formula: =IF(P1+30<=Q1,TRUE,FALSE)6) Click on the Format button7) Select the Fill Tab8) Select a pretty color9) Click OK10) Click OKMIKEhttp://www.skeptic.com/

2 more replies
Relevance 54.12%

Number of working hours between two dates. Working hrs 6:00 AM to 8:00 PM. Including Saturday, excluding Sunday and Holidays

More replies
Relevance 54.12%
Relevance 54.12%

Dates input to Excel are being treated simply as a text string and not recognised as dates. Apparently, all was OK until recently (this is a friend's problem). Old spreadsheets suffer the same problem, so it seems to be a global problem.Any ideas please?

Answer:Excel not recognising dates

The cells have to be formatted to accept dates rather than text or numbers. Goto Format/cells after selecting those that need to be dates.

6 more replies
Relevance 53.3%

I know that taking one date away from another will calculate the numbers of days in between but can I calculate length of time when either one date or both dates are before 1900?Thanks

Answer:Excel and dates prior to 1900

If one date is before 1900 and one is after you will get an answer 1 day too large. This is because of a (deliberate) bug in Excel that treats 1900 as if it was a leap year (which it wasn't).A deliberate bug? Microsoft copied the bug from Lotus 1-2-3 to ensure compatibility between the two spreadsheets. Amazing but true.

4 more replies