R
rantz
I asked a similar question a couple a days ago, maybe it's clearer
this time.
I have a problem regarding date and time in excel. Perhaps I should
explain that I'm working with dates and time in Swedish format. It
should not matter thou.
Each row is an item in a warehouse. I need to get the difference
between in and out. It is not a problem how to get the difference in
dates, should just be '=C2-A2', same thing with the time.
The thing is, I would like to get the difference regarding both date
and time in one cell in order to be able to use that value in a
pivot-table.
I don't even know if this is possible. As you can see, there is a
problem with every time it crosses the dateline (see row 4 and 5).
I thought about turning column A and B into one cell formatted like
'yy:mm:dd, hh;mm:ss' and same thing with C and D. Then I thought I
could get the difference by subtracting the two new cells and get
something like '44 days, 3:22'. I could settle for something like
hh:mm:ss (86:25:24) too.
The problem is that I don't know how to format the cells and I
don't know how excel interprets the information.
I've been looking at http://www.cpearson.com/excel/datetime.htm but I
can't figure it out.
Perhaps I could use function EXTEXT to isolate the different elements
and use YEAR(), WEEK() etc..
I hope someone can help me.
A B C D
1 INDATE INTIME OUTDATE OUTTIME
2 04-10-01 23:37:33 04-10-13 14:54:39
3 04-10-01 23:38:04 04-10-13 14:55:30
4 04-10-01 23:39:36 04-10-13 14:45:17
5 04-10-02 00:08:25 04-10-13 19:23:44
6 04-10-02 00:28:48 04-10-13 14:48:49
7 04-10-02 00:28:49 04-10-13 14:49:56
this time.
I have a problem regarding date and time in excel. Perhaps I should
explain that I'm working with dates and time in Swedish format. It
should not matter thou.
Each row is an item in a warehouse. I need to get the difference
between in and out. It is not a problem how to get the difference in
dates, should just be '=C2-A2', same thing with the time.
The thing is, I would like to get the difference regarding both date
and time in one cell in order to be able to use that value in a
pivot-table.
I don't even know if this is possible. As you can see, there is a
problem with every time it crosses the dateline (see row 4 and 5).
I thought about turning column A and B into one cell formatted like
'yy:mm:dd, hh;mm:ss' and same thing with C and D. Then I thought I
could get the difference by subtracting the two new cells and get
something like '44 days, 3:22'. I could settle for something like
hh:mm:ss (86:25:24) too.
The problem is that I don't know how to format the cells and I
don't know how excel interprets the information.
I've been looking at http://www.cpearson.com/excel/datetime.htm but I
can't figure it out.
Perhaps I could use function EXTEXT to isolate the different elements
and use YEAR(), WEEK() etc..
I hope someone can help me.
A B C D
1 INDATE INTIME OUTDATE OUTTIME
2 04-10-01 23:37:33 04-10-13 14:54:39
3 04-10-01 23:38:04 04-10-13 14:55:30
4 04-10-01 23:39:36 04-10-13 14:45:17
5 04-10-02 00:08:25 04-10-13 19:23:44
6 04-10-02 00:28:48 04-10-13 14:48:49
7 04-10-02 00:28:49 04-10-13 14:49:56