Computer Support Forum

Excel and Formatting Dates

Question: Excel and Formatting Dates

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

Relevance 100%
Preferred Solution: Excel and Formatting Dates

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 (This link will automatically start a download of Reimage that you can save to your computer.)

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

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:

5 more replies
Relevance 79.95%

Hello - I've been spending most of the day trying to figure out a solution and seem to get further and further away. I have 2 columns. The first column contains a date for delivery (P5) the second column shows a forecased date for delivery (Q5). I need to create a formula that will change the color of the Column Q cell for the following: if it is equal to or less than column P it will be green. If 1-14 days past column P it will be yellow and more than 2 weeks past the column P date, the cell will be red.I hope I explained that well, but if anyone can help it would be much appreciated!

Answer:Excel Conditional Formatting Dates

See if this How-To helps:

2 more replies
Relevance 79.95%


Can someone help me with dates in conditional formatting.

I have a column of dates (G) in a spreadsheets.

I would like to highlight all dates between now and the end of March 2010.

Any ideas?

Answer:Excel - Conditional Formatting - Dates

try this

where you numbers start at A2
then copy the cell
paste special
format into the rest of the cells

see attached example - sample in column A

1 more replies
Relevance 79.95%

I have a conditional formatting question. I need to compare dates and depending on the result, come back with the correct formatting. This will be using three possible columns including Due Date, Revised Due Date, and Done Date.For example, if a project is logged as being due on 6/9/12, and the done date is 6/9/12, I want to format the cell to have a green background. Or, vice versa if the done date is after the due date I want the cell to automatically format with a red background.I also need to account for if the done date matches the revised due date but not the original due date.Is something like this even possible?

Answer:Conditional formatting between two dates in Excel.

Have you tried using the greater than, less than and equal operators to compare the dates? All you are looking for are formula that return TRUE when your conditions are met. Whenever the formula returns TRUE, the CF will be applied.e.g.=A1>B1=A1<B1=A1=B1Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.

2 more replies
Relevance 79.13%

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.


Answer:Solved: Conditional Formatting Dates (Excel)

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

Good afternoon!

Hope someone here can help!

I produce a report in excel that has rolling information spanning back over a year and for some reason, between my saving the file with this months data and my boss opening it a day later, all cells containing numbers using general format have been changed to 00:00:00.
Cells that had already been set to a date format were not changed and the data is still available somewhere in the cell as all my graphs are still showing the correct info. Even all numbers on my Y axis are 00:00:00!!!

I have subsequently established today that my colleague is experiencing a similar issue, whereby all data in her reports is being changed to a date format of "dd mmm 1900" whenever it is saved.

In both instances, we have reformatted all cells back to general or number (whichever is suitable) and saved the file, only for it to revert back when we re-open.

I have attached an example which shows just one tab from each of the reports to show an example of what is happening - you will notice that any formulas and graphs are still calculating correctly, it is purely the view that keeps going wrong!!

Any help anyone can offer will be gratefully received.

Thanks and regards,


Answer:Excel re-formatting numbers to dates or times

you are getting the data from an external source - has this source changed its format at all
what is the source

do you update the data from external source each time you open the spreadsheet

who owns the external data /database you are using

3 more replies
Relevance 79.13%

I have a simple spreadsheet showing vehicle details, with expiry dates for registrations. I would like to use conditional formatting to have all dates that are 30 days or more ahead of today be green, for dates that are 1-29 days greater than today to be orange, and for dates that are the same as today or earlier to be red. I know the basics of conditional formatting, but can't get my head around all the 'ifs' involved. I'd welcome any help!


Answer:Excel 2010 - conditional formatting for dates

I attached a sample with the formulas dispalyed in the cells to show

1 more replies
Relevance 67.65%

Hi there,

I have a whole column of dates in this format in my table: 20080602

I want my macro to change the format of the dates from this 8-digit number string, into a date format that Excel can recognize (6/02/2008). Once the dates are re-formatted, I then want to have the macro select rows with dates that are up to four days of age only for the new report.

Here is what I've got to format the dates. When I run it, the macro stops at this point and tells me to debug, telling me I have a 'syntax error'. A what?

