Converting Date Formats Depend On Value

Mar 10, 2009

I need to amend that column to display 26 Mar ( or 12 Dec or 17 Apr etc depending on value).

Try as I might, using format cells, nothing results in the required display. I'm not even sure what format the cells were in as received, since highlighting the received column and selecting "format cells" does not reveal the initial formatting. If I try pasting special to a new column and selecting values, I just get the numerical date value as a 5digit number.

View 6 Replies


ADVERTISEMENT

Extract Data With Differing Date Formats - Convert Text To Date

Mar 27, 2013

Extract data with differing date formats that I need to convert to something consistent that I can format as a date.

This is an example of data.... all with general format at the moment.

2/28/2013 2:48:53 PM

1/16/2013 10:48:50 AM

12/17/2012 11:59:49 AM

I have used this formula to extract the date portion, but I can't get this to then format as date. How do I convert this to the julian date, so I can then apply a date format?

=LEFT(G9,SEARCH("/",G9)+7)

(The day portion of this date always has a leading zero).

View 9 Replies View Related

Convert Different Date Formats Into One Date Format?

Apr 15, 2013

I have a worksheet where in a column, dates are stored in various date format i.e. it may be DMY or MDY or YMD.

08-06-12

08-06-12

08-07-12

08-07-12

13/08/2012

13/08/2012

13/08/2012

14/08/2012

Above is just for an example, above dates are for the month of August, but as can been some cells are in MDY formate and some in DMY. Can I have formula to convert different date formats into one date format?

View 9 Replies View Related

US To UK Date Formats

Oct 21, 2009

I'm running excel 2000 and don't have access to mscal.ocx, so i have used the date time picker with a calendar, but the formatting of the calendar is in US format m/d/yy and I need it in UK format d/m/yy, I have narrowed it down the following piece of code, the D values are the days,

View 12 Replies View Related

Various Date Formats In Same Column

Jun 22, 2014

I need for my office a table which has one column with dates. The "issue" is, that sometimes I know the whole date (day, month, year), sometimes only the month and year and occasionally just the year. Is there a way through custom number formatting that excel behaves correctly? How would I need to set conditions to achieve this? Because now something happens which is 99% incorrect .

View 6 Replies View Related

Different Date Formats On The Same Spreadsheet

Mar 13, 2007

I have data sent to me with different date formats on the same spreadsheet; I used Format - Cell and format date to this format: yyyy.mm.dd. However, only some of the data changed to this format and rest remain the same. I've tried many other ways, but didn't work.

View 14 Replies View Related

Change Date Formats

May 28, 2009

I have a userform which allows data to be entered onto a worksheet. One of the fields (a textbox with the standard calendar control) is the date. When the transaction saves, it correctly saves the date as dd/mm/yyyy using

ActiveCell.Value = TxtDate.Text

I also have a form which allows the user to amend a transaction by loading the data onto the form, amend it and save it back to the worksheet.

The problem is that when it picks up the data and re-saves it, it's resaved in the format mm/dd/yyyy which is a problem because I use the month as one of the categories that users can filter the data by.

I also have the following line immediately after each time the data is saved from the form to the worksheet:

Selection.NumberFormat = "dd/mm/yyyy;@"

View 7 Replies View Related

Number Formats For Date

Jan 26, 2010

I have a simple piece of code that gets a date from the user via inputbox in the format dd/mm/yyyy. That date is then put into a cell (e.g. B1), and the cells to its right get given something like "=B1+2", "=C1+5" etc so that they will all show a date a few days further down the track. (Much more complicated than that but this is the basic idea)

The entire row is then formatted "ddd dd mmm yyyy" with the intention of every column getting a header like "Wed 27 Jan 2010". This works perfectly for every column EXCEPT B which shows the the string "27/01/2010" it was given from the inputbox.

Right clicking --> Format Cells shows every cell in the row has the exact same 'Custom' format, and the 'Sample' at the top looks correct for every cell except B1.

BEFORE the macro runs and formats all the cells, but AFTER they have been given their formulas, they all display something along the lines of '40021', '40023' which I assume is the number of days since Jan 01 1900 or the like - proving that THEY knew the value in B1 was a date, so why doesnt B1 itself know?

View 2 Replies View Related

Date Formats From Useform?

Mar 1, 2012

I have a userfiorm with a text box that auto fills as follows

PHP Code:

Fill Datebox    DateBox.Value = Format(Date, "dd/mm/yyyy") 

which today fills the text box as 01/03/2012 (UK format), however when i try log a record as follows

PHP Code:

copy the data to the databasews.Cells(iRow, 1).Value = Me.DateBox.Value 

it changes the date to the american format so that it is pulling through on the data base as today being the 3rd Jan 2012.

View 2 Replies View Related

Change The Date Formats

May 9, 2008

