Solved

Convert mm into cm

Posted on 2013-12-06
7
271 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 48

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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

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 500 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
My experience with Windows 10 over a one year period and suggestions for smooth operation
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

762 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now