Sure, but as the appearance doesn't match the format, I've the suspicion that the cells don't contain numbers but text, making them invalid type for substraction.Villeroy wrote:Cell formatting is completely irrelevant as long as your values are numbers.
tn@BeWo wrote:Sure, but as the appearance doesn't match the format, I've the suspicion that the cells don't contain numbers but text, making them invalid type for substraction.Villeroy wrote:Cell formatting is completely irrelevant as long as your values are numbers.
tn@BeWo wrote:Hi 'needhelp'
I doubt that you have dates in those cells. Is 16:00:PM a valid time in your locale? Or should it be 16:00 PM?
Also: 10/14/2009 doesn't match your format pattern DD.MMMM.YYYY - if it was a date, you should see 10.October.2009
Villeroy wrote:Cell formatting is completely irrelevant as long as your values are numbers.
=A1-B1 gets the difference in days and #VALUE if there is text in the calculation:
2.25 as unformatted number if the difference is 2.25 (2 days and 6 hours)
The same value is shown as 54:00 with number format [HH]:MM
The same value is shown as 06:00 with number format HH:MM because the normal time format disregards the integer part of the number (the 2 days).
The difference in unit hours is:
=(A1-B1)*24 formatted as plain decimal number this gives 2.25*24 =>54
No, number format "DD HH" shows the day part of day #2 which is 1900-01-01 in Calc because day zero is 1899-12-30. So that format shows 2.25 as "01 06"
... wrong. The leading single quote ensures to have text, which could be interpreted as a number (in your case a number that is meant as a date), as text (and not converted to a number) in a cell.needhelp wrote:I do not have such a mark so I do not have text on my cells .....as I see-it ...
tn@BeWo wrote:... wrong. The leading single quote ensures to have text, which could be interpreted as a number (in your case a number that is meant as a date), as text (and not converted to a number) in a cell.needhelp wrote:I do not have such a mark so I do not have text on my cells .....as I see-it ...
You do have text in your cells and that text will now not be converted into a number anymore.
Delete the cells and start over, entering valid dates into virgin cells. You might want to postpone that until tomorrow.
needhelp wrote:I'm still sober tn@BeWo .....so ....bring -it -on baby ......
The days are taken into account (and there's nothing like a parameter for it), you just missread the result because of the poor formatting and the peculiar preference for the 12h clock (which makes sense on the wrist but not in computing). If the days hadn't been accounted for, you would see ―08:50needhelp wrote:The difference =B2-A2 gives me = 03:10:00 PM ...which is the exact difference between 9:38 and 6:28 but without taking into account the day ......how can I have the "day" parameter taken into account ????
Users browsing this forum: No registered users and 14 guests