String & Date Data

May 12, 2007

I have two variables 1st is a ETD (Estimated Time of Departure), ie 0510 which is string. 2nd is a KRT (Kitchen Ready Time), ie 03:00 which is date, time.

I need to put these two items in a cell as string, ie 0510 03:00

I tried .cells(rowindex, column) = me.etd & " " & me.krt
and I get 0510 0.1223243

then I tried

I tried .cells(rowindex, column) = me.etd & " " & format(me.krt,"hh:nn")
and I get compile error: expected function or varible

So how do I set the KRT to "hh:nn" and combine it with the string ETD to show 0510 03:00

View 9 Replies


ADVERTISEMENT

Serial Date Conversion To Semi String Data

May 6, 2006

I need this: 38842.8287152778 to be converted into 05052006_075321PM. This is the date for May 5th 2006 @ 7:53:21 pm in VBA. How do i get there from 38842.8287152778?

View 9 Replies View Related

Convert And Format Date Time String To True Date Value

Oct 19, 2012

I have a spread sheet with a date colume that reads: 2012-06-27-19 I need to have this read like 06/27/2012 but nothing I do is working I have tried to go to the formatting process and backing the hr:mm out and that doesn't work. I really don't want to go line by line to manually correct this issue.. HENCE ... over 2000 lines

Second question: If I have a column that reads 02/15/2012 and another column that reads 3/27/2012 how to a format a 3rd column to make it read total number of days between 1st date and 2nd date?

View 1 Replies View Related

How To Convert Date (text String) Into Date Format

Jan 17, 2012

I have these as input entered as text:

January 01, 2011 January 01, 2011 February 28, 2010 May 12, 2011 June 02, 2010 February 28, 2010 May 12, 2011 June 02, 2010 February 28, 2010

but I need it in this DATE format:

MM/DD/YYYY

I need it as a formula to be entered into a cell in excel (not VBA)

View 9 Replies View Related

Extracting Last Date From String

Apr 21, 2014

I have been trying to extract dates from strings.

The formula I have currently works however I've found that sometimes there are two or more dates in the string (at which point I'd like to extract the last date (appointment date)).

View 2 Replies View Related

Extract Date Only From String

Jul 2, 2010

What I want to do is extract the date only from a string of text in a cell and put it in the cell next to it. The date is not alway in the same position within the text string and although similiar, the text string can differ. There are around 6000 lines in the sheet, I've pasted 4 as an example below.

THE BIG COMPANY LTD 15312178 COLLECTION 14.12.09
The Small Company Ltd 19073864 COLLECTION
DATE 17/05/10 511438 511437 511436 ORD LE
The Medium Size Company 19080948 COLLECTING WEDS 26/05/10
The Very Good Company 19149554 COLL DATE:28.06.2010 175 PEA PARK ROAD Z7 9AB

View 9 Replies View Related

How To Extract Date From String

Jul 17, 2013

I want to extract date from string My dates are going to increase every 9 days. as you can see in table given bellow. And goes till Wk52

Wk1-> 02-Jan-11
02-Jan-11
Wk2-> 09-Jan-11
09-Jan-11
Wk3-> 16-Jan-11
16-Jan-11
Wk4-> 23-Jan-11
23-Jan-11
Wk5-> 30-Jan-11
30-Jan-11

View 2 Replies View Related

Convert String To Date

Aug 2, 2013

I have a field in the format of 121031. I need a formula to convert this field to a date DD/MM/YYYY format, so 121031 becomes 31/10/2012.

View 9 Replies View Related

Concatenate String And Date...

Apr 12, 2007

