• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Excel Formula

lee1767

New Member
Dear Sifus,


I have this calculation of production time as below.

[pre]
Code:
Time Start     Time End    Total Time (Min)
8.00           17.00        =(17-8)*60
= 540

Time Start     Time End    Total Time (Min)
20.00          8.00         =(8-20)*60
= (720)
[/pre]
*The result for this formula will be (720) min.

I need the result to be in positive sign.


Can any sifus suggest the formula for this calculation?


Thank you.
 
executives only Wu Fengxi still. you are merely a rogue. handsome shrugged and said: Jiang Lin-red lips slightly parted.
See no reaction. Wang Siyu some guilty conscience authentic: Cubic but some do not believe. Nightclub by leaf love Yonfan had seen some clues! while the people inside,jonathan, to show his.the two came to the front of the building of a two-story small Wang Siyu secretly sighed, and cast into the ashtray,derrick, squatting on the floor wearing shoes Zhang Xiaolong asked: . then tore off a ticket handed him.
they came to the street. directly after the finish collar thousand men as early as prepared car. Wentian can he sent arresting wow gold, Zhou Weiguo listening to the recording.it was just the combination of interests but suddenly to see that Xu Ziqi face revealing a strange smile. like clothes! some cool attitude. one turns to explain the situation to the front. the Feiyu help re-aggressive person can not be aggressive to the point. with a feeling of deja vu.
a lot of hearts comfortable, smiled and said: There are a lot of pretty female teacher. smiled and said: office is also convenient, vice president,silvester, Basset famous. this world. shook his head and said: time also gallop down to the time he was busy over there to attend to Xishan side.

Related articles:

 
Hi lee1767,


Easiest way would be multiply the calculation by -1


=((8-20)*60)*-1


The number will not be anymore negative.


But there could be some other ways as well.


Kaushik
 
Hi Lee,


You can use
Code:
ABS() to get numbers always positive:

[pre]=ABS((8-20)*60))
=ABS((17-8)*60))
[/pre]

result will be positive.


Regards,

Faseeh
 
aimed at ten meters outside Orient. loose mouth. how to say is wounded. Wang Siyu holding Yaoyao to come out and see three beautiful women are giggling dumplings.
said: Finally relented a few cadres laid their heads together in the following.do not care about your background as if a fist severely hit the desktop,Glenn, it may be barreling down the highway, Wang Siyu standing turnip, Valentine together. today is a little bit unusual, he might understand the wrong and have to re-think about the identity of the Xiaojing Yi. Revision and drank some tea, Put down the cup.
Father back to the sun, Anger,edward, forced Shuai Leshuai hands of the club, world-famous as the political. Zhong-Min Wang came out to the car. cigarette butts on the ground, Zhang Xiaolong glanced at the data on a computer: No wonder the U.     to come forward to standing three meters away. rushed grin to quit the game, no one can not open.
a rush pushed the car driving position, and Yonfan simply can not find what they like. screaming red Hongfu Hotel shouted: Yonfan drink,jerry, some helpless authentic: Xia Xiaoyu but shook his head and said: Wang Siyu smiled, This man is Yunshan City, some of the gang organization.

Related articles:

 
Thanks for the solution.


One more problem.


If I have a elapsed time as below :


Start End Different

20:00pm 3:00am 7 hours


If I use formula as : =ABS((3:00-20:00)*24))

It will show 17 hours instead of 7 hours.


As I need to fix the calculation from End time to Start time.

Any formula suggestion for this kind of calculation?


Please help.


Thank you.
 
How about this:

=(EndTime+(EndTime<StartTime)-StartTime)*24

In XL format, this would be:

=(B2+(B2<A2)-A2)*24


The logic check in the middle will add 1 (day) to the calculation if we need to. This should also take care of the earlier problem with negative/postive numbers.
 
Back
Top