Selection.Format = Date(left(a1,4), mid(a1,3,2), right((a1,2))
Once I do get the dates right, how would I get it to select dates that are up to four business days in age only? This is what I thought I should use, but it doesn't work:

Selection.Format >=today()-4


Answer:formatting dates and selecting dates by age in vba?

I don't think that you can do what you want using the Format function as you have tried to do it. You are on the right lines with the Left, Mid and Right though.
in another column put this in a Cell on the same row as A1
=mid(a1,5,2) & "/" & right(a1, 2) & "/" & left(a1,4)
If that gives you the correct "look" then Drag that formula down the rest of the rows with Dates in. Then copy the whole Range of new look dates and Paste Special>Values over the first cell in that Range or in a new column and you should now have your Dates.
In the next column type in the first cell
= if(today() - Celladdress <= 4, "Yes", "")
Where celladdress is the cell with you first "Proper" Date.
This will place a "yes" in the column wherever the date is within 4 Days.
If this is not satisfacory and you really need to have a Macro to do this you can use the same "Formatting" in the Macro, but you will require a "For/Next or For/Each loop" to do it.

2 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: 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 61.09%

Hell, please be gentle I am fairly new to Excel!
I am trying to get cells in a worksheet to turn differnt colours depending on date criteria as follows:
If a date occurs today or before the cells to turn red.
If a date is tomorrow plus 30 days the cells to turn yellow.
If a dare is more than 30 days old the cells to turn green.
Now for the hard part! If there is no date in the cell no colouring to be in the cell.
I get the feeling that this should be fairly easy to do but I can't quite get all the things working together.
Can you help?
Thanks in advance. Geordie

Answer:Formatting with dates

Welcome to the forum!

Have you been using conditional formatting? If so what rules have you tried to put in place?

6 more replies
Relevance 60.27%

I need to be alerted to a review expiring in 10 days. The reviews are done every 3 months but I would like it to alert me when it is 10 days from expiring so I can schedule the new review on time. How can I write the formula so that excel highlights the cells with conditional formatting? Each date in the entire column is different. I already tried to do so for 1 cell and the formula works but I can't get it to apply to the entire column. Help!BTW....I am using Excel 2007

Answer:Need help with conditional formatting for dates

I figured out that this will only work if the formula is only sitting in the first cell (i.e. H2). The formula is applied to $H$2:$H$131 but I wrote it:=H2+80<=TODAY().Thanks for your help!

9 more replies
Relevance 60.27%

When mail merging in Word the date format as taken from an Excel file is wrong. A field in the Excel file is 23/1/2004 but appears in the Word document as 1/23/2004 - the usual U.S. format. Cahanging the Excel format to 23 January 2004 still gives the same fault. Any ideas?

Answer:Formatting dates when mailmerging

Have you checked in Word. Go to Insert, Date and Time, Pick the format you want in the lefthand window. In the righthand window make sure language is English (UK).

1 more replies
Relevance 60.27%

Conditional Formatting - DatesI am new to using Excel 2007 and am struggling with the new setup.I have a start date and need to add 15 workdays which I can write a formula for, but the problem is the conditional formatting as I need to achive the following:the cell needs to change colour through the process as follows 1-4 days needs to be clear, then 5-8 needs to be green, 9-12 can be amber and 13-15 needs to be red.Can you help?

Answer:Conditional Formatting - Dates

you would be better off staying with first posting to save confusion click herejohnny

1 more replies
Relevance 60.27%

Can someone help me with a formula that will flag dates before or equal to today's date? I use a spreadsheet to let me know when my jobs expire but I don't want to have to change the formula each time I use it (about 3 times a week).

Thanks in advance for all of your help!


Answer:Conditional Formatting with Dates

6 more replies
Relevance 59.45%

I want to format an invoice so that the dates of the month change to the current month just by entering the date one time in the first cell. The invoice would include all the days of the month. How do I do this? Thanks for your help.

Answer:Formatting calendar dates on spreadsheet

Hi,You can try this:In cell A1 enter =DATE(YEAR(TODAY()),MONTH(TODAY()),1)This will return the first day of the current month & yearor just enter the date for the first of the required month.The date must be in a format Excel recognizes as a date.In cell A2 enter =A1+1This will give the second of the monthDrag the formula in cell A2 down to A28This will give the first 28 days.In cell A29 enter this formula: =IF(DAY($A$1+28)<>29,"",A28+1)This tests whether 28 days after the 1st of the month is 29 (or 1 - i.e. 1st of next month)If it isn't 29, it returns "", else it returns the dateThe same approach is used for A30 and A31A30 =IF(DAY($A$1+29)<>30,"",A29+1)A31 =IF(DAY($A$1+30)<>31,"",A30+1) Format all cells with the required date format.Hope this is the sort of thing you were looking for.Regards

4 more replies
Relevance 59.45%

HiI have a large excel spreadsheet to track lots of mandatory training which needs to be retaken periodically i.e. 01/02/2009 due to retake 2 years later 01/02/2011 and I want to make the original dates turn red once the set period has passed. I have tried conditional formatting but have not used it much in excel 2007 and it seems less flexible unless you know the exact formatting styles which I don'tCan you help?

Answer:Colour formatting for training dates due

Conditional Formatting is much more flexible in 2007 and later versions.What do you mean by "unless you know the exact formatting styles"?Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.

4 more replies
Relevance 59.04%

Hi, i am developing an action task list that I want to change colour as follows. the project is 10 weeks long and I want to macro the cells, such that:task completed, cell goes greentask within one week of requiring completion, cell goes amber / orangeTask overdue, cell goes redcan you help me do thisI am using Windows 97-2003

Answer:conditional formatting dates to change colour

Perhaps try reading this post. and Answer. The way of learning.

2 more replies
Relevance 59.04%

I tried to change from mm / dd / yyyy to dd / mm / yyyy in Excel 2003 that is expected of you help me

Answer:questions about formatting dates inExcel 2003

Are there really spaces inside your strings?Did you mean:mm/dd/yyyy to dd/mm/yyyy instead of mm / dd / yyyy to dd / mm / yyyy?If so, what happened when you tried to reformat the dates?If the spaces are really there, you won't be able to change it with formatting, you'll need a formula.First, tell us if the spaces really belong there.Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.

2 more replies
Relevance 59.04%

I have two columns of dates, and I need to apply a conditional formatting rule so that;If a date in Column B falls within 0-3 months of the date in Column A (same row), it highlights GreenIf a date in Column B falls within 3-6 months of the date in Column A (same row), it highlights YellowIf a date in Column B falls within 6-12 months of the date in Column A (same row), it highlights RedI have searched on a lot of forums, but cannot find anywhere. Any help very much appreciated! Thanks :)