when i concatenate two cells (the word "excel" and today's date), i get
excel 39183...? i would like: excel 4/11/2007

View 2 Replies View Related

Reformat Date String In Vba

Jul 3, 2007

I m trying to use a variable that is declared as a range in a formula. GroupCategory is the name of the sheet its getting the data from. I want to use myRange instead of actually putting in the range. I know there's something wrong where I highlighted in red.

Sub AAmacro()
Dim myRange As range
Lastrow = Cells(Rows.Count, 1).End(xlUp).Row
Set myRange = Range(Cells(2, 1), Cells(Lastrow - 1, 1))
Sheets("sheet1").Select
Range("L2").Formula = "= SUM(INDEX(GroupCategory '!' & myRange,,MATCH(C1,GroupCategory!$A$1:$ AI$1,0)))"
End Sub

View 4 Replies View Related

Extract Date And Time From A String

Feb 19, 2014

I have this data & would like to extract the date in dd/mm/yy and the time stamp separately to use in some calcs.

Jan 10, 2014 4:47 AM
Jan 10, 2014 4:47 AM
Jan 14, 2014 4:30 PM
Jan 15, 2014 4:00 PM
Jan 16, 2014 5:01 PM

View 10 Replies View Related

String Of Dates Convert To From And To Date

Mar 12, 2014

I have a spreadsheet with reference relating to dates that are listed as single days. I am trying to convert the single dates relating to a reference to a from and to date but i'm having problems.

Example

048051_14110/09/2013
048051_14111/09/2013
048051_14112/09/2013
048051_14113/09/2013
041929_14115/10/2013
041929_14116/10/2013
041929_14117/10/2013
041929_14118/10/2013

I want this to read

048051_141from - 10/09/2013 - to - 13/09/2013
041929_141from - 15/10/2013 - to -18/10/2013

View 1 Replies View Related

String And Today Date In The Same Cell

Mar 21, 2014

I'm looking to combine today's date and a string in the same cell. This is what i've come up with:

The problem is that this gives today's date in a numerical value rather than in "short date" form like I want. If i format the cell as a date it doesn't change anything.

Whatever the method, for what I'm doing it has to take place in on single cell.

View 4 Replies View Related

Extracting A Date From A Text String

Sep 22, 2009

I have a column of data in the following format:

261D 31/12/2008

There is also a single space after the end of the date.

Can someone please show me a formula to extract the date from each cell in the column? This is slightly complicated by the fact that the number of days (“D”) could consist of 1, 2, 3 or 4 characters, and the date could also be of variable length (e.g. 1/1/2008 vs 31/05/2008)

View 6 Replies View Related

Vlookup Formula With Date String

Sep 22, 2009

i have attached an example to illustrate the data source and result expected.

View 3 Replies View Related

String If Text Insert Date

Feb 11, 2010

I am trying to setup a variable from a dropdown selection box. Basically, If "Completed" is selected in the box, current date is set in the corresponding field.

The formula I have tried is:
=IF(F5="Completed",G5="",G5=NOW())

I have a variable string setup opposite of what I am going for that works:
=IF(AND(D5<>"Assigned",D5<>""),IF(E5="",NOW(),E5),"")

So if anything is showing other than assigned the date is input. But have not been able to reverse this for the desired output.

View 2 Replies View Related

Converting String To Date With DateValue?

Mar 9, 2014

I am trying to check my sheet names to see if they convert to a valid date format. If it doesn't, then I want it to check for the next criteria (ex - if it equals "Page2"). With the code below I keep getting an error of type mismatch. Code is below.

[Code] ......

View 7 Replies View Related

Converting A String To A Numeric Date

Jul 13, 2009

I need to be able to locate a date in a spreadsheet bassed uppon a user input date. I am looking for the week that contains the user's date. However it seems even if I initialize the value as Date, it still reads the user's input as a string.

Is there an easy way make sure the system automaticaly recognizes the user's input as a date, or is there a way to quicly convert the string to a date?

View 9 Replies View Related

Dates As String Displayed As US And UK Date

Aug 5, 2009

I am currently having a very painful problem with dates.

Currently I assign a value which happens to be a date to a string.

View 11 Replies View Related

Convert Text String To A Date?

Aug 23, 2009

My database has 6 fields names and I have created the following code to capture and post data to the database form a userform. It works but I am sure there is a more efficient and elegant way to do this. The two areas I would like advice are:
1. converting the date string to a date.
2. the line of code where I subtract line6 from line4.

View 3 Replies View Related

Extract Date From Long String?

May 15, 2012

I've got a string of text (that can vary in length) and contains a date (could be any month)..
I'm trying to extract the date from the string using VBA.

For example, the string may be:

"The following price of the service is effective until July 1, 2012 and may change whenever"

I need to first determine if the string has a date in it and then extract the date....

I did a search on mrexcel.com and found the following formula that will tell me if the text has a date (returns true/false)...however, i'm not sure how to use this in VBA nor how to find location of date....

=SUMPRODUCT(COUNTIF(B1,"*"&N73:N84&"*"))>0

B1 contains the text, N1:N12 contain the name of the months....

View 9 Replies View Related

Convert String Number To Date?

May 3, 2013

The following function reads many worksheets in one workbook and put the information into one worksheet. F22 to Q22 is dates in the format of mmm-yy on the many worksheets. On the one worksheet B1, C1, D1, etc... is dates also formatted mmm-yy. Now the many sheets only have a 12 month period but could be any date within 60 months. In the many worksheets the beginning date in F22 is based on the date that is entered into G8 of the many worksheets. The function is:

Code:
Function HrsByMonth(strField As String, MonthNum As Integer) As Long
Dim sht As Worksheet, i As Long, j As Integer
HrsByMonth = 0

[Code].....

View 6 Replies View Related

Extract String Getting Date Format?

Jan 12, 2014

I need formula to extract my data to date format...

see this below :

col.a
expected result
Jakarta, 21 Mei 2005
21 Mei 2005
Bangkok, 11 Agustus 1994
11 Agustus 1994

View 2 Replies View Related

Convert Number String To Date

Dec 18, 2009

I am trying to convert a number string date that has been stored in a database to a readable date time in an excel pivot table.

1260983366 needs to look like Wednesday, December 16, 2009, 10:09 AM.

The converted date could also look like Wed, Dec 16, 09, 10:09 AM.

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

Storing Result Of Concatenation Of String And Date And Using It

Feb 18, 2013

I have two cells. One of which contains a String and other contains a date value. I need to concatenate both and use it as a key for vlookup function.

Cells(x,y)= "=VLOOKUP($B7&TEXT($F6,"mm/dd/yyyy"),'Copy Data'!H2:J161,2,FALSE)"
OR
Cells(x,y)= "=VLOOKUP(CONCATENATION($B7&TEXT($F6,"mm/dd/yyyy")),'Copy Data'!H2:J161,2,FALSE)"

In my resultant cell formula looks like =VLOOKUP($B7&TEXT($F6,"mm/dd/yyyy"),'Data'!H2:J161,2,FALSE) itself and the expected result is not achieved.

Eg: B7=04152AB F6=21/12/2010 I need to merge both values and use it in vlookup for finding match from another sheet named 'Data'

View 2 Replies View Related

Creating Date Of Manufacture From Lot Code String

Dec 9, 2013

Is there a formula that can be used to convert a manufacturing LOT Number to a Date? For example, the first six digits of our Lot Number are the MMDDYY followed by an item description (120913DKP-01). We are trying to pull the 120913 portion out of the lot number to equal a Date of Manufacture of December 9, 2013.

View 4 Replies View Related

Display Test String Depending On Date

Mar 31, 2009

I need a forumla that will dispay a set text message in a cell based on the date in another cell.

I need cell A1 to display the text message "Forwards Booking Date, No Action Required" Where cell A2 has a date entered in it that is the same as todays date or greater - i.e. in the future.

And if the date is in the past for no text message to appear.

View 9 Replies View Related

Changing Date Format In A Text String?

Jun 18, 2014

So I'm just a lowly intern who has been given the task of changing date formats in a bunch of spreadsheets. The string is as follows:

1015 Dixon Schwabl Est. for Creative Svcs 101207.pdf

I have to change the date at the end (mmddyy) so it reads as yyyymmdd. There is a long column of these strings, and i have to do it on over 300 spreadsheeys.

View 3 Replies View Related

Find Date String And Paste Into Different Column But Same Row

Feb 5, 2014

I have a report where I would like to have a macro search for a date string in columns N-S and copy the date to Column C, same row. The number of rows will vary from day to day. I would then like to format all of Column C to 'mm/dd/yyyy'.

Attached is a file where the date string is included in Column N on row 2 and Column O on the row 3. The dates for both these lines would need to be copied and pasted to their respective rows in Column C.

View 14 Replies View Related







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