![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Location: John
Posts: 2
|
The problem is simple. I have a list of telephone call durations with colon format in minutes in seconds, e.g. 2:11 or 127:59. What is the easiest way in Office 97 to decimalise these durations so that I can then multiply by a cost per minute to calculate the resultant call cost. Currently I am using FIND and REPLACE to convert ':' to '.' and then using a combination of INTEGER and REMAINDER functions to do this.
I guess that I could use a STRING function to modify the the third character from the right, as opposed to a global REPLACE for the whole column. I was hoping that MS may already have a built in function to decimalise minutes and seconds - bit I can't locate it. Regards, John |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Winnipeg
Posts: 2,330
|
Quote:
=A1*1440*A2 Where A1 is the call duration and A2 is the rate per minute. Note, you'll have to format the cell where you put this formula to a number otherwise Excel will format it as a date. Regards,
__________________
Barrie Davidson "You're only given a little spark of madness. You mustn't lose it." - Robin Williams |
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Mar 2002
Location: John
Posts: 2
|
Thanks for the simple answer. For the sake of completeness I guess that the multiplication factor should be 24 if the time based rate is per minute OR 1440 if the factor is per second based.
Regards, John |
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Denver, CO
Posts: 1,744
|
Quote:
it would be hours 24 minutes 1440 (60*24) seconds 86400 (60*60*24)
__________________
Give $3 to Mr Excel's Holiday Charity Event! Write Up http://www.mrexcel.com/board/viewtop...0916&forum=9&4 Dontate http://www.mrexcel.com/sunshop/index...bstart=0&id=18 |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|