Dates Are Not In Same Format Even Though Both Cells Are Formatted As DATE

Oct 17, 2013

I'm working with a big dataset and the dates come out in this way:

94WAO7t.png

EDIT: Example of book included

View 10 Replies


ADVERTISEMENT

Date Conversion Formula For Dates Formatted With Period

Aug 19, 2012

How to create the formula for dates formatted with periods.

Dates are as follows:

01.07.12 - should return as 1-Jul
01.08.12 - should return as 1-Aug
02.08.12 - should return as 2-Aug

View 4 Replies View Related

Converting Date Format In Formatted Column

Oct 9, 2013

I have a column that contains dates from our system that displays in "mmddyyyy" format (i.e., 10121999 or 8121998). How do I convert this to a 10/12/1999, 8/12/1998 formatted column?

View 1 Replies View Related

Some Dates In Format Not Being Converted Into Normal Date Format?

May 23, 2014

I have a some dates in a format which are not being converted into the normal date format. So i made this formula to convert it into the normal date format:

=IF(LEN(B218)=10,(MID(B218,4,2)&"/"&LEFT(B218,2)&"/"&RIGHT(B218,4))+0,IF(LEN(B218)=9,(MID(B218,3,2)&"/"&LEFT(B218,1)&"/"&RIGHT(B218,4))+0,IF(LEN(B218)=8,(MID(B218,3,1)&"/"&LEFT(B218,1)&"/"&RIGHT(B218,4))+0,"")))

Formula is working fine except on this type of date "9/9/2013"..i also tried an OR formula with mid but didnt get the desired result.These are the type of dates:

12/10/2013
12/9/2013
9/11/2013
9/9/2013
7/25/2013

View 9 Replies View Related

Custom Date Format: For 2 Dates

Jun 15, 2007

I want to display 2 dates in one cell and have them custom formatted.

Eg. Display in one cell: 26 Jun - 27 Jun

With text typed: 26-6 - 27-6
(Or something along the lines of)

I know that dd mmm will display one date. But I cannot get 2 dates formatted. I tried dd mmm; dd mmm" - "dd mmm, which didn't work.

View 9 Replies View Related

Convert Non-US Dates To US Date Format

Dec 9, 2006

I am parsing a string which contains (European) dates:

"10/08/2005,11/08/2005,12/08/2005,13/08/2005,14/08/2005,".

When broken into individual cells, dates before the 13th of the month are recognised as "American" dates and display as "08/10/2005", "08/11/2005", 08/12/2005" etc. with automatic date format. Dates from the 13th onwards are left in general format as "13/08/2005", "14/08/2005".

I have written a macro that converts each date individually to its correct Excel serial number, but I can't help thinking that there must be a simpler way, and that I cannot be the first to have asked this!

View 8 Replies View Related

Non US Date Format For Dates In CSV File

Oct 21, 2007

I am using a CSV that has the date in Column A in the format of DD/MM/YYYY. When I open this CSV using a VBA comand the Format of the Cells in this col are then formated as either Date or General. The general format happends when the date cant be turned into US format and when it can then the date is turned US and displayd as such.

SO
14- Sep = 14/09/2007 as General
10- Sep = 09/10/2007 as Date

Im in Australia so the correct format is DD/MM/YYYY. Microsoft has issued a fix for this using Local:=True in the file open comand which is all good and well as it works unless you have office 2000 when it crashes. What would be the best way of fixing this, so that the Dates are all correct or the col is all the same format?

View 4 Replies View Related

Date Format Is Remaining As Serial Dates

Feb 1, 2007

My dates are coming up in serial format even though I have the cells formatted to date. It doesn't matter which date format I select they all remain as serial dates.

View 4 Replies View Related

Dates Display As Numbers Even With Date Format

Jun 20, 2008

dates column displays numbers even though the format in the format cell options is date format.

the number updates to date format only when i do F2 & enter for each cell. i've about 5000 cells with same problem. how cani do them all in a go instead of doing themone for a time.

View 6 Replies View Related

Unable To Change The Date Format In A Column Of Dates

May 28, 2013

