Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 51
Default Multiplying time by cost

Hi,

I am trying to calculate some activity costs and have some timings that I
want to multiply against some salary costs. The timings on the spreadsheet
are in the format [h]:mm:ss and the costs are per second (as I want to be as
accurate as possible). However, when I multiply [h]:mm:ss by the cost per
second I get a weird answer. e.g.

0:00:30 * 0.50 = 0.25?

I suppose ideally I could do with coverting the [h]:mm:ss into seconds only
(i.e. 0:01:30 would equal 5400)?? so that both data are in seconds??

Any ideas gratefully received!

Cheers,
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Multiplying time by cost

You have to convert the time to seconds:

=Time * 86400 * multiplier

A1 = 0:00:10
B1 = 10

=A1*86400*B1

Format as GENERAL or NUMBER

Result = 100

--
Biff
Microsoft Excel MVP


"kippers" wrote in message
...
Hi,

I am trying to calculate some activity costs and have some timings that I
want to multiply against some salary costs. The timings on the spreadsheet
are in the format [h]:mm:ss and the costs are per second (as I want to be
as
accurate as possible). However, when I multiply [h]:mm:ss by the cost per
second I get a weird answer. e.g.

0:00:30 * 0.50 = 0.25?

I suppose ideally I could do with coverting the [h]:mm:ss into seconds
only
(i.e. 0:01:30 would equal 5400)?? so that both data are in seconds??

Any ideas gratefully received!

Cheers,



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Multiplying time by cost

Yes, times are stored as fractions of a 24-hour day, so to convert to
seconds you would need to multiply as follows:

=A1*B1*24*60*60

where A1 contains your time and B1 your rate.

Hope this helps.

Pete

On Sep 25, 9:58 pm, kippers wrote:
Hi,

I am trying to calculate some activity costs and have some timings that I
want to multiply against some salary costs. The timings on the spreadsheet
are in the format [h]:mm:ss and the costs are per second (as I want to be as
accurate as possible). However, when I multiply [h]:mm:ss by the cost per
second I get a weird answer. e.g.

0:00:30 * 0.50 = 0.25?

I suppose ideally I could do with coverting the [h]:mm:ss into seconds only
(i.e. 0:01:30 would equal 5400)?? so that both data are in seconds??

Any ideas gratefully received!

Cheers,



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiplying seconds by cost MoniqueT Excel Discussion (Misc queries) 5 February 27th 07 04:55 PM
Multiplying time values and numbers bunnyc Excel Discussion (Misc queries) 3 February 17th 06 03:43 PM
Multiplying time by number God's Kid Excel Discussion (Misc queries) 3 January 27th 06 10:16 PM
Calculate time and cost Sjoestaal Excel Worksheet Functions 2 March 31st 05 01:47 PM
Time by cost Ska Excel Discussion (Misc queries) 1 March 21st 05 03:30 PM


All times are GMT +1. The time now is 02:44 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"