I found the solution to many of my issues by searching the board, however I am sure my formulas could be at least cleaned up or that there is a better way to do what I am attempting.
I am starting with a column of numbers that may or may not contain decimal points. I need to remove the decimal point and replace it with a single quote. (I take the results and rename files with a batch process & can't have the decimal before the file extension -ie water_bottle_6.5_oz.jpg has to be water_bottle_6'5_oz.jpg)
I am using a bunch of formulas, in fact, my number starts in col.A and my final answer ends up in col.H. I use LEN, ISERROR & FIND, VALUE, IF and CONCATENATE. Copies of the actual formulas are below.
I guess my main question is: Am I doing this the best way?
CELLA2 original input
COL.B =VALUE(LEN(A2))
COL.C =IF(ISERROR(VALUE(FIND(".",A2))),A2,FIND(".",A2))
COL.D =VALUE(B2-C2)
COL.E =VALUE(LEFT(A2,B2-((B2-C2)+1)))
COL.F =VALUE(RIGHT(A2,(ABS(B2-C2))))
COL.G =IF(E2-F2=0,0,F2)
COL.H =CONCATENATE(E2,"'",G2)
Final outputs 5 = 5'0 5.1 = 5'1 5.135 = 5'135 125.1 = 125'1 etc.
(also, if the staring number is a whole number, the result DOES NOT have to be 5'0 it could just be 5; however that is the only way i could get the final answer to work)
I am starting with a column of numbers that may or may not contain decimal points. I need to remove the decimal point and replace it with a single quote. (I take the results and rename files with a batch process & can't have the decimal before the file extension -ie water_bottle_6.5_oz.jpg has to be water_bottle_6'5_oz.jpg)
I am using a bunch of formulas, in fact, my number starts in col.A and my final answer ends up in col.H. I use LEN, ISERROR & FIND, VALUE, IF and CONCATENATE. Copies of the actual formulas are below.
I guess my main question is: Am I doing this the best way?
CELLA2 original input
COL.B =VALUE(LEN(A2))
COL.C =IF(ISERROR(VALUE(FIND(".",A2))),A2,FIND(".",A2))
COL.D =VALUE(B2-C2)
COL.E =VALUE(LEFT(A2,B2-((B2-C2)+1)))
COL.F =VALUE(RIGHT(A2,(ABS(B2-C2))))
COL.G =IF(E2-F2=0,0,F2)
COL.H =CONCATENATE(E2,"'",G2)
Final outputs 5 = 5'0 5.1 = 5'1 5.135 = 5'135 125.1 = 125'1 etc.
(also, if the staring number is a whole number, the result DOES NOT have to be 5'0 it could just be 5; however that is the only way i could get the final answer to work)