ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Displaying negative [h]:mm:ss (https://www.excelbanter.com/excel-discussion-misc-queries/220027-displaying-negative-%5Bh%5D-mm-ss.html)

The Rook[_2_]

Displaying negative [h]:mm:ss
 
I have a spreadsheet that is populated with the following:

Column A: authorised hours (formatted as [h]:mm:ss)
Column B: Actual Hours (formatted as [h]:mm:ss)
Column C: Variance (Column B - Column A, formatted aS [H]:mm:ss)

If column B is greater than column A then the result is correct, but if
column A is greater than column B the result is #########. I am wanting it
to result a negative figure. For example:

A B C
10:00:00 7:00:00 -3:00:00

Can this be achieved?

Thanks


Gary''s Student

Displaying negative [h]:mm:ss
 
Tools Options... Calculation and check the 1904 checkbox.

Then select the cell(s) and:

Format Cells... Number Custom hh:mm:ss
--
Gary''s Student - gsnu200832


"The Rook" wrote:

I have a spreadsheet that is populated with the following:

Column A: authorised hours (formatted as [h]:mm:ss)
Column B: Actual Hours (formatted as [h]:mm:ss)
Column C: Variance (Column B - Column A, formatted aS [H]:mm:ss)

If column B is greater than column A then the result is correct, but if
column A is greater than column B the result is #########. I am wanting it
to result a negative figure. For example:

A B C
10:00:00 7:00:00 -3:00:00

Can this be achieved?

Thanks


David Biddulph[_2_]

Displaying negative [h]:mm:ss
 
Yes, but be careful if you are copying data to and fro between 1900 and 1904
systems.
--
David Biddulph

"Gary''s Student" wrote in message
...
Tools Options... Calculation and check the 1904 checkbox.

Then select the cell(s) and:

Format Cells... Number Custom hh:mm:ss
--
Gary''s Student - gsnu200832


"The Rook" wrote:

I have a spreadsheet that is populated with the following:

Column A: authorised hours (formatted as [h]:mm:ss)
Column B: Actual Hours (formatted as [h]:mm:ss)
Column C: Variance (Column B - Column A, formatted aS [H]:mm:ss)

If column B is greater than column A then the result is correct, but if
column A is greater than column B the result is #########. I am wanting
it
to result a negative figure. For example:

A B C
10:00:00 7:00:00 -3:00:00

Can this be achieved?

Thanks





All times are GMT +1. The time now is 02:29 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com