Time Code Data Formatting
Oct 16, 2006
I am working on some data cleanup for some video. I have a lot of time code data, ie. mm:ss (minutes; seconds), and I need to convert it to hh:mm:ss:ff (hhi is hours; ff is frames). It's A LOT of data, and I don't want to do it by hand.
Examples:
2:02
0:55
2:18
2:55
1:41
1:20
1:44
I have two quesxtion:
1. Excel wants to interpret my data as time data and will convert my data if I click on a cell, ie. 2:02 is converted to 2:02:00 AM. That might not be so bad, but sometimes it changes a time that is 00:55 to 12:55:00. So, my first question is...how do I make excel read the numbers exactly as is w/o any conversion? I've tried to mark the cells as Text but that doesn't work, and I can't seem to make a Custom format work. Any ideas?
2. Ideally, I'd like to quickly convert these timecodes to hh:mm:ss:ff. Would macro work on this? So, I'd be taking 2:02 and making it 00:02:02:00. I think I need to solve #1 before I tackle #2, but i could be wrong.
View 10 Replies
ADVERTISEMENT
Apr 14, 2006
I have been given a project to develop a spreadsheet using excel that will take data that is for a whole month, and evaluate by DAY to see if the same doctor was listed as attending two patients in surgery at the same time. If the Doctor's name is the same for two patients within the same timewindow for a certain day, a code is applied to EACH RECORD that the doctor was attending in the code field. If there was NO DUPLICATE patient, a different code is applied in the code field.
The tricky thing about this is:
1) Number of records will vary month-to-month
2) There could be 1-xx patient records where the same doctor is listed and there is overlapping time in the SAME DAY OF THE MONTH.
3) The code applied to multiple patients in the code field applies even if the minutes of overlap = 1 minute.
4) Start/End times and length of the patient visits will vary. (Example - Dr. Jones has two patients on the 15th of the month. The start time for patient 1 is 9:00am and ends at 10:15am. The second patient's start time is 9:30am and end time of 11:00am. Under this situation, the multiple patient code would apply)
Does anyone have any experience evaluating by date, then within a time-window to check for record overlap (doctor name in this case)? There could be 200-1500 records per month, and 100/day to evaluate for overlapping.
View 8 Replies
View Related
Apr 28, 2014
I need a VBA macro code to get the output like in the excel file which I have attached with this thread. Which means, I need to group the data for every two hours. in the output I need all 4 cols namely A, B, C, D along with extra col namely, interval based on which I need these groupings to be done..
The code has to be really flexible so that it works for all dates and times in the files. Because like this I have to do for 2000 files.....
Original link: [URL] .....
plant area.xlsx
View 3 Replies
View Related
Mar 4, 2010
I havet he following code which sorts data. If there is no data to sort I keep on getting a run time error. Could I add something to my code to prevent the run-time error, as sometime there won't be any data to sort. The code runs when I switch to the worksheet in question.
Sub SortMeetings()
Dim iCTR As Integer
Dim yCTR As Integer
Dim zCTR As Integer
zCTR = 11
For iCTR = 12 To 23
For yCTR = 1 To 10
If Len(Range("D" & iCTR).Offset(0, yCTR)) 0 Then
Range("AA" & zCTR).Value = Format(Range("D" & iCTR).Offset(0, yCTR), "HH:MM") & " " & Range("D" & iCTR).Value
zCTR = zCTR + 1
End If
Next yCTR
Next iCTR
Range("AA11:AA" & zCTR).Select
Selection.Sort Key1:=Range("AA11"), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
End Sub
View 9 Replies
View Related
Oct 15, 2009
I have a calculation whereby I use two variables which are 1. Man hours left in the week formatted as [hh] and 2. Amount of work left to do in the week formatted as 0" Man Hrs" I need to carry out a calc which says:- Man hours left in the week - Amount of work left to do in the week.
The answer should tell me if I have a deficit or surplus of hours which can then use for planning purposes. Unfortunately the problem I have is that I can't make the formatting the same for both unless someone knows of a workaround.
Man hours left in the week = 128. Man hours required to complete all work this week = 224. Therefore I need to say 128-224 = -96. However when I do this this an answer of 16 is returned.
View 5 Replies
View Related
Jul 16, 2013
I have an Excel report I have to generate. I need "Call Back" (F3) to show highlighted in red if time value of (F3) is = to or greater than 4 hrs. of "Time Reported" (C3) and highlighted in green if value is before 4 hrs. Also "Arrival Time" (G3) needs to be highlighted green if within 24 hrs. of "Time Reported" (C3) and highlighted red if after 24 hrs. of "Time Reported" (C3).
View 7 Replies
View Related
May 28, 2009
Hears a quick question..
Is there away in VB that a cell can be automatically set to time
What i mean at the moment when i need to type in a time i have to type it in as follows 10:00 ( the cell is formatted to time)
What i was wondering is there a way of programming in VB so that when the user types in 1645 it automatically changes it to 16:45
View 10 Replies
View Related
Jun 2, 2009
I am trying to track how long a macro takes to run from start to end.
View 4 Replies
View Related
Sep 18, 2009
i have a cell with a date in it, e.g. 18/09/09 is there anyway that i can ask excel 2007 to look at the cell and simply return the month into an adjacent cell, so in this case September.
A1 B1
Date Month
18/09/09 September
View 9 Replies
View Related
Jan 29, 2014
I would like cells to highlight within a row only if they are non-blank and if other non-blank cells in that row fall within the same time range.
See the attached example for what I'm looking to do. I can setup my sheet one of two ways (as shown) if it makes finding a solution easier.
Conditional Formatting - Overlapping time.xlsx
View 2 Replies
View Related
Apr 24, 2009
Excel 2000. I am having a little problem getting the list of numbers detailed below to turn red if Negative and Green if positive, (0:00 to stay blank). These numbers will changed between a maximum of 120:00hrs and -120:00hrs....
View 2 Replies
View Related
Jul 21, 2009
I'm trying to use conditional formatting to highlight phone calls that came in between certain hours.
The call times are in the custom format h:mm, although it could easily be changed to an Excel time format. I'm using Excel 2002. I want the cell to have a different fill color if it falls within particular time frames.
Example:
If the call came in between 22:00 and 23:59 color is light green.
If the call came in between 23:59 and 08:00 the color is yellow.
Example spreadsheet is attached.
View 7 Replies
View Related
Sep 5, 2013
formatting the date and time together in one cell. I copy the date and time from another program and I'm pasting it into a single cell within Excell. This is was the date and time looks like from the other program. 2013-09-03 03:20:30.0 I need it to look like this in Excel in a single cell. September 3, 2013 3:20 AM
View 4 Replies
View Related
Jul 22, 2014
I have a timesheet, with a custom format of [h].mm. In my userform, I have a textbox which I would like to use to enter a time in, but when I run the macro, the time shows up correctly (such as 0.12 for 12 minutes), but it is still calculating as text. I've tried all the various codes I have found throughout the board but nothing has worked so far. I can get as far as making 0.12 minutes show as 12.12.00 AM, but then it shows the whole time instead of the 0.12 which the cell is formatted to do and does not calculate it at the bottom where I grab all the times from that column.
View 1 Replies
View Related
Feb 20, 2014
I have a mapping program that uploads data with the date and time but when it exports it the time is converted to just a number string, e.g. 15:12:37 becomes 151237000. Is there way to eliminate the last three zeros and insert a ":" between the second and third, and fourth and fifth characters?
View 8 Replies
View Related
Jul 16, 2007
It seems that time (i.e. -1:00) will be default as #########, etc. This makes me very unhappy. How to get around?
I could be fine with converting time to a total in seconds (i.e. 1:00 converted to 60 seconds)... but I'm not sure what kind of formula could do that.
View 9 Replies
View Related
Nov 29, 2013
How to set a column up to show it as the time of day but unless I enter PM after I put the time in the column it always comes up as AM.
Is there some way to just enter 9:09 in column d and or f and have it show up as pm? When I enter 8:10 in column b it automatically adds the AM to it but if I do the same in the column for the night and I do not type in pm it will automatically enter it as am.
I have attached the workbook and did delete the macro - which was just to clear all of my entries but when I click to open it again I am still getting the message about the macro.
In the workbook when I enter the time in column B I can just type in 7:14 and it will automatically add the AM to it. However, when I get to column D or F if I just type in 9:09 or whatever time it is in the evening it will automatically add AM to it unless I type 9:09 pm.
Is there some way to set it up so that I can just enter the time and it will automatically enter pm for everything in that column?
2013 sugar logs.xls
View 9 Replies
View Related
Feb 3, 2014
How to use conditional formatting to show a certain criteria. I need to know if an event happens between 07:30 and 16:30, I can work this out so that the cells show in green. I cannot solve the problem of formatting in red if the time is after 16:30 but before 07:30.
=IF($E3>=$P$3,IF($E3<$Q$3,TRUE,FALSE))
P3 = 07:30 and Q3 = 16:30
View 4 Replies
View Related
Feb 13, 2009
I'm not sure how this could be done though i'm pretty sure its going to require some VBA instead of conditional formatting. I would like cell B2 to have background colour red for 10 seconds after cell A1 is edited. So every time A1 is edited B2 will change colour for 10 seconds and then back to original formating.
View 4 Replies
View Related
Nov 2, 2011
Is it possible to perform conditional formatting on numerous worksheets at one time. I have about 50 worksheets that I would like to perform the same conditional format on. Is there a way to do this.
View 5 Replies
View Related
Nov 8, 2012
ColB is a time of day in 4 digits ****
I need it to be **:**
How do I get the colon in the middle?
View 1 Replies
View Related
Nov 29, 2012
I am trying to get conditional formatting to work on this problem but I am getting nowhere fast,
In A1 I have a start date, I want B1 to turn Green if A1 is less that 1 year old, C1 to turn Yellow if A1 is between 1 - 3 years old and D1 to turn red if A1 is more then 3 years old.
View 1 Replies
View Related
Jul 27, 2006
I would like to use Conditional Formatting to format a cell depending whether it past a certain time, such as 3:45 PM. Naturally, entering the time as the condition does not work. Is there a way to do this?
View 5 Replies
View Related
Jan 29, 2008
I have written some code which takes data from multiple spreasheets and formats it in a specif way. However one problem I have is getting the right data format. As you will see from the input files the date and time cells are separated into two and the macro is supposed to aggregate these together in one cell with a space in between - but I cannot manage to perfect this !!! The output is in a number format instead. I have attached the input files. The code written so far is as follows - works perfectly apart from date format that comes is in the output file once you run the code.
Dim Obj1 As Object
Dim Obj2 As Object
Dim UserList()
Sub RunMe()
Dim Str1 As String
Dim myPath As String
Dim i As Integer
Set Obj1 = CreateObject("excel.application")
myPath = "C:Test" 'please note you should a "" at the end.
Str1 = Dir(myPath & "*.xls")
Set Obj2 = CreateObject("excel.application")
Do
Obj1.Application.DisplayAlerts = False
Obj1.Workbooks.Open (myPath & Str1)
'For i = 1 To UBound(userslist).............
View 6 Replies
View Related
Nov 26, 2013
Attached is a workbook. I have manually highlighted the cells to give idea of what I would like the outcome to be.
Moonah OPS sheet.
In Row 5(Shift times), under the drop down menu in cells B5:J5, there is a range of Shift times.
And for the purpose of this I have selected
B5 as 0800:1621, manually highlighted B11:B27
C5 as 06:00, manually highlighted C7:C24
D5 as 07:00:1521, manually highlighted B11:B27
E5:I55(RDO, REC, SICK, Travel) can remain as manual input if it is to much to work out.
Is it possible or just a pipe dream, to use some method to automatically highlight a range of cells based on the C5:J5 'time'?
If the time is an actual shift time, the colour will be green and dark green writing as default, then we can allocate jobs/training/meetings and manually colour them.
Daysheet DAY MONTH YEAR template - Highlight.xlsx
View 7 Replies
View Related
May 3, 2013
I am looking for a macros VBA where a user insert or update a data the date and time should be insert in column I and save the workbook.
Note: If the column I already have the date and time inserted before then it should give message record already have date and time.
I am using office 2010.
View 9 Replies
View Related
Jun 26, 2014
I need to adjust the attached code as follows;
The data in cell E10 is a date derived from the formula
=IF($C$2<>"",IF(E10="",NOW(),E10),"")
It is a time stamp and works fine. My issue is when I copy and paste the data I am getting the date and time. I just need the date copied not the time. I currently just go in to the date and delete the time from the entry but need to refine the process. Cell E10 is the only issue in the current setup.
View 6 Replies
View Related
Jan 4, 2007
Is there a format or a macro that I can use to change a nine digit zip code into a five digit zipcode. Below is what I have in each cell.
Carolina Clinical Research, Inc.
Suite 606-B
2990 Bethesda Place
Winston-Salem, NC 27103-3315
View 9 Replies
View Related
Jun 30, 2006
Using conditional formatting, I set the font color to Green for Cell G12
=IF( SUM(G12) > C28,SUM(G12),""). This worked. However I needed 6 conditions for this formatting. Excel only allows for 3 conditions. My VBA code is not working. Can someone tell me the correct code?
For cells "G12,O12,G23,O23" I want the font colors to change if their value is
1. greater than or equal to Cell C28 (change to green font)
2. greater than or equal to Cell C29 (change to orange font)
3. greater than or equal to Cell C30 (change to brown font)
4. greater than or equal to Cell D28 (change to green font)
5. greater than or equal to Cell D29 (change to orange font)
6. greater than or equal to Cell D30 (change to brown font)
It is set so that if a value is enter in C28, D28 will have a zero value. Can only use one or the other. Likewise if C29 has a value, D29 will be zero and cannot be used.
The code I used was:.............
View 2 Replies
View Related
Aug 1, 2014
I am using the following formula on Excel 2010 in conditional formatting
=$D5=VLOOKUP($B5,'Approved Master OLD'!$B:$BC,3,0)=FALSE
However I am trying to apply this to a whole column but the numbers are not (D5,B5) moving down (to D6,B6), When I use the format painter it is taking too long as I can only merge conditional formatting on one cell at a time and I have 30 colums and 390 rows to apply this formatting to.
View 1 Replies
View Related