ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   trouble with date (https://www.excelbanter.com/excel-worksheet-functions/33424-trouble-date.html)

dada

trouble with date
 
Hi at all,
i've got this question for excle expert :-)

i've got this kind of cells (about 3000-4000):

start time cell : 2005-04-13 19:43:22.0
end time cell :2005-05-14 22:23:01.0 (i cannot divide the cell in date -
time because someone have formatted them in this way)

I need to separate the time (in minute) in those way (putting the minute in
other cells):
from 08 to 18 (working day) in one cell
from 18 to 08 (working day) in another cell
from friday at 18.00 to monday at 8.00 in another cell
all transformed in minute....
Thanks a lot guy





Fred Smith

I'm not sure I understand exactly what you are looking for, but maybe I can give
you some hints to point you in the right direction.

Assume your start time is in A1 and the end time is in A2.

=hour(a1) will return a number from 0 to 23 representing the hour of the day.
=(a2-a1)*60*24 will get you the number of minutes between the two times
=weekday(a1) will tell you what day of the week a1 is

With some If statements and the above formulas, you should be able to create the
cells that you want.

--
Regards,
Fred
Please reply to newsgroup, not e-mail


"dada" wrote in message
...
Hi at all,
i've got this question for excle expert :-)

i've got this kind of cells (about 3000-4000):

start time cell : 2005-04-13 19:43:22.0
end time cell :2005-05-14 22:23:01.0 (i cannot divide the cell in date -
time because someone have formatted them in this way)

I need to separate the time (in minute) in those way (putting the minute in
other cells):
from 08 to 18 (working day) in one cell
from 18 to 08 (working day) in another cell
from friday at 18.00 to monday at 8.00 in another cell
all transformed in minute....
Thanks a lot guy








All times are GMT +1. The time now is 12:48 PM.

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