I am unable to change the date format in a column of dates. The cells have values that look like the following: 4/29/2013 8:59:12 AM. I want to change these to YYYY-MM-DD format, but no matter what I try the format will not change.

View 4 Replies View Related

Dates To String But Cell Formatted As Number

Feb 11, 2014

I'm working on a sheet for our accounting section which has been in use for quite some time, which means, that I'm not supposed to change a hell of a lot in it since it's accounting and everybody is afraid of changes.

Coming to the point, I have the following problem:

(1) I have a date.
(2) I need that date in this format: "mm-yyyy", written in a certain cell.
(3) BUT: the cell should NOT contain the date itself, but JUST the text (some tables in the background need this format)
(4) Changing the cell to text-format is not eligible, since it puts an " ' " in front of the numbers.
(5) The cell should be formatted as a number.

So, in conclusion:

I need a string/number with the date in this format: "mm-yyyy" in the cell formatted .NumberFormat = "0".

I'm working on an existing workbook...

I decided to add some code and a screenshot. This code will return the number, which lies behind the date, and write it into the cell. So that's not what I want, but maybe the code clarifying what I need anyway.

The screenshot shows the wanted output : screenie.png

View 14 Replies View Related

Conditionally Format Entire Row For Dates 15 Days Past Today Date?

Jun 11, 2014

I have spent too many hours Googling and trial with mostly error in attempting this. I formatted the very first cell A1 for today's date =TODAY(); this is also dirrectly above the column with all the dates in it. I just want an entire row's contents to turn red if it is 15 days old or older. This =$A1<TODAY()-15 somewhat works, but it only turns the date cell red, not the whole row. It also makes blank cells turns red, which I would like to remain blank (another formula is needed I imagine).

View 3 Replies View Related

Excel 2010 :: How To Convert Numeric Dates Into Proper Date Format

Aug 21, 2013

I have a column of dates formatted as:

20130201

The cell format in the column is General.

I need to change it so that the format looks like this:

02/01/2013

Is there a quick/easy way to do this in Excel 2010?

View 2 Replies View Related

Convert Jd Edwards Julian Dates Format Into Standard Gregorian Date

Aug 9, 2007

how to convert the JD Edwards Julian date format into standard Gregorian date, and can it be done using VBA? Note that the JD Edwards Julian date is different than the standard Julian Date and uses 6 digits instead of 7.

View 7 Replies View Related

How Do I Format List Of Names Formatted Last,first To First Last

Dec 14, 2005

ANYONE KNOW, OTHER THAN CUT AND PASTE, A METHOD OF "flip flopping" names in a list, from last, first to first last? (maybe "telling"the list to separate into 2 columns the words separated by the comma, last in one column and first in another). I have a list of 360 names and not looking forward to cut and paste this list.

View 13 Replies View Related

How To Conditional Format Cells With Text And Dates

Aug 4, 2014

I have a range that contains dates, with some cells within containing text (e.g. "TBC" or "planning will occur wk42"). I have basic rules as below:

- highlight red if older than today
- highlight green if today or in the future

The problem I have is that the cells that have text are highlighted green which I don't want. I also don't want to have to go through the range removing conditional formatting from each of those cells each time I copy over new data. Is there a way of telling excel to not use conditional formatting on those cells that contain text so I can manually highlight as I need? Some have text as that is how I receive the data.

View 2 Replies View Related

Concatenate Two Cells One Containing A Date Preserving The Date Format

Jan 24, 2007

I have two cells. Cell A1 contains ‘The date is ’ cell B1 is formatted in the date format, 2007-01-24. I need to concatenate these two cells so that on cell C1 I have ‘The date is 2007-01-24’ but whatever I try excel keeps on changing the date to a text value and hence I am left with: ‘The date is ‘This is the date'39141 or this is the date 39141. how to get to the result that I am after?

View 5 Replies View Related

Date Isn't Formatted With VBA?

Aug 6, 2012

