Formula To Combine Date And Time

Aug 23, 2012

Is there a formula that can be used to combine a date and a time that will be formatted correctly?

For example if I have the following values:

A1: 08/03/12 (Date)
A2: 16:45:39 (Time)

And then I want A3 to be 08/03/12 16:45:39 as the Date/Time. Can this be done with a formula?

View 2 Replies


ADVERTISEMENT

How To Combine Date And Time In A Cell

Feb 25, 2013

i want to creat a sheet doing the following

enter the phone numer in cell a1
enter the phone break down hour in cell a2
enter the phone break down date in cell a3
combine the cell a2 & cell a3 in cell a 4
enter the phone fixed hour in cell a5
enter the cell fixed date in cell a6

combine the a5&a6 in cell a7 subtract a7-a4 and show the result in hours

View 2 Replies View Related

Date/Time Formula: Pick Up A Date With Time Entry On A Worksheet And Place It Into A TextBox On A UserForm

Jun 17, 2006

I am attempting to pick up a date with time entry on a worksheet and place it into a TextBox on a UserForm. Format on the sheet is mm/dd/yyyy h:mm AM/PM. The UserForm is placing the value as mm/dd/yyyy 12:00 AM. here is the

Private Sub UserForm_Initialize()
If Not Range("dDate").Value = "" Then
TextBox2.Value = Range("dDate").Value
TextBox2.Text = Format(DateValue(TextBox2.Text), "mm/dd/yy h:mm AM/PM")
Else
TextBox2.Value = ""
TextBox2.SetFocus
End If
End Sub


"dDate" is the named range where the date is sitting. The format is also set on the TextBox2 exit event. Can anyone see why only the date portion is being transfered with the default 12:00 AM for no time component of the value?

View 3 Replies View Related

Formula For If Date And Time Are Between X And Y

Feb 27, 2014

Cell C2 has the date - "3/03/2014"
Cell F2 has the time - "12:43 AM"

I have combined these in cell O2 - "3/03/14 0:43"

