View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.programming
Otto Moehrbach Otto Moehrbach is offline
external usenet poster
 
Posts: 1,090
Default Extract hour from date

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"