I have a strange issue. I have column "B" has date texts in it ( don't know if it means value) like 21.09.2012. The cells are in text format.

VB:
Sub ReFormatCell()
Range("B:B").Select
Selection.NumberFormat = "dd.mm.yyyy ddd"
With Range("B:B")
.Formula = .Value
End With

I tried ".Value = .Value" or ".Formula = .Value" or Copy paste or offset...... Non of the codes didn't work to make date format as I desired :/

The order is something like:
1. Format column "B" as text.
2. Offset text value 21.09.2012 to B.
3. Reformat cell as date
4......?!?!

What should I change to display "21.09.2012" as "21.09.2012 Wed" in B:B range?

View 9 Replies View Related

Formatted Date In Message Box

Nov 16, 2006

this code works fine on my desktop but on 2 of work's pc's it produces a error at the msgbox line

Private Sub Workbook_open()
'http://www.ozgrid.com/forum/showthread.php?p=306542&posted=1#post306542
Dim dDate As Date
dDate = Sheet16. Range("a1").Value
MsgBox "Today is the " & Format(dDate,"dd/mm/yy"), vbOKOnly
End Sub

i have changed the security settings in macro's and one of them was using office 2000, not sure about the 2nd one but i will check next time iam at the office and grab the error codes.

View 2 Replies View Related

Formatted Date In Message Box String

Oct 29, 2006

how can i get a cells date into a message box string? i have been trying to get this to work

Dim Date As String
Date = Sheet16.Range("a1").Value
MsgBox "Today is the & Date ", vbOKOnly

View 3 Replies View Related

Adding Formatted Date To A Messagebox

May 3, 2007

I have a cell E1 that is actually a vlookup and returns a date. I had to custom format the cell so the value returned looks like "June 2007" instead of "39827". I am running a macro and I need a messagebox to tell the user that they are creating an email for June 2007 (which is really the variable cell E1). Problem is the message gives the date as '6/4/2007' instead of 'June 2007'. I tried using the text() function to format the cell as "mmmm yyyy" but I get a type mismatch error. Below is the code I wrote. The first way shows successful but the date as numeric. The second gives me the type mismatch error: First way:

a = Range("e1").Value
Msg3 = "You are about to create an email for " & a & ". Are you sure?" 'Define msg
Style = vbYesNo + vbQuestion + vbDefaultButton2 ' Define buttons.
Title3 = "Create new file" ' Define title.

Response3 = MsgBox(Msg3, Style, Title3)
If Response3 = vbYes Then ' User chose Yes.
'create email

Second way (mismatch error): a = text(Range("e1").Value, "mmmm yyyy") Msg3 = "You are about to create an email for " & a & ". Are you sure?" ' Define message.
Style = vbYesNo + vbQuestion + vbDefaultButton2 ' Define buttons.
Title3 = "Create new file" ' Define title.

View 2 Replies View Related

Formula To Return Sheet Name Not Formatted As Date

Jan 13, 2010

I have the following formula in cell B1 to return the Sheet Name as the cell value ...

View 6 Replies View Related

Text And Formatted Date & Time In Cell

Mar 19, 2008

I am trying to get a single cell to display the following:

Last Updated: 3/18/2008 15:08 (GMT+2)

Entering =NOW() in a cell displays the date and time as required.

But entering ="Last Updated: "&NOW()&" (GMT+2)" displays the date and time as a serial number. Formatting the cell to Date does not change the serial number to date and time format.

The only way I have found to get the desired result is to use =NOW() in another cell (F13), format that cell to general to get the date/time serial number, then use ="Last Updated: "&TEXT(F13,"m/d/yyyy h:mm ")&" (GMT+2)" in the required destination cell.

As I said this works, but it strikes me as an inefficient method. Is there a formula I can enter or formatting I can apply to get the desired result without using an addition cell?

The result needs to be in a single cell. Splitting text and date/time into 3 adjacent cells will not work with my worksheet setup.

View 9 Replies View Related

Changes Format To DATE For All Cells

Apr 8, 2013

I have a couple Excel files that exhibit a very odd and annoying behavior. When I save the files, everything is fine and all cells are formatted as they should be (e.g., general, text, numbers, etc). However, when I open the file again, all cells are formatted as date. This is quite annoying since some underlying data will be destroyed.

I already checked if the format style "normal" is damaged, and indeed it was (the standard format was set to date). However, I changed this back to general before saving, yet still see all cells formatted as date after reopening the file (this does not happen consistently... most of the time everything is fine but occasionally I get the date mess-up).

View 3 Replies View Related

Dates - Show Month Only, And Actually Be The Month Only (not Just Format The Date)

Jul 28, 2008

I have a range of dates from 2003 to 2012. I formatted them to the 'Mar-01' option, but when I want to pivot on the month, Excel still reads them as the date - example 3/25/2008, 3/28/2008...and so my pivot table has multiple columns for all of the dates present in that month.

How do I truly format my dates so that excel reads them as the month only so that I can then pivot and show 12 columns (months) per year?

View 9 Replies View Related

Date Functions (fill Dates In Cells)

Apr 2, 2009

How is it possible to have Excel fill dates in cells, when i give the year and week number in other cells?

A1=YEAR (This will be Fillede out by user)
A2=WEEK (This will be Fillede out by user)
A3=Date for WEEKDAY1 MONDAY (This should be fillede out by excel)
A4=Date for WEEKDAY2 TUESDAY (This should be fillede out by excel)
A5=Date for WEEKDAY3 WEDENSDAY (This should be fillede out by excel)
A6=Date for WEEKDAY4 THURSDAY (This should be fillede out by excel)
A7=Date for WEEKDAY5 FRIDAY (This should be fillede out by excel)

View 10 Replies View Related

VBA If Date In Cell Falls Between Dates In 2 Cells?

Feb 6, 2013

I'm running a macro that pulls rows from a different spreadsheet based on certain criteria. I need to add an if statement that will determine if the dates in a column fall in between 2 dates specified in cells.

View 3 Replies View Related

Datedif But For Date In Future And To Return Formatted Time Value

Aug 4, 2009

I need to calculate the difference in Years, Months and Days between:

Date 1 = TODAY()
Date 2 = 4 years after a date in cell A1, which will always be earlier than today's date

(A bit of backround - I have certain risk management procedures that have a lifespan of 4 years. I want to calculate the time between now and 4 years after the date the procedure was completed, essentially to see how long before they have to be redone).

So far I have:

=DATEDIF(A1+4,TODAY(),"y")&"y "&DATEDIF(A1,TODAY(),"ym")&"m "&DATEDIF(A1,TODAY(),"md")&"d"

But that returns #NUM!.

Removing the +4 obviously just calculated the difference between the date in A1 and today, but I need the date in A1 PLUS 4 years and today.

I have also tried:

=(DATE(YEAR(A1)+4,MONTH(A1),DAY(A1))-TODAY())/365.25

which works in theory, however:
a) no consideration for leap years
b) does not return nY, nM, nD - only the decimal.