I am importing data (using filestream) from txt files with comma delimited values. When I import dates into General type cells it turns a date of dd/mm/yyyy into mm/dd/yyyy only if the date makes sense.

I would like it to import dd/mm/yyyy as dd/mm/yyyy.

I am also interested to know how Excel/VBA deals with dates coming from various sources, what quirks or mode of thought it follows.

View 9 Replies View Related

Reformat The Date & Time Formats

Dec 1, 2009

I've attached a small sample of an excel file I created from a CSV. The date has defaulted to American format and the time is, as you can see, messy. How can I reformat so that I can have British date format and 24 hour clock?

View 2 Replies View Related

Chart Showing Date Formats

Jul 20, 2012

I have a spreadsheet that has two columns. Column A is a date format and column B has the number of days between both dates over 2 years analysis is =A8-A7.

However when i come to build a chart its all wrong as the dates are following a weekely format, can i adjust this to pick up only the dates that are showing on the cells in column A? also is ther ea way which teh #VALUE! doe snot show?

02/07/2012

14/08/2012
43

00/00/0000
#VALUE!

[Code]...........

View 2 Replies View Related

Date Formats In A Cell Which Also Contains Text

Nov 29, 2013

I need to change the date format in a cell which also contains text.

The full formula is as follows:-
="Report period:
"&TEXT(Control!B9,"dd mmmm yyyy")&" - "&TEXT(Control!B10,"dd mmmm yyyy")

This gives me the following:-
Report period:
01 October 2012 - 30 September 2013

What I would like to have is the following:-

Report period:
1st October 2012 - 30th september 2013

It's only a minor change but I think it looks better. Without a hideously complicated formula, if this is possible using one of the standard cell formats?

View 4 Replies View Related

Macro: European & US Date Formats

Nov 20, 2006

An in-house server spits out a whole lot of dates which I put into Excel and then use the dates for analysis (VBA code). The problem is that Excel is getting confused about the date formats. Sometimes the dates are formatted as dd/mm/yyyy and then the next line can randomly be mm/dd/yyyy. This totally messes up all changes of having data integrity.

View 5 Replies View Related

Excel 2010 :: Converting Hijri Date To Gregorian Date From Another Cell

Apr 19, 2014

I have a spreadsheet where we will be inserting the Arabic Hijri date taken from a Customs document (bayan). On my spreadsheet I'd like to have a column immediately next to the Hijri date that would convert the Hijri date to the Gregorian date so both dates will be visible for our Arabic and Western personnel who will be using the spreadsheet.

I am using Microsoft Excel 2010.

View 3 Replies View Related

SUMIF With Different Date Formats (Google Sheets)

Aug 9, 2014

I have data which is exported from my system which includes the job date and gross profit amount. I want to find the gross profit total for each day based on a matching date. However, the data exported includes the time in the date cell and Google Sheets won't match it. I'd like to avoid using a helper cell if at all possible.

You can see the formula here : [URL] ....

Formula is on the Q column.

View 1 Replies View Related

Date Formats Incorrect When VBA Opens Workbook

Apr 29, 2008

I'm new to VBA so my i'm having alot of problems figuring out simple stuff.

Below is my script and when i run it, the dates turns out incorrect.

I noticed this only happens to dates that are before 13th of each month.

Example,

1st May 2008 ( 01/05/2008)

will turn up as

5th Jan 2008 ( 05/01/2008)

However when i manually open the file Todays trades.csv
The date looks just fine.

Is there some problem with using VBA to call up the file?

View 9 Replies View Related

Retrieving Various Date Formats And Return These Into Cell

Nov 17, 2011

I am trying to find dates & time within text in a cell & return to a separate cell. The issue I have is that the date format varies frequently. I also can't rely on searching for "Sent:" as this also varies frequently

e.g. From: ########
Sent: 17 November 2011 11:57

I would like to return 17/11/2011 11:57

From: #######
Sent: 01/11/2011 11:50:13

I would like to return 01/11/2011 11:50

From: ########
Date: 05/11/2011 09:45:13

How can i search for various forms of dates and return them into a cell?

View 2 Replies View Related

Date Formats Not Picked Up In Pivot Table

May 16, 2012

I have inherited a spreadsheet that I need to update soon. It takes data that has a date field and creates a pivot table by month. The person who created it completed it thru February. Now I have added data for March and April, but the pivot tables can not find this new data and I suspect it is because of the date formatting (I have done the Change Data Source under PivotTable Options to include all the new data).

The reason I suspect the date format is that she built a button to run a macro named "dateformat", which is not in the workbook. I have tired to manually format the date using the format painter from the February dates that the pibvot table recognizes, but I still get no results.

View 4 Replies View Related

Converting Binary Date To Date / Time Format

Jun 9, 2014

I have a list of dates stored via the following :

