Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Stefano
 
Posts: n/a
Default subtraction with time format cells

I cannot make the simple subtraction about 2 cells in a time format. e.g.
36.00.00-38.00.00 makes ######### while it works on the other way.
anyone can help me pls?
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

If the answer should be 2 hours use =ABS(A1-B1), if it should be 22 hours,
use =MOD(A1-B1,1)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Stefano" wrote in message
...
I cannot make the simple subtraction about 2 cells in a time format. e.g.
36.00.00-38.00.00 makes ######### while it works on the other way.
anyone can help me pls?



  #3   Report Post  
Jason Morin
 
Posts: n/a
Default

Excel cannot display negative date/time values. But you
can still use them in calculations. I would subtract the
values in 1 cell, hide this cell, and then use this
formula in another cell simply for display purposes:

=IF(A1-B1<0,TEXT(B1-A1,"-[hh].mm.ss"),TEXT(A1-
B1,"[hh].mm.ss"))

HTH
Jason
Atlanta, GA

-----Original Message-----
I cannot make the simple subtraction about 2 cells in a

time format. e.g.
36.00.00-38.00.00 makes ######### while it works on the

other way.
anyone can help me pls?
.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
I cannot get time format to display in a drop-down list Mighty Mike Excel Discussion (Misc queries) 0 February 1st 05 09:47 PM
entering numbers to display a time format Ian Williams/Eazygig Excel Discussion (Misc queries) 1 January 10th 05 11:57 AM
Convert data type of cells to Text,Number,Date and Time Kevin Excel Worksheet Functions 1 December 31st 04 12:57 PM
Time Format Auto Entry AM and PM BulaMan Excel Discussion (Misc queries) 1 December 15th 04 09:30 AM
When I select "format cells", the format dialog box does not disp. Andy S. Excel Worksheet Functions 2 November 23rd 04 03:49 AM


All times are GMT +1. The time now is 01:08 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"