Click here to Skip to main content
15,903,175 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How can I separate i cellvalue and copy to two different cells. A cell contains 2,75 where the 2 is hours and 0,75 must be conv to minutes
Posted
Updated 1-Dec-15 19:18pm
v3
Comments
phil.o 30-Nov-15 11:10am    
Tip: 0.75 hour = 0.75 x 60 minutes :)
ZurdoDev 30-Nov-15 11:39am    
Refer to the text function in Excel.
Patrice T 30-Nov-15 15:08pm    
What have you done so far ?
Member 12176259 2-Dec-15 7:43am    
Thank you for your interest. I solved it by use of =INT(), regards Hans

1 solution

Try it like this :
VB
Dim z As Single = 2.75
Dim z1 As Single = Math.Truncate(z)
Dim z2 As Single = z - z1
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900