Answer:Conditional formatting dates based on another cell value

Try this How-To and see if it works for you:

2 more replies
Relevance 58.22%

I have a date format on excel which increases the next date cell by 182,5 days and so on for the next 4 cells increasing it by the same amount... Does anyone know how to do this on Access 2007?

Answer:Solved: Conditional formatting dates in Access 2007

6 more replies
Relevance 57.81%

Hi!I have created a convoluted formula which responds true or false which is then formatted conditionally to colour-in cells in a date range.Row 2 has a calendar year of dates (e.g. H2 = 31/01/13, H3 = 01/02/13, H4 = 02/02/13 and so on)And columns have the date ranges:Column F3 = 31/01/13Column G3 = 05/02/13Column H3 =AND(H$2>=$F3,H$2<=$G3)Which therefore colour-in the cells which respond true to the relevant formula.What I'd like to do is to have a monthly event occurring and coloured in - e.g.F3 = 31/01/13; 28/02/13; 31/03/13G3 = 02/02/13; 02/03/13; 02/04/13So the result would be that "true" would come up in the relevant cells on and in-between these dates and therefore they would be formatted with colour!"," and "AND" and ";" don't work - is there something else I could use?Thanks ever so much!

Answer:Gantt Chart conditional formatting - multiple dates in cell

Hi CharlotteConvoluted is somewhat of an understatement even more so because of a confusion between what are rows and columns. For example, where you say;Row 2 has a calendar year of dates (e.g. H2 = 31/01/13, H3 = 01/02/13, H4 = 02/02/13 and so on)What you are actually describing is a column, specifically, column H and not, as you say, "Row 2"Then you say "column F3=31/01/13" but F3 is a cell so we don't know if 31/03/13 appears in just that cell or do you mean that F3,F4,F5,F6 etc. all contain 31/03/13?Perhaps you could post a part of your data here to better illustrate what your data looks like (use the "pre" button at the top of your reply when you paste your data in the post).

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


Answer:Need Excel HELP with Dates

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

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


Not Available


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

Last Used
Not Available

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

This file was released 4 years 8 months ago.

Norton has given this file a good rating.
Source File:

File Thumbprint - SHA:
File Thumbprint - MD5:
Not available

Answer:excel dates

What is your problem and/or question?

2 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?MIKE

24 more replies
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 Dates

I have been using this formula to let clients know when their bills are due:
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%

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

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

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%

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%

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

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%

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

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


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%

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.MIKE edited by mmcconaghy

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%

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.


Answer:Solved: excel dates

9 more replies
Relevance 54.12%
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%

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%

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

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

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:

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

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%

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

6 more replies
Relevance 54.12%

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:

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.


Answer:working with dates in Excel

7 more replies
Relevance 54.12%

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

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

Quick question.

Lets say I have a date.


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.


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.


3 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?MIKE

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

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%

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

Answer:Dates in Excel 2007

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


More replies
Relevance 54.12%

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

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 OKMIKE

2 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")

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%

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

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

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%

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%

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

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%

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

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

