#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 30
Default Hours between dates

Hi Everyone,

I have been playing around and can't quite get it.

I have 2 columns Start Date and Time and End Date and Time

I tried this function =DAYS360(G2,H2)

4/5/07 4:12am
4/5/07 5:34 pm

Gives me 0.00 for an answer. I need the hours

The ultimate goal is to calculate total days which if I have 2 records which
give you an answer of 12.00 that would be 1 day. I think once I get this
formula fixed I hope I can get the other by selecting all the records and
divide by 24 to get my total days?

Thanks,
Linda


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default Hours between dates

hi
i think days360 counts days not hours. if your times are that close, you
might be better off just subtracting H2 from G2 and formating the results as
time ie [hh]:mm:ss. the brackets around the hh will cause the hours to
accumilate and not roll over every 24 hours.

Regards
FSt1

"Linda RQ" wrote:

Hi Everyone,

I have been playing around and can't quite get it.

I have 2 columns Start Date and Time and End Date and Time

I tried this function =DAYS360(G2,H2)

4/5/07 4:12am
4/5/07 5:34 pm

Gives me 0.00 for an answer. I need the hours

The ultimate goal is to calculate total days which if I have 2 records which
give you an answer of 12.00 that would be 1 day. I think once I get this
formula fixed I hope I can get the other by selecting all the records and
divide by 24 to get my total days?

Thanks,
Linda



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default Hours between dates

=B1-A1 and format as [h]:mm

--
__________________________________
HTH

Bob

"Linda RQ" wrote in message
...
Hi Everyone,

I have been playing around and can't quite get it.

I have 2 columns Start Date and Time and End Date and Time

I tried this function =DAYS360(G2,H2)

4/5/07 4:12am
4/5/07 5:34 pm

Gives me 0.00 for an answer. I need the hours

The ultimate goal is to calculate total days which if I have 2 records
which give you an answer of 12.00 that would be 1 day. I think once I get
this formula fixed I hope I can get the other by selecting all the records
and divide by 24 to get my total days?

Thanks,
Linda



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,934
Default Hours between dates

If you need the actual decimal hours (13.666...), then try this formula...

=24*(H2-G2)

--
Rick (MVP - Excel)


"Linda RQ" wrote in message
...
Hi Everyone,

I have been playing around and can't quite get it.

I have 2 columns Start Date and Time and End Date and Time

I tried this function =DAYS360(G2,H2)

4/5/07 4:12am
4/5/07 5:34 pm

Gives me 0.00 for an answer. I need the hours

The ultimate goal is to calculate total days which if I have 2 records
which give you an answer of 12.00 that would be 1 day. I think once I get
this formula fixed I hope I can get the other by selecting all the records
and divide by 24 to get my total days?

Thanks,
Linda


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 30
Default Hours between dates

You Da Man Rick! Thanks!


"Rick Rothstein" wrote in message
...
If you need the actual decimal hours (13.666...), then try this formula...

=24*(H2-G2)

--
Rick (MVP - Excel)


"Linda RQ" wrote in message
...
Hi Everyone,

I have been playing around and can't quite get it.

I have 2 columns Start Date and Time and End Date and Time

I tried this function =DAYS360(G2,H2)

4/5/07 4:12am
4/5/07 5:34 pm

Gives me 0.00 for an answer. I need the hours

The ultimate goal is to calculate total days which if I have 2 records
which give you an answer of 12.00 that would be 1 day. I think once I
get this formula fixed I hope I can get the other by selecting all the
records and divide by 24 to get my total days?

Thanks,
Linda






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 30
Default Hours between dates

Thanks Bob, I tried to put formatting in but I kept getting an error because
I really don't know where to put the parentheses so I tried Rick's solution
and it worked!


"Bob Phillips" wrote in message
...
=B1-A1 and format as [h]:mm

--
__________________________________
HTH

Bob

"Linda RQ" wrote in message
...
Hi Everyone,