20100101 how can I convert this to date/time format to show 01/01/2010?

View 4 Replies View Related

Military Date Format Needs Converting To Civilian Date Value

Jun 21, 2013

I have a program that exports the date as 20120621 (4 digit year, 2 digit month, 2 digit day). I have tried =datevalue(cell) but it returns #value!. I have tried =today()-(cell) and it also returns #value!. Is there a formula or something I can do to covert this field to a date?

View 3 Replies View Related

Macro To Convert Date Formats In Two Columns And Compare

Sep 15, 2014

I have two columns containing dates (Date1 and Date2). Date1 is like a long date and Date 2 is a short date. I need a macro to compare these two dates and delete rows where Date1 <> Date2. Please find attached the before and after file which also contains the date formats for these two dates.

View 8 Replies View Related

Converting Text To Date And Sorting On Date

Mar 10, 2014

I am trying to convert a long list of dates from text to date (see A) so that I can sort them from newest to oldest. I've tried converting them using differnt formulas (see B:C) but these don't work.

View 8 Replies View Related

Functions That Depend On More Than One Dummy Variable?

Feb 19, 2014

I'm trying to get the syntax correct, and not getting it right.

I need to calculate the Standard Deviation of values, but calc it based on more than one dummy variable.

EG: I need to Standard Deviation using data in column A, if the value in Column B (same row) is 1, and the value in Column C (again, same row) is 0. Right now, I have to reorder the data and calc it, then copy n paste values. I'd MUCH rather have a longer function so I don't have to reorder the data over and over again, and add and delete rows, etc.

I know it's a nested IF AND function, or I think it is, I just can't seem to get the syntax correct.

View 5 Replies View Related

Link Lists To Depend On Choice From Another

Dec 1, 2006

I am trying to create dependent list based off of what was selected from the first dependent list.

Example ~> I select something from B3 that then drives what C3 says, but now how do I get D3 to be dependent on what was selected in C3?

I have attached my doc that I am working to get this on, can you take a look and point me in the right direction? The lists are on the other sheet,

View 5 Replies View Related

Delete Duplicate Rows Depend On Criteria On Col A And Col B

May 28, 2013

I got 2 sheets one with Employees name in col A number of hours worked in col B. Second sheet is download form time clock which has Name in Col A and Hours worked in Col B and other details in other columns. I want MACRO to delete matching rows depend on Col A and Col B .

View 9 Replies View Related

Make Lists In Combobox (userform) Depend On Each Other

Jan 13, 2009

I have constructed a user form with a set of comboboxes containing a number of choices. However, the different alternatives depend on each other, and instead of having all the choices available in the second combobox I would like to only have the "correct" ones depending on the choice made in the earlier combobox.

For example;
---------------
A-B-C
Car-Blue-USA
Car-Red-USA
Truck-Green-Sweden
Truck-Blue-Sweden

If I choose Car in the first combobox, I would like to only have the choices [Blue, Red] available in the second combobox, not the full set of data [Blue,Red,Green] and so on. However, I have two problems construction this;

1) If I make the rowsource A1-A4 for the first combobox, I get the alternative [Car,Car,Truck,Truck], not [Car,Truck]. It is possible to come around this problem by making a unique list in addition to the linked list showed above, such as;........

View 4 Replies View Related

Cells That Depend On Formulas To Remain Blank

Jun 13, 2009

i am wondering if there is a way that i can have these cells that depend on formulas to remain blank, until i have my data entered, or that they may remain blank, but give me running totals of only the cells i have inputted.

View 3 Replies View Related

Insert Multiple Rows Depend On Cell Value Getting Error

Mar 21, 2014

I am trying to add insert rows using macro.

L column fills with numbers. if L1 value is 5 then below need to insert 5 rows.

I tried below Macro.

But it getting Error.

Sub InsertRowswork1()

Dim LastNumber As Long: LastNumber = ActiveSheet.Range("L" & Rows.Count).End(xlUp).Row
While LastNumber >= 2
If Not IsEmpty(ActiveSheet.Range("L" & LastNumber)) Then

[Code] .....

View 6 Replies View Related

Converting Date Getting #VALUE

Nov 14, 2008

I have an export from a database application in which I have thousands of dates. The dates are not in a date format (normal problem) so I wrote a formula to convert them as follows.

Original Date in A1 : 11/13/2008 This is mm/dd/yyyy

Formula : =VALUE(MID(A1,LEN(A1)-6,2)&"/"&LEFT(A1,LEN(A1)-8)&"/"&RIGHT(A1,4))

Result : 13/11/2008

This seems to work at first, until I looked more closely. If I change the date I am converting so that the date in cell A1 is 11/12/2008, ie. the dd value is less than 13, then the formula no longer works. It is fine for all values over 12.

All I get in these cases is #VALUE!

View 4 Replies View Related







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