Hi, please help me in excel:I need to count certain text for every date:example:column a has dates 1/20/2011, 1/20,2011, 1/31,2011, 1/31,2011column b has apple apple orange applei need to count apple in column b under 1/20/2011 date only

Answer:excel: count text under same dates

Read up on the COUNTIF function in the Excel Help files.Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.

2 more replies
Relevance 53.3%

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

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:

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:

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

windows nt 6.1 vlookupI've created a spreadsheet in Excel. I've also created a calendar on a separate sheet. I need for the dates on the calandar to populate onto the spreadsheet. I know the VLookup formula. However, it's not populating onto my spreadsheet.I'm using Windows NT 6.1.

Answer:Dates not populating on Excel Spreadsheet

Let's start with the fact that your OS (Windows NT 6.1) has nothing to do with this. VLOOKUP is an Excel function, unrelated to the OS version.Next, you said:I know the VLookup formula.You might, but we don't, nor do we know how either of your spreadsheets are laid out. Since we can't see your workbook from where we're sitting, there is no way for us to offer any suggestions related to your issue.Perhaps if you posted some example data, along with the formula you are using and the expected output of that formula, we could be of some assistance.Before posting any example data, please click on the following line and read the instructions found via that link.Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.

2 more replies
Relevance 53.3%

I have a table with start dates in col 1, end date in col. 2 and difference in days in col 3.However for some reason the formula, say, =B1-A1 doesn't always work. In some lines it's OK and in others it displays #VALUE! The formatting of the various cells appears to be OK yet the symptoms persist.I'm stumped. Any solutions?

Answer:Simple dates subtraction in Excel

You will get that error if one (or both) of the dates is actually a text string, not a date. To test this, assuming that a problem date is in A1 then in a spare cell try the formula=ISNUMBER(A1)If that returns FALSE it is a 'text date'.Id that is the case then, with one column at a time, select the dates, Data > Text to Columns, click Next twice then on the third screen tick Date and select DMY then click Finish.

6 more replies
Relevance 53.3%

Excel in XP only appears to accept dates of 1900 onwards as proper dates, 1900 being 1 according to the help files. Doing family history I want the prog to accept dates prior to 1900 and to be able to sort them. Is this possible, please

Answer:How can I sort Excel pre 1900 dates

Excel doesn't make it easy. Apparently this is because Excel was originally designed to be compatible with Lotus 123. There is a sort of work-around here click here

8 more replies
Relevance 53.3%

I have items in form dd/mm/yyyy hh:mm:ss. If I want to, say, add 30 seconds and post the
new dd/mm/yyyy hh:mm:ss in the new cell, how do I go about it; please? Adding 00:00:30 to the value contained in the original cell does not work, as naively I thought it might.

Answer:Any one an Excel wizard with times and dates?

Hi rundwald

Did you try to use "ASAP" ?
ASAP Utilities for Excel - ASAP Utilities 5.0 Download this free Excel add-in - Recommended by several magazines
Read User guide before use.
I hope that will help.

5 more replies
Relevance 53.3%

I am exporting different data (about the same records) from a couple of sources into Excel.
I then use VLOOKUPs to collate the data into 'complete' records.

One particular thing I need to do is flag late records as "Late". I tried to do this by entering a formula similar to this:

=IF(H2>B2, "Late", "")
Where H2 is the Delivery date and B2 is the Required By date.

These two dates are from different sources. The problem I have is that the Required By dates are not being recognised as dates.
The Delivery dates are in the UK format dd/mm/yyyy and are fine.
The Required By dates appear to be in the format dd/mm/yy.
The IF calculation fails to yield any results.

You know when you change a date format to a number format, it shows the 5 figure date reference number? Well, that happens with the Delivery dates and not with the Required By dates. In other words, Excel is failing to recognise the Required By dates as dates.

The only way around this I've found so far is to Find & Replace on each date - so I'll find all instances of 01/07/04 and Replace with 01/07/2004. Then I'll do the same with each subsequent date in the period (usually about 2 weeks worth of dates).

Is there any way I can force Excel to recognise these dates, or to convert them to dates in a quicker way?



Answer:Excel 2002 - Dates not recognised

Hi Gram ; what does the "Required By" format show up as initially -- text?

Try entering "1" (the number) in a (General format) free cell & copying it. Then select the range of "Required By"s & Paste Special -- Multiply. This may well convert them to serial #s.


3 more replies
Relevance 53.3%

I have a list of company beginning and ending dates I can import into excel. Excel has a calendar template you can download but I need a program that can put the company name into the correct day given on the calendar. There are too many companies to imput them all myself. If it isn't possible to place them into an Excel calendar, I can also use a Microsoft Outlook calendar. Does anyone have any suggestions?

Answer:Importing Dates into an Excel Calendar

8 more replies