In another sheet 'ref' I have the days split in to two shifts (two 12 hour shifts - from 6am to 6pm (L2), and 6pm to 6am (M2), and the shift that the date falls on is in N2.

So if C2 = "3/03/2014" & F2 = "12:43 AM", it falls between 2/03/2014 6pm and 3/03/2014 6am, then I want to return the third columns value (which shift it is) in the ref sheet. I think this requires Vlookup.

View 4 Replies View Related

A Time And Date Formula

Apr 21, 2009

I have a centralized document that myself and my co-workers use. I would like to insert a date formula that upon opening the "Main" document displays the current date (that is no problem). The catch is, when myself or my co-workers make a change to that document, and "save as" I would like that date to stick (no longer display the current date, but the date in which it was "saved as").

View 12 Replies View Related

Date & Time Formula.....

Feb 10, 2010

I have an excel sheet which connects to an SQL database, one of the colums (A) is the date & time for a particular event. I would like to calculate in another cell the difference between the current date and time and the date & time in column A in minutes.

View 3 Replies View Related

Date/time Formula

Oct 11, 2007

Does anyone have a formula (or formulae) for working out the following:

Don't hesitate to ask me more details, or contact me on MSN...

I have a worksheet with one column showing date and time, in HH:MM (North American Format) and a second column showing temperature readings taken every 15 minutes.

What I am trying to calculate is the total amount of time (in HH:MM) that the temperature was equal to or below a certain threshold.

I have seen some formulaes for calculating elapsed time, but nothing which can account for this variable.

View 14 Replies View Related

Formula That Matches Date And Time

Apr 4, 2014

I am creating a formula that matches a particular date with a particular time. All of the dates that have 14:00 (2:00 PM) next to them should be listed from oldest date to newest date. The workbook where the formula needs to be entered contains data that is constantly shifting and updating so the formula has to be based upon the 14:00 (2:00 PM) and not the number of rows because the 14:00 (2:00 PM) row won't always be in the same place.

See the attached spreadsheet for a better explanation. There are two examples of what I need on one sheet to give an example of how the data can shift. Also, the weekend is not included in the data so the dates skip days during that period.

View 5 Replies View Related

Formula For Working Out Top X Of Date Time Difference

Feb 24, 2014

1.The attached file shows an example extract of a data extract that has thousands of lines. See the Data Tab.
2.What I need is some time that has passed between two dates in a DDHHMM format
3.What I then need is the top 50 of each of the times (or the longest time past)
4.The column headers will be: WO Number | Contractor Name | Time Calculation – see the various Report tabs
5.The calculations in the Data tab are between the following columns.
a.Difference between Column Z and Column AC
b.Difference between Column AC and Column AD
c.Difference between Column AD and Column AE
d.Difference between Column AE and Column AF
6.Is it possible to show the top 50 only in time?

This report is forming a part of a larger report and all other formulas are already present so I am hoping to keep the file size quite small. The aim is to then hand this over to someone else to just print on a monthly basis depending on the data that gets added with minimum input.

View 2 Replies View Related

Date/calculate Elapsed Time Formula

Feb 16, 2010

I have been asked to make some ammendements to a workbook currently in use.

I have to calculate elapsed time, and my formula is giving me odd results. I have a start time (cell B5), and an end time (cell F5). The formula being used was =IF(F5>0,((F5-B5)*24)) which gave the correct result. The cell is formatted as general. It didn't alot for the situation where the end time has not happened yet.

I changed the formula to =IF(F5>0,((F5-B5)*24),(K5-B5)*24) where cell K5 is the current time. The results are coming out with 6 - 9 decimal places. It makes no sense as I've tried setting the times to be exactly 24 or 48 hours to the minute. I've also tried replacing K5 in the formula to now(),

View 12 Replies View Related

How To Populate Static Date And Time Using Formula

Nov 29, 2012

what type of vba code I could use to populate a static date and time that I could plug into a formula. Basically what I need is:

IF A1<>"" then L1 shows the date and time of the entry. If A1="" then L1 remains blank. I don't want the date to change once it has been entered.

View 7 Replies View Related

Formula Result Which Is Fixed After A Certain Date/time

May 21, 2007

way to get a formula result to freeze or remain unchanged AFTER a certain time?

I tried using a macro which runs when the file is opened and does a crude 'copy/paste values' operation and replaces the Formula results with their values, but its is not very 'nice'!

I need a table to change a pattern of values but not in the past, but still to remember what that value was....!

View 9 Replies View Related

IF Then, Two Criteria, Date/Time Range Formula

Jun 14, 2007

I am having a hard time with this formula. How can I adjust my formula so that everything that falls outside the boundries of my given date range will have the word "DELETE" next to it? Here is what I have and it is not working....

View 9 Replies View Related

Formula For Date And Time Difference Using 8am-5pm Work Hours

Oct 22, 2008

I need to enter a formula that calculates the time a report is received from the time it was recorded in our database. therefore, it needs to exclude non working hours. here are the fields:

A1 2008/10/10 16:30
B1 2008/10/11 09:30
C1 8:00
D1 17:00

A1 = report received
B1 = reported recorded in db
C1 = work day start time
D1 work day end time

Where the answer should = 2 hours.

I am not an experienced excel user and so far the only formula I have now is: =TEXT(B1-A1, "d:hh:mm")

And how do I account for weekends?

View 9 Replies View Related

Combine Text & Date. Retain Date Format

Nov 8, 2006

Date:31-Oct-06 (the date is in cell A3)

Formula: "as at"& " "&A3

Result: as at 39021

I need the results to be "as at 31-Oct-06". Is there a formula for this??

View 2 Replies View Related

Convert Imported Date / Time Data To Date / Time Format?

Jan 2, 2013

I have loaded a .csv file in which the first column contains date/times, e.g. 01/12/2012 00:00. How do I now tell Excel (2010) that this is in fact a date/time format? If I select one or more of the cells, click on the Number dialog box launcher and try to pick a suitable format tghe cells resolutely refuse to budge from being text (i.e. left-justified, still allows me to edit the 'seconds' component to a number > 60). Also which data type should I be using? The only one that appears to have a full date/time format listed is Custom (not Date or Time).

View 4 Replies View Related

Date Calculation Formula - Determine Longer Period Of Time

Aug 9, 2012

How to create a formula to determine the longer period of time between two date calculations and enter the longer period of time in the cell.

My Spreadsheet:
Cell M2: Birthdate (entered in cell as 11/1/2004)
Cell J2: Last date of service (entered in cell as 10/31/2011)
Cell G2: Calculation to enter the longer period of time between (M2 (year) + 21) and (J2 (year) + 7)

Example using information from above:
2004 + 21 = 2025
2011 + 7 = 2018
2025 is the result I want added to G2

If there is any way to include the month/year in G2 that would be ideal.

View 6 Replies View Related

Combine Time Scattered In Different Columns?

Mar 9, 2014

I need to combine the time scattered in different columns and align them daywise.

View 3 Replies View Related

Combine Data And Time Into 1 Column?

Sep 28, 2012

what the easiest way is to combine date and time into one column. Concatenate? What format do you give the combined date and time column after you group them? Below is what I need to do:

Date Time Combined_Date_Time
01/01/2008 06:05:42 01/01/2009 06:05:42

View 1 Replies View Related

Subtract A Static Date And Time From The Current Date And Time

Oct 24, 2007

I have a column of values resulting from subtracting a static date and time from the current date and time.

This means it is constantly updating, which makes it impossible to sort.

All my work depends on sorting those values, though.

View 12 Replies View Related

Converting Text Date And Time To Serial Date And Time

Feb 21, 2013

I import data from a program that exports dates and times as text. I have been successful using "text to columns" to separate the time from the date and then using =text(A1,"00:00")+0 to get the time to show as serial time but I'd love to be able to do the whole date/time string in one step. In cell A1 there is data that is general format and is in this format:

01/01/13 00001

No matter how you try to format it, it is not a date or time. For this project I need the serial number for the date/time. Any formula that will format it as date/time and then allow it to show as a serial date/time?

View 3 Replies View Related

Convert Date & Time As Text To Real Date & Time

Apr 22, 2008

I have 04/02/08 12:00:01 AM (mm/dd/yy hh:mm:ss AM/PM) in text format in a cell. I need to convert this to date/time custom format as given above so that I can make comparisons with NOW() output.

View 2 Replies View Related

Excel 2013 :: Extract Date And Time Info From A Text Cell That Contains Text And Date And Time

Jul 19, 2014

I am using Excel 2013. Anyway, the first issue is that I need to pull a date and a time period from text. So, for example, if I see something like Sunday Prime Time 7/6/14 8:37PM, I would want to pull ONLY the "7/6/14 8:37PM" out of it. Each text box could potentially be different, so it might not always be in the same format as "Sunday Prime Time 7/6/14 8:37PM" it might only show just the date and/or the time without all the extra text i.e. 7/6/14 8:37PM. Some of the cells will have text, others might only have just the time or even just the date and the time. The only thing that I am worrying about in each cell is extracting just the date and time. If this is too much to ask of excel, I would be ok with extracting ONLY the time - 8:37PM and not the date, but I would much rather be able to get both the time and date.

THEN, onto part two of my question. After I would pull the dates and times, I need to compare them with each other. So, when I have the same date with two separate times on that date, I need to write a formula to show if those times on that date are less than 30 minutes apart. So, if I have 6 times on 7/6/14, I need to know if any of them are less than 30 minutes apart.

I would need to have the formula say something like "Problem" if the times on 7/6/14 would be 5:30PM, 5:48PM, 7:00PM, 8:00PM, 8:15PM, and 9:00Pm for example. I would like to see the word "Problem" since 5:30PM and 5:48Pm is only 18 minutes apart, and "Problem" after 8:15PM since that is only 15 minutes past the 8:00PM which is obviously under 30 minutes. The times that are more than 30 minutes apart such as 7:00PM and 9:00PM for example are more than 30 minutes apart from any of the other times that were extracted.

View 7 Replies View Related

Date/time Macro: Inserts The Current Date And Time In The Selected Cell Regardless Of Where That Cell Is

Oct 20, 2009

What is the code i need to use to assign a macro to a command button which inserts the current date and time in the selected cell regardless of where that cell is?

View 5 Replies View Related

Combine Formula Which Reduce The No. Of Additoanl Formula's Columns

Apr 9, 2009

I have some student marks in columns B to F. If some one get below 40 marks he fails and the subject in which he has been failed will come in Remarks column. If he has passed in all subjects remarks column will show Pass.

To bring failed subject initial in Remarks i have to create 5 additional column and then thru Concatenate i joined them.

Is There any formula to show fail subject in Remarks column without creating 5 additional columns?

View 14 Replies View Related

Converting Date:Time Text To Date:Time Value

Oct 13, 2009

I'm trying to write a VBA code for converting the date/time as text to a date/time value.

The scenario is, I have three different types of text :
ddmmmyy
HH:MM
ddmmmyy:HHMM

I could have the code working fine with the first two types, but not the last one.

View 4 Replies View Related

Format Date & Time To Show Day, Date & Time

May 21, 2008

I have a sheet with a list of dates in it that I wish to format to show the day as well as date and time. I am trying to do this automatically with a macro, below is the before and the desired after.

Before
Format - dd/mm/yyyy hh:mm
Appearance - 29/03/2009 00:30

After
Format - ddd dd/mm/yyyy hh:mm
Appearance - Sun 29/03/2009 00:30

This works fine when I format the cells manually, but when I try to format them via macro '29/03/2009 00:30' becomes 'Sun 29/03/2009 12:30' which is obviously a totally different time! Has anyone got ay idea why it might be doing this?

View 6 Replies View Related

Combine Date Plus Text?

Sep 23, 2007

I have a date of the "Sep-07"in a1 in a2 i have "fred" and in a3 "expenses" when i try and combine them so that i can save the file name as a variable ie sept-07 fred expenses. I get

39336fredexpenses

How do I get the date not to read numbers?

View 5 Replies View Related

Combine Text Entree In Formula With Formula?

May 21, 2012

Is there away to Combine a Text Entree in a Formula with a Formula

=IF('VEGAS - Main'!Z9=1,"MIXED DBLs","")

I am trying to do something like this:

=IF('VEGAS - Main'!Z9=1,"TEAM EVENT"+'Mixed Doubles'!P9

Result will be MIXED DBLs 1st Place

View 5 Replies View Related

Lookup Sunset Time Based Onrecord Date - Incorrect Time Calculated

Mar 22, 2012

Consider this code:

'light eligibility
Dim facb As String
Dim sunset As Variant
[color=green]' check if facility has lights[color]
facb = WorksheetFunction.VLookup(RID, ds, 10, False) 'find facility code
If WorksheetFunction.VLookup(facb, fac, 6, False) = "Y" Then 'facility has lights
sunset = WorksheetFunction.VLookup(tempws.Range("A9"), sun, 2, False) 'lookup the sunset time based on the record's date

[Code] ......

This code checks the need for lights at a facility.

It first checks to see if the facility even has lights by cross-referencing a value in the record with a facilities database.

If it has lights, it then checks to see if they are needed. If the rental goes past the sunset time, then it needs lights. Sunset is determined by cross-referencing the date value in sheet1! A9, with the sunset database.

If it needs lights, variable lghtson is calculated equal to "sunset"-30 minutes.

As I step through this code:

WorksheetFunction.VLookup(facb, fac, 6, False) = "Y" Facility has lights.
Check to see if lights are needed.
sunset = WorksheetFunction.VLookup(tempws.Range("A9"), sun, 2, False)
sunset=0.879166666666667 which is 9:06PM. This is a proper value from the lookup.
If rental_end.value > sunset Then
rental_end (value from textbox) = "9:30 pm" , sunset=0.879166666666667. This is true, and Excel accepts it as true ...
lghtson = sunset - 0.5
0.379166666666667 = 0.879166666666667 - 0.5 (9:06 AM)

This is not the value I was looking for. I was looking for 8:34PM (0.856944444444444)

View 2 Replies View Related







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