javascript - Formatting cell value in Google Sheets -


i have number of hours 02:30, , want parse 2.5 automatically when place cell. try find solution bat didn't results. can me? tanks!

this four-step process. need 4 formulas. broken down steps follows.

start placing 2:30 in cell a1 proceed follows.

a2=hour(a1)   // step 1. hours a3=minute(a1) // step 2. minutes a4=a3/60      // step 3. minutes fraction of hour a5=a2+a4      // step 4. add step 1 result step 3 result 

or combine 1 big function:

b1=hour(a1)+(minute(a1)/60) 

here link spreadsheet proves above correct.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -