Excel 2007: a question about date and time manipulation

rundwald

New member
Member
VIP
Local time
8:14 AM
Messages
394
Location
UK, Hampshire
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 Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell Inspiron 560MT
OS
Home Premium 64 bit
CPU
2.9 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(s)
ATI Radeon HD 4300/4500 Series
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
Keyboard
Std Dell UK
Mouse
KEYBOARD, 105, UNITED KINGDOM, KWE9C0
Internet Speed
~8000 kbps
Antivirus
Avast Free
Browser
Chrome
Other Info
Office 2007: Photo Editing; Serif PhotoPlus X7
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 Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Ignatz Special; 4 speed manual gearbox; factory air conditioning; one of one
OS
Windows 7 Home Premium SP1, 64-bit
CPU
Intel Skylake i5-6600K, not overclocked
Motherboard
AsRock Z170M Extreme 4, micro ATX
Memory
8 GB HyperX DDR4-2666 (2 x 4 GB)
Graphics Card(s)
none; graphics are integrated on CPU
Sound Card
onboard: Realtek ALC1150; external: USB Behringer UF0-202
Monitor(s) Displays
Dell S2340M 23 inch IPS
Screen Resolution
1600 x 900
Hard Drives
System: Crucial MX100 series SSD, 128 GB;
Data: Samsung Spinpoint 103SJ, 1 TB;
Backup: WD Caviar Green WD30EZRX-00D8PB0, 3 TB
PSU
Rosewill SilentNight 500 watt fanless, semi-modular
Case
Antec Solo II
Cooling
Noctua NH-U12S; Noctua F12 intake, Noctua S12A exhaust
Keyboard
Microsoft 200 6JH-00001 USB
Mouse
Dell or Microsoft optical wired; USB
Antivirus
Microsoft Security Essentials and Malwarebytes Premium
Browser
Pale Moon
Other Info
All fans PWM; speeds at idle: CPU circa 500 rpm; intake circa 600 rpm; exhaust circa 600 rpm; CPU temps 27 idle and 47 C load in a warm room (27 C/81 F) when running Intel Extreme Tuning Utility stress test.

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Ignatz Special; 4 speed manual gearbox; factory air conditioning; one of one
OS
Windows 7 Home Premium SP1, 64-bit
CPU
Intel Skylake i5-6600K, not overclocked
Motherboard
AsRock Z170M Extreme 4, micro ATX
Memory
8 GB HyperX DDR4-2666 (2 x 4 GB)
Graphics Card(s)
none; graphics are integrated on CPU
Sound Card
onboard: Realtek ALC1150; external: USB Behringer UF0-202
Monitor(s) Displays
Dell S2340M 23 inch IPS
Screen Resolution
1600 x 900
Hard Drives
System: Crucial MX100 series SSD, 128 GB;
Data: Samsung Spinpoint 103SJ, 1 TB;
Backup: WD Caviar Green WD30EZRX-00D8PB0, 3 TB
PSU
Rosewill SilentNight 500 watt fanless, semi-modular
Case
Antec Solo II
Cooling
Noctua NH-U12S; Noctua F12 intake, Noctua S12A exhaust
Keyboard
Microsoft 200 6JH-00001 USB
Mouse
Dell or Microsoft optical wired; USB
Antivirus
Microsoft Security Essentials and Malwarebytes Premium
Browser
Pale Moon
Other Info
All fans PWM; speeds at idle: CPU circa 500 rpm; intake circa 600 rpm; exhaust circa 600 rpm; CPU temps 27 idle and 47 C load in a warm room (27 C/81 F) when running Intel Extreme Tuning Utility stress test.
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:

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell Inspiron 560MT
OS
Home Premium 64 bit
CPU
2.9 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(s)
ATI Radeon HD 4300/4500 Series
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
Keyboard
Std Dell UK
Mouse
KEYBOARD, 105, UNITED KINGDOM, KWE9C0
Internet Speed
~8000 kbps
Antivirus
Avast Free
Browser
Chrome
Other Info
Office 2007: Photo Editing; Serif PhotoPlus X7
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.
 

Attachments

  • Untitled-1.jpg
    Untitled-1.jpg
    36.8 KB · Views: 5

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Ignatz Special; 4 speed manual gearbox; factory air conditioning; one of one
OS
Windows 7 Home Premium SP1, 64-bit
CPU
Intel Skylake i5-6600K, not overclocked
Motherboard
AsRock Z170M Extreme 4, micro ATX
Memory
8 GB HyperX DDR4-2666 (2 x 4 GB)
Graphics Card(s)
none; graphics are integrated on CPU
Sound Card
onboard: Realtek ALC1150; external: USB Behringer UF0-202
Monitor(s) Displays
Dell S2340M 23 inch IPS
Screen Resolution
1600 x 900
Hard Drives
System: Crucial MX100 series SSD, 128 GB;
Data: Samsung Spinpoint 103SJ, 1 TB;
Backup: WD Caviar Green WD30EZRX-00D8PB0, 3 TB
PSU
Rosewill SilentNight 500 watt fanless, semi-modular
Case
Antec Solo II
Cooling
Noctua NH-U12S; Noctua F12 intake, Noctua S12A exhaust
Keyboard
Microsoft 200 6JH-00001 USB
Mouse
Dell or Microsoft optical wired; USB
Antivirus
Microsoft Security Essentials and Malwarebytes Premium
Browser
Pale Moon
Other Info
All fans PWM; speeds at idle: CPU circa 500 rpm; intake circa 600 rpm; exhaust circa 600 rpm; CPU temps 27 idle and 47 C load in a warm room (27 C/81 F) when running Intel Extreme Tuning Utility stress test.
Back
Top