However I would be happy to use this method if I could convert it to Years Months Days.

View 11 Replies View Related

Duplicated Cells With Date Format?

Aug 19, 2013

I have an application that generate an excel sheet for me. In this sheet I have multiple rows with duplicated dates and text. With VBA I need to clear the content of all the cells that contain duplicated date and keep just the first row.

View 3 Replies View Related

Format->cells->date Not Applied

May 5, 2007

I can select an individual cell or range, select Format->Cells->" date" format, hit okay, and nothing actually changes unless I click on a cell so that it brings up the edit cursor. I can then hit enter (not changing the content of the cell in any way) and then Excel recognizes it as a date. The cell values are all in the standard "3/14/2001" format, with the exception that single digits are 0-padded, and there are no spaces preceding or following the date string. The issue here is that without the cells being recognized as actual dates, they cannot be properly sorted, eg: the original range:

01/04/2005
01/01/2005
01/02/2004
01/03/2005

is sorted, incorrectly, to:

01/01/2005
01/02/2004
01/03/2005
01/04/2005

...obviously for ascending order, the single 2004 date should be placed at top. Any ideas other than a custom date-text parsing macro? I could do that, but the size of each sheet, the number of sheets per batch, and the frequency of individual batches makes that idea completely impractical. ...Technically, my macro couldn't sort the above ranges correctly, but on further investigation, I noticed I couldn't do it manually either.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved