Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

How to convert decimal years.months into a number that looks like years.months in Google Sheets

$
0
0

I previously asked how to convert age represented as year.months: 12.06 in to decimal equivalent, in this case 12.5. Fo the second step of my problem, I would like to be able to convert this decimal back to the year.month format after I have been able to run a calculation.

The original answer that came back and worked perfectly for step 1 was:

=regexextract(trim(F4), "^\d+") + regexextract(trim(F4), "\d+$") / 12

but as I am unfamiliar with regextract() I was unable to reverse engineer the formula to go from decimal to year.month.


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>