I have been playing around and can't quite get it.

I have 2 columns Start Date and Time and End Date and Time

I tried this function =DAYS360(G2,H2)

4/5/07 4:12am
4/5/07 5:34 pm

Gives me 0.00 for an answer. I need the hours

The ultimate goal is to calculate total days which if I have 2 records
which give you an answer of 12.00 that would be 1 day. I think once I
get this formula fixed I hope I can get the other by selecting all the
records and divide by 24 to get my total days?

Thanks,
Linda





  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 30
Default Hours between dates

Thanks FSt1, I couldn't figure out how to put the formatting into the
formula/fx


Linda

"FSt1" wrote in message
...
hi
i think days360 counts days not hours. if your times are that close, you
might be better off just subtracting H2 from G2 and formating the results
as
time ie [hh]:mm:ss. the brackets around the hh will cause the hours to
accumilate and not roll over every 24 hours.

Regards
FSt1

"Linda RQ" wrote:

Hi Everyone,

I have been playing around and can't quite get it.

I have 2 columns Start Date and Time and End Date and Time

I tried this function =DAYS360(G2,H2)

4/5/07 4:12am
4/5/07 5:34 pm

Gives me 0.00 for an answer. I need the hours

The ultimate goal is to calculate total days which if I have 2 records
which
give you an answer of 12.00 that would be 1 day. I think once I get this
formula fixed I hope I can get the other by selecting all the records and
divide by 24 to get my total days?

Thanks,
Linda





  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default Hours between dates

hi
don't put the fomating in the formula.
right click the desired cell, choose format cell.
click the number tab. click custom. enter the custom format there.
once entered, you can format other cells by selecting the custom format
Regards
FSt1

"Linda RQ" wrote:

Thanks FSt1, I couldn't figure out how to put the formatting into the
formula/fx


Linda

"FSt1" wrote in message
...
hi
i think days360 counts days not hours. if your times are that close, you
might be better off just subtracting H2 from G2 and formating the results
as
time ie [hh]:mm:ss. the brackets around the hh will cause the hours to
accumilate and not roll over every 24 hours.

Regards
FSt1

"Linda RQ" wrote:

Hi Everyone,

I have been playing around and can't quite get it.

I have 2 columns Start Date and Time and End Date and Time

I tried this function =DAYS360(G2,H2)

4/5/07 4:12am
4/5/07 5:34 pm

Gives me 0.00 for an answer. I need the hours

The ultimate goal is to calculate total days which if I have 2 records
which
give you an answer of 12.00 that would be 1 day. I think once I get this
formula fixed I hope I can get the other by selecting all the records and
divide by 24 to get my total days?

Thanks,
Linda






  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default Hours between dates

It is square brackets, not parentheses.

--
__________________________________
HTH

Bob

"Linda RQ" wrote in message
...
Thanks Bob, I tried to put formatting in but I kept getting an error
because I really don't know where to put the parentheses so I tried Rick's
solution and it worked!


"Bob Phillips" wrote in message
...
=B1-A1 and format as [h]:mm

--
__________________________________
HTH

Bob

"Linda RQ" wrote in message
...
Hi Everyone,

I have been playing around and can't quite get it.

I have 2 columns Start Date and Time and End Date and Time

I tried this function =DAYS360(G2,H2)

4/5/07 4:12am
4/5/07 5:34 pm

Gives me 0.00 for an answer. I need the hours

The ultimate goal is to calculate total days which if I have 2 records
which give you an answer of 12.00 that would be 1 day. I think once I
get this formula fixed I hope I can get the other by selecting all the
records and divide by 24 to get my total days?

Thanks,
Linda







  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default Hours between dates

So it would be =B1-A1[h]:mm


"Bob Phillips" wrote in message
...
It is square brackets, not parentheses.

--
__________________________________
HTH

Bob

