Convert years:months to months

J

Jen

Hello- I am hoping to use Excel to convert data that inputted in a
years:months format to just months. For example, I want to translate
5:3 to 63 months. I'm running into one hiccup: Excel views the
inputted data as time and is translating it into 5:30 AM, making
calculations challenging Does anyone have any tips?
 
B

Bernard Liengme

=HOUR(A1)*12+MINUTE(A1)/10
you may need to format the cell a General as Excel can be overhelpful and
use a time format
best wishes
 
R

Rick Rothstein

You accidentally included a "divide by 10" in your formula... removing it
makes your formula work correctly.
 
H

Harald Staff

OP says 5:3 is converted to 5:30, not 5:03.
Not so here, but what do I know.

Best wishes Harald
 
J

Jen

Thanks for all the replies. Your formula worked for the most part,
Bernard (=HOUR(A1)*12+MINUTE(A1)/10) except that, for example, it
generated 60.3 instead of 63 when computing 5:03 in months. I think I
may have led you astray b/c I accidentally mistyped that Excel
translates 5:3 to 5:30-- I meant to say it translates 5:03 to 5:03
AM. Would you be able to send me a modified formula that would
account for this? thanks so very much. Jen
 
J

Jen

Nevermind! I figured it out on my own. Deleting the /10 worked once
I switched the cell format back to general (for some reason Excel
changed it back to Time).

thank you again, everyone.
 
B

Bernard Liengme

I assumed OP had 5:30 not 5:03 !
cheers
Bernard

Rick Rothstein said:
You accidentally included a "divide by 10" in your formula... removing it
makes your formula work correctly.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top