Hi Abhijeet ,
The issue is simple ; you want the value which is in Time format to be displayed as a value in decimal format.
Time values in Excel are decimal numbers , but their range is from 0 through 1 ; thus a Time value such as 03:00 is actually a decimal value of 0.125 , while a Time value of 16:00 is actually a decimal value of 0.666667.
To actually display a value of 0.666667 as 16.00 is not possible using just cell formats ; you have two options :
1. Use a formula to convert the value from 0.666667 to 16.00 ; Luke has already posted a formula which does exactly this ; since it is a formula , it cannot change the value within the same cell ; you need to enter this formula in another cell.
2. Use a macro , which does the conversion ; since it is a macro , it can replace the existing Time values with the desired values.
If you want a macro , do you want one which does the conversion and replacement as you enter a Time value , or do you want one which operates on a range of already entered Time values , does the conversion on the entire range , and repopulates all the cells in the range with their corresponding hh.mm values.
The first one will be a Worksheet_Change event procedure , while the second will be a procedure which you will have to run each time you want the conversion done.
Please clarify.
Narayan