V
Valerie
Hello. I am trying to create a custom function to convert an SAP life format
into total number of months where the reference in the function is to the one
cell. SAP cell is formatted as text and shows as "000/000" where the first
set of zeros represents years and second set represents months. I want this
converted to total number of months. Say I have 006/003 - this would be 6
yrs 3 mos for a total of 75 months. I need the number 75. I have done this
with a formula:
=Value(Left(A2, 3) * 12) + Value(Right(A2, 3))
but this is cumbersome every time I want to do this. I would like a
function where I can select the cell needing conversion and the function
takes care of the rest. Can this be done as a custom function?
Thanks in advance!
Valerie
into total number of months where the reference in the function is to the one
cell. SAP cell is formatted as text and shows as "000/000" where the first
set of zeros represents years and second set represents months. I want this
converted to total number of months. Say I have 006/003 - this would be 6
yrs 3 mos for a total of 75 months. I need the number 75. I have done this
with a formula:
=Value(Left(A2, 3) * 12) + Value(Right(A2, 3))
but this is cumbersome every time I want to do this. I would like a
function where I can select the cell needing conversion and the function
takes care of the rest. Can this be done as a custom function?
Thanks in advance!
Valerie