Solved

Multiply static time by variable number in minute / seconds

Posted on 2012-04-10
2
296 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

749 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