#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default time into a number

Could you please tell how I could do the following

Cell A2 has 4:00 and I would like to see in B2 the number 4
In the same manner if A2 has 4:30 then B2 should show the number 4.5

I appreciate anyone's help.
--
Many Thanks. Warmest Regards,
Polochilde
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default time into a number

=(A2-INT(A2))*24

Put in B2 should work.

Mike

"Polochilde" wrote:

Could you please tell how I could do the following

Cell A2 has 4:00 and I would like to see in B2 the number 4
In the same manner if A2 has 4:30 then B2 should show the number 4.5

I appreciate anyone's help.
--
Many Thanks. Warmest Regards,
Polochilde

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 347
Default time into a number

Hi

Why not just:

=A2*24

Jean-Guy

"Mike" wrote:

=(A2-INT(A2))*24

Put in B2 should work.

Mike

"Polochilde" wrote:

Could you please tell how I could do the following

Cell A2 has 4:00 and I would like to see in B2 the number 4
In the same manner if A2 has 4:30 then B2 should show the number 4.5

I appreciate anyone's help.
--
Many Thanks. Warmest Regards,
Polochilde

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Thank you but still does not work -time into a number

Dear Mike and Pinmaster,
Thank you so much for the reply.

Your formula keeps giving me 0:00

Too be clear if 4:00 (11:00am - 0700am)
and then your formula in the next cell still does not turn time difference
into a number.

I appreciate your help.

--
Many Thanks. Warmest Regards,


"Mike" wrote:

=(A2-INT(A2))*24

Put in B2 should work.

Mike

"Polochilde" wrote:

Could you please tell how I could do the following

Cell A2 has 4:00 and I would like to see in B2 the number 4
In the same manner if A2 has 4:30 then B2 should show the number 4.5

I appreciate anyone's help.
--
Many Thanks. Warmest Regards,
Polochilde

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 347
Default Thank you but still does not work -time into a number

Hi,

Format the cell as General or Number and you should be ok.

Cheers!
Jean-Guy

"Polochilde" wrote:

Dear Mike and Pinmaster,
Thank you so much for the reply.

Your formula keeps giving me 0:00

Too be clear if 4:00 (11:00am - 0700am)
and then your formula in the next cell still does not turn time difference
into a number.

I appreciate your help.

--
Many Thanks. Warmest Regards,


"Mike" wrote:

=(A2-INT(A2))*24

Put in B2 should work.

Mike

"Polochilde" wrote:

Could you please tell how I could do the following

Cell A2 has 4:00 and I would like to see in B2 the number 4
In the same manner if A2 has 4:30 then B2 should show the number 4.5

I appreciate anyone's help.
--
Many Thanks. Warmest Regards,
Polochilde



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Thank you but still does not work -time into a number

Maybe your times are not real times?

Did you enter as 11:00 and 7:00

Where are they entered?

In A3 enter 11:30 In A4 enter 7:00

In A2 enter =A3-A4 which returns 4:30

In B2 enter the formula =(A2-INT(A2))*24 which returns 4.5


Gord Dibben MS Excel MVP

On Sun, 4 Mar 2007 12:36:17 -0800, Polochilde
wrote:

Dear Mike and Pinmaster,
Thank you so much for the reply.

Your formula keeps giving me 0:00

Too be clear if 4:00 (11:00am - 0700am)
and then your formula in the next cell still does not turn time difference
into a number.

I appreciate your help.


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Thank you Mike, Pinmaster and Gord Dibben

Thank you to alll of you it works
--
Many Thanks. Warmest Regards,


"Gord Dibben" wrote:

Maybe your times are not real times?

Did you enter as 11:00 and 7:00

Where are they entered?

In A3 enter 11:30 In A4 enter 7:00

In A2 enter =A3-A4 which returns 4:30

In B2 enter the formula =(A2-INT(A2))*24 which returns 4.5


Gord Dibben MS Excel MVP

On Sun, 4 Mar 2007 12:36:17 -0800, Polochilde
wrote:

Dear Mike and Pinmaster,
Thank you so much for the reply.

Your formula keeps giving me 0:00

Too be clear if 4:00 (11:00am - 0700am)
and then your formula in the next cell still does not turn time difference
into a number.

I appreciate your help.



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
Every time i put a number with period it becomes a date and time excelSOS Excel Discussion (Misc queries) 7 March 7th 06 12:20 AM
Formula Help - Number to Time Mark Broom Setting up and Configuration of Excel 1 January 7th 06 05:35 AM
Converting whole number to TIME B. Baumgartner Excel Discussion (Misc queries) 3 July 1st 05 11:26 PM
Time as number Howard Excel Discussion (Misc queries) 4 June 23rd 05 09:12 PM
Time to number Steved Excel Worksheet Functions 3 April 27th 05 08:00 AM


All times are GMT +1. The time now is 11:01 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"