| Windows 7: Excel 2007: a question about date and time manipulation |
18 Mar 2011
|
#1 | | Home Premium 64 bit UK, Hampshire |
Excel 2007: a question about date and time manipulation I have pasted data in to Excel that is in two columns
Col A contains a list of dates, dd/mm/yy; col B times hh/mm/yy. How do I set about calculating and displaying the period in dd/hh/mm/ss that elapsed between col A row B with col B row B, and col A row C with col B row C ? | My System Specs |
| System Manufacturer/Model Number Dell Inspiron 560MT OS Home Premium 64 bit CPU .93 gigahertz Intel Core2 Duo 64 kilobyte primary memory cac Motherboard Board: Dell Inc. 0K83V0 A00 Serial Number: ..CN750939CP069B Memory 4096 Megabytes Usable Installed Memory Slot 'DIMM0' has 102 Graphics Card Invidia GeForce G310 512MB Sound Card High Definition Audio Device NVIDIA High Definition Audio ( Monitor(s) Displays DELL ST2210 [Monitor] (21.7"vis, s/n P479R01Q0VCU, January 2 Screen Resolution 1920x1080 Hard Drives 628.58 Gigabytes Usable Hard Drive Capacity
554.78 Gigabytes Hard Drive Free Space |
18 Mar 2011
|
#2 | | Windows 7 SP1, Home Premium, 64-bit |
Post a picture of a sample worksheet containing sample data so I can fully understand what you need to do.
I will replicate the picture you post and can probably figure it out.
As I understand it, column A contains only something like 13/6/2007 (June 13, 2007). Column B contains hours I guess, but I need a sample to actually look at and ponder.
You want to calculate the total time elapsed between some time on June 13, 2007 in column A and some later time as shown in column B??
Column A contains no reference to hours? Hours are found only in column B?
More info please. | My System Specs | | System Manufacturer/Model Number Ignatz Special; 4 speed manual gearbox; factory air conditioning; one of one OS Windows 7 SP1, Home Premium, 64-bit CPU Intel Sandy Bridge i5-2500, not overclocked Motherboard Gigabyte H67A-UD3H-B3, full ATX Memory 4 GB Crucial DDR3-1333 Graphics Card none; graphics are integrated on CPU Sound Card onboard: Realtek ALC892; external: USB Behringer UF0-202 Monitor(s) Displays NEC 90GX2-BK 19" LCD Screen Resolution 800 x 640 Keyboard Leopold Tenkeyless with Cherry Blue switches, USB Mouse Logitech or Microsoft optical wired; either USB or PS 2 PSU Seasonic SS-560KM, modular Case Antec Solo II Cooling CPU: Scythe Big Shuriken; Case: Scythe Slipstream 800 & 500 Hard Drives System: Intel 320 Series SSD, 80 GB;
Data: Samsung Spinpoint 103SJ, 1 TB;
Backup: WD Caviar Green WD15EADS-00P8B0, 1.5TB Other Info Power consumption of this system, including monitor: 68 watts at idle; 144 watts at full load |
18 Mar 2011
|
#3 | | Windows 7 SP1, Home Premium, 64-bit |
Here is an excellent explanation of how to do it, depending on your exact requirements: http://ittrainingtips.iu.edu/excel/c...-excel/04/2009 | My System Specs | | System Manufacturer/Model Number Ignatz Special; 4 speed manual gearbox; factory air conditioning; one of one OS Windows 7 SP1, Home Premium, 64-bit CPU Intel Sandy Bridge i5-2500, not overclocked Motherboard Gigabyte H67A-UD3H-B3, full ATX Memory 4 GB Crucial DDR3-1333 Graphics Card none; graphics are integrated on CPU Sound Card onboard: Realtek ALC892; external: USB Behringer UF0-202 Monitor(s) Displays NEC 90GX2-BK 19" LCD Screen Resolution 800 x 640 Keyboard Leopold Tenkeyless with Cherry Blue switches, USB Mouse Logitech or Microsoft optical wired; either USB or PS 2 PSU Seasonic SS-560KM, modular Case Antec Solo II Cooling CPU: Scythe Big Shuriken; Case: Scythe Slipstream 800 & 500 Hard Drives System: Intel 320 Series SSD, 80 GB;
Data: Samsung Spinpoint 103SJ, 1 TB;
Backup: WD Caviar Green WD15EADS-00P8B0, 1.5TB Other Info Power consumption of this system, including monitor: 68 watts at idle; 144 watts at full load |
19 Mar 2011
|
#4 | | Home Premium 64 bit UK, Hampshire |
Re first reply Code: Row Col A Col B
5 21/02/11 23:58:02
18 17/03/11 00:00:33 Time elapsed between data in rows 5 and 18 is needed
Last edited by rundwald; 19 Mar 2011 at 04:10 AM..
| My System Specs | | System Manufacturer/Model Number Dell Inspiron 560MT OS Home Premium 64 bit CPU .93 gigahertz Intel Core2 Duo 64 kilobyte primary memory cac Motherboard Board: Dell Inc. 0K83V0 A00 Serial Number: ..CN750939CP069B Memory 4096 Megabytes Usable Installed Memory Slot 'DIMM0' has 102 Graphics Card Invidia GeForce G310 512MB Sound Card High Definition Audio Device NVIDIA High Definition Audio ( Monitor(s) Displays DELL ST2210 [Monitor] (21.7"vis, s/n P479R01Q0VCU, January 2 Screen Resolution 1920x1080 Hard Drives 628.58 Gigabytes Usable Hard Drive Capacity
554.78 Gigabytes Hard Drive Free Space |
19 Mar 2011
|
#5 | | Windows 7 SP1, Home Premium, 64-bit |
Your example is complicated by 2 factors:
1: Using separate columns for date and time, rather than a single column
2: Using British format for the date
I have never tried to calculate elapsed time in Excel, but spent the last 2 hours learning. The following is the best I can do in the allotted time.
The pic below shows your chosen dates and times, but I have converted them to US date format: month/day/year rather than the British day/month/year. Additionally, I have put the time and date in the same cell, not in separate columns.
The formula in cell B4 is =a4-a3.
The formatting in column A is set to US English. The type is set to display 3/14/01 13:30.
The formatting in cell B4 where the formula resides is set to custom [h]:mm:ss. You can play around with that too.
The answer is 552 hours, 2 minutes, 31 seconds.
Note that the seconds are not displayed in cell a3, but are shown in the formula box at the top. The formula box also shows the time in traditional AM/PM format.
To use my method, you will have to convert your data to a single column, with date and time in the same cell, just as my sample shows. And you will have to use a US date format.
That's the best I can do. You can fiddle with the formatting and formulas and possibly come up with an improvement. Maybe someone else can add to this. | My System Specs | | System Manufacturer/Model Number Ignatz Special; 4 speed manual gearbox; factory air conditioning; one of one OS Windows 7 SP1, Home Premium, 64-bit CPU Intel Sandy Bridge i5-2500, not overclocked Motherboard Gigabyte H67A-UD3H-B3, full ATX Memory 4 GB Crucial DDR3-1333 Graphics Card none; graphics are integrated on CPU Sound Card onboard: Realtek ALC892; external: USB Behringer UF0-202 Monitor(s) Displays NEC 90GX2-BK 19" LCD Screen Resolution 800 x 640 Keyboard Leopold Tenkeyless with Cherry Blue switches, USB Mouse Logitech or Microsoft optical wired; either USB or PS 2 PSU Seasonic SS-560KM, modular Case Antec Solo II Cooling CPU: Scythe Big Shuriken; Case: Scythe Slipstream 800 & 500 Hard Drives System: Intel 320 Series SSD, 80 GB;
Data: Samsung Spinpoint 103SJ, 1 TB;
Backup: WD Caviar Green WD15EADS-00P8B0, 1.5TB Other Info Power consumption of this system, including monitor: 68 watts at idle; 144 watts at full load Excel 2007: a question about date and time manipulation problems? All times are GMT -5. The time now is 04:47 PM. | |