Excel performance calculations in milli- and microseconds

Gregor Gisler

New Member
Joined
Jan 28, 2005
Messages
1
Hi
I did a lot of calculations with performance measurement data. I was able to do the calcs, but ask myself whether there is no smarter way.
For example I use the following formula to subtract java style timestamps:
=(TIMEVALUE(MID(N3;1;8))+1.15740740740741E-08*MID(N3;10;12))
-(TIMEVALUE(MID(K3;1;8))+1.15740740740741E-08*MID(K3;10;12))

where N3=19:19:19,123 ->Formatted as text
and K3=20:20:20,321 ->Formatted as text
and 1.15740740740741E-08 is the internal Excel representation of a
millisecond

The result field is defined as Custom field: hh:mm:ss.000
This works fine. You even can calculate microseconds. My question:
Is there a better way to handle issues like this?
Thanks.
Gregor Gisler
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Re: Excel performance calculations in milli- and microsecond

Welcome to the Board.

This:

=SUBSTITUTE(A1,",",".")+0

will convert the text entry to a serial time value. Format the results as hh:mm:ss.000.
 
Upvote 0
Re: Excel performance calculations in milli- and microsecond

Hi,

seing the semicolons in Gregor's formulas, I guess comma could be the decimal separator for him. In that case you should not substitute, just try the =A1+0 part.
 
Upvote 0

Forum statistics

Threads
1,213,543
Messages
6,114,243
Members
448,555
Latest member
RobertJones1986

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top