Solved

Multiply static time by variable number in minute / seconds

Posted on 2012-04-10
2
286 Views
Last Modified: 2012-04-10
Hello Experts,

I always get confused on getting the correct time it requires to perform a task based on a set number and keep in minute/second format.
I need the outcome to be in the minute:second format 0:00:00
A1 is the time to perform the task (in this case 0:01:04)
A2 is the variable number to enter for the count of tasks to be completed (scenerio is 24)
(A2 will be keyed by end-user and is a variable number)
In my example 24 x 0:01:04 = 0:25:36

I am not sure if this is an excel expression or a vba change cell calcuation to derive this result.

Any assistance would be appreciated since I am stuck and need to use this format for numerous task activities.

Thanks,
Michael
0
Comment
Question by:mike637
  • 2
2 Comments
 
LVL 12

Expert Comment

by:kgerb
ID: 37827744
Hello Michael,
There may be an easier way but this seems to work.  In my formula A1 contains the hh:mm:ss.  B1 contains the multiplier.  Here's the formula.

=TEXT(B1*SUM(HOUR(A1)*60^2,MINUTE(A1)*60,SECOND(A1))/86400,CHOOSE(MATCH(B1*SUM(HOUR(A1)*60^2,MINUTE(A1)*60,SECOND(A1)),{0,60,3600},1),":ss","m:ss","[h]:mm:ss"))

Kyle
0
 
LVL 12

Accepted Solution

by:
kgerb earned 500 total points
ID: 37827763
If you want the format to be consistent then you can this.  It's shorter.

=TEXT(B1*SUM(HOUR(A1)*60^2,MINUTE(A1)*60,SECOND(A1))/86400,"hh:mm:ss")
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now