Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Convert mm into cm

Posted on 2013-12-06
7
Medium Priority
?
348 Views
Last Modified: 2013-12-06
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.
0
Comment
Question by:deanlee17
7 Comments
 
LVL 53

Expert Comment

by:Rgonzo1971
ID: 39700437
Hi,

pls try

=LEFT(A2;3)/10&"cm x "&RIGHT(A2;3)/10&"cm"

Open in new window

Regards
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 39700441
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.
0
 
LVL 1

Expert Comment

by:nigam333
ID: 39700443
The Solution is :
in next column write:
=LEFT(A2,3)/10 & "cm x " & RIGHT(A2,3)/10 & "cm"

Use , between A2 & 3.

Thanks,
0
Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

 

Author Comment

by:deanlee17
ID: 39700491
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?
0
 
LVL 43

Accepted Solution

by:
Saqib Husain, Syed earned 2000 total points
ID: 39700572
Try

=LEFT(A2,FIND(" ",A2)-1)/10&"cm"&" x "&IF(LEN(A2)-LEN(SUBSTITUTE(A2,"x",""))=2,MID(A2,FIND("x",A2)+2,FIND(" x ",A2,FIND(" x ",A2)+1)-FIND(" x ",A2)-2)/10&"cm x"&RIGHT(A2,LEN(A2)-FIND(" x ",A2,FIND(" x ",A2)+1)-2)/10&"cm",RIGHT(A2,LEN(A2)-FIND(" x ",A2)-2)/10&"cm")

BTW Rgonzo1971's formula is good if the number of digits in all numbers is exactly 3, except that his computer uses ; instead of , as a separator. Just replace the ; with , to use his formula.
0
 

Author Comment

by:deanlee17
ID: 39700590
Thanks ssaqibh, thats a pretty impressive equation. Thanks for clearing up the Rgonzo1971 post too.
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 39700596
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"
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
Outlook for dependable use in a very small business   This article is about using the Outlook application (part of Microsoft Office) in a very small business, or for homeowners where dependability and reliability are critical requirements. This …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question