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
ADVERTISEMENT
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
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
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
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
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
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
Nov 7, 2008
Say I have a string "09800EBHR052708"
How would I take the first 5 characters and get a number out of them?
View 14 Replies
View Related
Aug 13, 2013
I have a date range that looks like this (British date style, not US):
edit: I posted an image but it can't be seen for some reason:
Date Range
2010 11/10 17/10
2010 11/10 17/10
2010 11/10 17/10
2010 11/10 17/10
Thus the first cell show 11 October 2010 to 17 October 2010 I want to return just the first day (the week commencing date):
edit: I posted an image but it can't be seen for some reason:
Week Commencing
11/10/2010
11/10/2010
11/10/2010
11/10/2010
I have written some VBA to the best of my ability but it seems clumsy using the FORMAT function. Is there a better of doing this with VBA. I can't seem to find a function in VBA which is the equivalent of the formula function DATE.
Code:
Sub ConvertTextToBritStyleDate()
' dd/mm/yyyy (not mm/dd/yyyy)
' Select the cells containing the dates (not the header)
[Code]...
View 3 Replies
View Related
May 18, 2007
I have something like the following:
If Worksheets("RawData"). Cells(1, nColumn).Value = Worksheets("RawData").Cells(12, 16).Value Then
..do code (I know the cell location of interest at this point)
End If
Then I End up needing To Do something Like the following
ActiveChart.SeriesCollection(1).XValues = _
Worksheets("RawData").Range("L1:N1")
“L1:N1” above is a sample. Given the code above it I have the cell location in question but it is in the format such as .Cells(12,16). That doesn’t do me much good when range wants something like “L1”. I don’t know how to convert that (12,16) to a L16 for example.
View 7 Replies
View Related
Sep 28, 2012
Is there a way to convert the string "Sep 28 2012" to excel date format using a formula or vba?
View 8 Replies
View Related
Dec 21, 2013
I was just wondering what is the formula to convert a date serial number back to an actual date?
View 1 Replies
View Related
Oct 4, 2007
I have an 8 character number that I am trying to segment and change into a date.
The current format is: YYYYMMDD, for example 20071003 (today's date)
I am would like to change it to read 10/03/2007 or another easily identifiable date format.
View 3 Replies
View Related
Jan 11, 2013
I have a date in a particular cell, say O5, formatted as mm/dd; e.g. 11/14
I have the following formula in another cell;
=M5 &", Lot# "& N5 &", Expires "& O5, where cell M5 = "CONTROL" and cell N5 = "#####"
Why does the date get converted to a serial number. i.e. CONTROL, Lot# #####, Expires 41592?
My aim is to get the date "11/14" to appear in the cell.
View 1 Replies
View Related
Sep 16, 2009
i have number in database 1 and want to convert as date in database 2
04079219920506
04089219920507
04099219920510
18730120010729
18740120010801
18750120010804
18760120010805
result in database 2
407/9206/05/1992
408/9207/05/1992
408/9210/05/1992
1873/0129/07/2001
1874/0101/08/2001
1875/0104/08/2001
1876/0105/08/2001
is it got any formula to convert this number from database 1 to database 2, so far i has attach sample files..
View 5 Replies
View Related
Apr 6, 2007
I saw the =WEEKNUM function introduced to Dave196. I tried it but I do not get the desired result. I get "# NAME?" What can I be doing wrong? Also, how can I have Excel take a date and convert it to a number? I want to convert a date into an invoice number (eg. 4/5/07 ===> 20070405)
View 2 Replies
View Related
Jan 6, 2014
As the title says I was wanting to convert a date into an alphanumeric number.
After searching around for a long time the closest thread I could find was this one : [URL] ....
I would like to enter the date by dd/mm/yyyy and have it come out to an alphanumeric number.
The alphanumeric number for example would be C21501
Where "C" is the year starting from 2013. So in this case C would be 2015
Next two digits would be the week of that year. So 21 would be in the month of May
The following number would be the day of that week starting from Monday. So in this case 5 would be Friday.
The last two numbers would be the consecutive number for that day. For example two orders could be placed that same day so the first would be C21501 and the next would be C21502.
View 8 Replies
View Related
Nov 14, 2011
I have following in cell A1
122211
This represents 22-Dec -2011. Formula to convert the number in to a date format.
View 3 Replies
View Related
Sep 17, 2006
Wondering if there is a simple and concise way to convert a date into text that represents the day number?
So a cell containing “17/09/2006” simply reads as “Seventeenth”, 18/09/2006 becomes “Eighteenth” and so on...
View 3 Replies
View Related
Dec 9, 2013
how to convert number to data time format:
eg. I have number 20121231230000 and I need its conversion to 31/12/2012 23:00.
I have tried to use fucntion date with left, mid, right but still I do not know how to extract time.
View 2 Replies
View Related
Nov 12, 2009
I have a spreadsheet that I use to convert a purchase order ship date from the actual date to the corresponding week it falls out on. The fiscal year always starts on February 1 regardless of the day of the week. The problem i am encountering is when the year changes. As soon as I enter 01/01/2010, the response I get is -4, where as 12/31/2009 is 48.
I am using the following formula that I found somewhere, where R2 = 02/01/2009 (02/01/2009 falls out on a Sunday). =INT((R2-DATE(YEAR(R2),2,1)-WEEKDAY(R2,1))/7)+2. I need to make the formula "not care about" the day of the week.
View 3 Replies
View Related
May 22, 2012
I have a column (A) with numbers like
0
15
30
45
100
115
130
145
200
215
230
245
300
315
330
345
400 and so on up tp 2345
I need to change this into time as;
00:00
00:15
00:30
00:45
01:00
01:15
01:30
01:45
02:00
and so on up to 23:45
Is there any formula which can do this?
View 4 Replies
View Related
Jun 3, 2013
Down loading data I receive dates as a number that indicates YYMMDD (ex. 130603 is 03 JUN 13). Is there an easy way to convert these number strings to the actual date indicated other than typing it in?
View 5 Replies
View Related
Dec 22, 2007
how to convert date variable to month in running number. the starting date = 1996 Jan =1 and 1996 Feb =2 .... and so on.
as i plan to generate p table report for view more then 12 month data.....
View 9 Replies
View Related
Nov 27, 2007
Quick question:
If I have a serial date, e.g., 37883, in Excel, how can I convert to 092007, using that exact format?
<snip by admin. Read the rules!>
View 4 Replies
View Related
May 8, 2009
I have cells of data with a long string of numbers such as: 20090507225836. Is there any easy way to convert them to date/time format, such as below? 5/7/2009 22:58:36
View 5 Replies
View Related
Jun 20, 2014
I want to use a formula, in another cell, to convert ā€ˇ"Friday, ā€ˇ30 ā€ˇMay ā€ˇ2014, ā€¸ā€ˇ3:47:16 PM" to a value. I am using Excel 2003.
View 2 Replies
View Related
Dec 17, 2011
Is it possible to do the following with a formula in Excel...
I have a list of users with the dates they first logged into a system and the date they last logged in. I'm trying to group them together into segments so I can analyse them using a Pivot table and chart to see how often different groups are using the system, e.g. New customers in December, November, October, etc.
The trouble I am having is trying to convert the different human-readable text strings into a consistent number of weeks from today's date, e.g.
USER FIRST LOGGED IN LAST LOGGED IN
user 1 2 years 20 weeks 54 sec ago
user 2 44 min 7 sec 1 min 37 sec ago
user 3 49 weeks 2 days 17 min 3 sec ago
user 4 5 weeks 2 days 33 min 32 sec ago
user 5 38 min 9 sec 38 min 9 sec ago
user 6 5 weeks 3 days 1 hour 7 min ago
user 7 2 hours 17 min 2 hours 11 min ago
user 8 45 seconds ago 45 seconds ago
Is there a formula I can use to convert these human readble text strings into a number of weeks elapsed since today's date?
View 9 Replies
View Related
Aug 14, 2014
Wondering if it is possible to generate a random 4 digit number based off an alphanumeric string?
Example;
Cell A1 has 123XVF1234
Cell A2 has 321AFW4321
In B1 I would like to have a 4-6 digit number that is generated based on the alphanumeric data in Cell A1 (and so on down the list). If that is possible, I would also need to be able to convert back the 4-6 digit number back to its original alphanumeric value
Example;
If B1 returns 643562 it would need to be able to be converted back to 123XVF1234
View 7 Replies
View Related
Apr 7, 2014
In sheet1 I have a simple database consisting of 5 columns of data
Column A : Name ie James Jones
Column B : payroll number ie 123456
Column C : shift times ie 1245-2124
Column D : job title ie floor
Column E : comments ie A/L or 0600-1500
what I would like is some code that will go down Column E and if a 'time string' ie 1300-2130 is found then copy this string and paste into corresponding value in column C. If a text string is found ie A/L or Sick or anything like this then ignore and move onto next cell, loop this until all cells in column E have been checked.
View 4 Replies
View Related