View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.programming
Orhan Orhan is offline
external usenet poster
 
Posts: 10
Default Extract hour from date

On Oct 27, 12:06 am, "Otto Moehrbach" wrote:
Say your date and time are in A1, as before. In another cell, type, without
quotes, "=HOUR(MOD(A1,1))"
This will get you the hour. If you pastespecial - Values this to another
cell you will get the hour only. HTH Otto"Orhan" wrote in message

ups.com...

Hi,


It shows correct hour "02" but when I copy-pastevalues the cell value
is still "2:25:46 AM"


Thanks,
That did the trick.