How do you separate "31.6x50" from a cell with text?

HANNC01

New Member
Joined
Jun 15, 2015
Messages
6
Hi,

I'm making labels for about 2,000 tiles in the showroom I work at and need to have the size of the tile in a separate column from the name for mail merging.

Example:
[TABLE="width: 271"]
<tbody>[TR]
[TD="class: xl69, width: 271"]Column A
ABBA Azul 31.6x5

I need it to be:
Column A Column B
ABBA Azul 31.6x5

I've looked at forums explaining how to take out numbers from addresses but because mine has numbers, full stops and x's I thought it would be worth asking if anyone could help me.

Any help is appreciated - thank you in advance![/TD]
[/TR]
</tbody>[/TABLE]
 
You have the tile size already in C column I guess, let's use that.
Depending on your locale you may need to do it slightly differently.
If your Excel uses commas as decimal separators try this:
=0,01 * 0,01 * VALUE(SUBSTITUTE(RIGHT(C1, LEN(C1) - FIND("x", C1)), ".", ",")) * VALUE(SUBSTITUTE(LEFT(C1, FIND("x", C1) - 1), ".", ","))
Otherwise it's slightly simpler:
=0.01 * 0.01 * VALUE(RIGHT(C1, LEN(C1) - FIND("x", C1))) * VALUE(LEFT(C1, FIND("x", C1) - 1))

This formula gives you tile area which you can use to compute more stuff.


Hi -
Thanks for the reply - it hasn't worked for me, I changed the cell from C1 to E2 but it came out as #VALUE!
Does it matter if the 'x' is upper or lower case?

Thanks.
 
Upvote 0

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Yes, my formula only splits on lower case 'x' I'm afraid. As a stopgap solution, try replacing both occurrences of FIND("x", E2) with FIND("X", SUBSTITUTE(E2, "x", "X")).
 
Upvote 0
Yes, my formula only splits on lower case 'x' I'm afraid. As a stopgap solution, try replacing both occurrences of FIND("x", E2) with FIND("X", SUBSTITUTE(E2, "x", "X")).
No need to do it that way... you can just change FIND to SEARCH and that will take care of the letter casing problem.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top