deanlee17
asked on
Convert mm into cm
Hi guys,
I currently have the following in column A:
220 x 300
250 x 250
330 x 300
I need column B to be:
22cm x 30cm
25cm x 25cm
33cm x 30cm
Is this possible in an equation?
Many Thanks,
Dean.
I currently have the following in column A:
220 x 300
250 x 250
330 x 300
I need column B to be:
22cm x 30cm
25cm x 25cm
33cm x 30cm
Is this possible in an equation?
Many Thanks,
Dean.
If your data starts in row 2 then enter this formula in row 2 of any blank column
=LEFT(A2,FIND(" ",A2)-1)/10&"cm"&" x "&RIGHT(A2,LEN(A2)-FIND(" x ",A2)-2)/10&"cm"
and copy it down.
=LEFT(A2,FIND(" ",A2)-1)/10&"cm"&" x "&RIGHT(A2,LEN(A2)-FIND(" x ",A2)-2)/10&"cm"
and copy it down.
The Solution is :
in next column write:
=LEFT(A2,3)/10 & "cm x " & RIGHT(A2,3)/10 & "cm"
Use , between A2 & 3.
Thanks,
in next column write:
=LEFT(A2,3)/10 & "cm x " & RIGHT(A2,3)/10 & "cm"
Use , between A2 & 3.
Thanks,
ASKER
Rgonzo1971, im getting error in formula.
ssaqibh: That works perfectly, but ive also noticed some cells have:
350 x 350 x 700
Can we change the formula to deal with this also?
ssaqibh: That works perfectly, but ive also noticed some cells have:
350 x 350 x 700
Can we change the formula to deal with this also?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks ssaqibh, thats a pretty impressive equation. Thanks for clearing up the Rgonzo1971 post too.
If your numbers are all fixed at 3 digits then you can use this simplified formula
=LEFT(A2,3)/10&"cm x "&IF(LEN(A2)>9,MID(A2,7,3) /10&"cm x ","")&LEFT(A2,3)/10&"cm"
=LEFT(A2,3)/10&"cm x "&IF(LEN(A2)>9,MID(A2,7,3)
pls try
Open in new window
Regards