Solved

# Multiply static time by variable number in minute / seconds

Posted on 2012-04-10
298 Views
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
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
• 2

LVL 12

Expert Comment

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

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

Question has a verified solution.

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

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
###### Suggested Courses
Course of the Month7 days, 2 hours left to enroll