"Linda RQ" wrote in message
...
Thanks Bob, I tried to put formatting in but I kept getting an error
because I really don't know where to put the parentheses so I tried
Rick's solution and it worked!


"Bob Phillips" wrote in message
...
=B1-A1 and format as [h]:mm

--
__________________________________
HTH

Bob

"Linda RQ" wrote in message
...
Hi Everyone,

I have been playing around and can't quite get it.

I have 2 columns Start Date and Time and End Date and Time

I tried this function =DAYS360(G2,H2)

4/5/07 4:12am
4/5/07 5:34 pm

Gives me 0.00 for an answer. I need the hours

The ultimate goal is to calculate total days which if I have 2 records
which give you an answer of 12.00 that would be 1 day. I think once I
get this formula fixed I hope I can get the other by selecting all the
records and divide by 24 to get my total days?

Thanks,
Linda











  #11   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,934
Default Hours between dates

You left out the "and format as" part...

=B1-A1 and format as [h]:mm

--
Rick (MVP - Excel)


"Linda RQ" wrote in message
...
So it would be =B1-A1[h]:mm


"Bob Phillips" wrote in message
...
It is square brackets, not parentheses.

--
__________________________________
HTH

Bob

"Linda RQ" wrote in message
...
Thanks Bob, I tried to put formatting in but I kept getting an error
because I really don't know where to put the parentheses so I tried
Rick's solution and it worked!


"Bob Phillips" wrote in message
...
=B1-A1 and format as [h]:mm

--
__________________________________
HTH

Bob

"Linda RQ" wrote in message
...
Hi Everyone,

I have been playing around and can't quite get it.

I have 2 columns Start Date and Time and End Date and Time

I tried this function =DAYS360(G2,H2)

4/5/07 4:12am
4/5/07 5:34 pm

Gives me 0.00 for an answer. I need the hours

The ultimate goal is to calculate total days which if I have 2 records
which give you an answer of 12.00 that would be 1 day. I think once I
get this formula fixed I hope I can get the other by selecting all the
records and divide by 24 to get my total days?

Thanks,
Linda










  #12   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default Hours between dates

No it would be

=B1-A1

as the formula in the cell, then select menu FormatCellsCustom and enter
[h]:mm in the inputbox.

--
__________________________________
HTH

Bob

"Linda RQ" wrote in message
...
So it would be =B1-A1[h]:mm


"Bob Phillips" wrote in message
...
It is square brackets, not parentheses.

--
__________________________________
HTH

Bob

"Linda RQ" wrote in message
...
Thanks Bob, I tried to put formatting in but I kept getting an error
because I really don't know where to put the parentheses so I tried
Rick's solution and it worked!


"Bob Phillips" wrote in message
...
=B1-A1 and format as [h]:mm

--
__________________________________
HTH

Bob

"Linda RQ" wrote in message
...
Hi Everyone,

I have been playing around and can't quite get it.

I have 2 columns Start Date and Time and End Date and Time

I tried this function =DAYS360(G2,H2)

4/5/07 4:12am
4/5/07 5:34 pm

Gives me 0.00 for an answer. I need the hours

The ultimate goal is to calculate total days which if I have 2 records
which give you an answer of 12.00 that would be 1 day. I think once I
get this formula fixed I hope I can get the other by selecting all the
records and divide by 24 to get my total days?

Thanks,
Linda











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
net no of hours bewtween tow dates Kashif Excel Worksheet Functions 2 November 27th 08 10:09 AM
Determining work hours between dates / hours Andrew Excel Worksheet Functions 3 July 30th 08 06:38 PM
dates to hours Champ Excel Discussion (Misc queries) 2 July 3rd 08 07:07 PM
working with dates and hours goldenrod59 Excel Worksheet Functions 4 February 8th 07 11:29 PM
get total hours from 2 dates LU Excel Worksheet Functions 1 July 15th 05 03:03 AM


All times are GMT +1. The time now is 03:44 PM.

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"