How to extract specific data from a cell

shlomek12

Board Regular
Joined
Aug 2, 2011
Messages
242
I am looking to get out from all cells the letters I made in buld out from this cell

https://www.screencast.com/t/apAeD0FCrE6

[TABLE="width: 723"]
<tbody>[TR]
[TD]walgreens.com/store/c/as-seen-on-tv-roll-a-lotion-applicator/ID=prod6095201-product[/TD]
[/TR]
[TR]
[TD]walgreens.com/store/c/the-ove-glove-hot-surface-handler-oven-mitt/ID=prod6021452-product[/TD]
[/TR]
[TR]
[TD]walgreens.com/store/c/finishing-touch-lumina-personal-hair-remover/ID=prod2436909-product

[/TD]
[/TR]
</tbody>[/TABLE]
 
I need everything before the X,

CS/PK
40x10
4x9
28x1
12x6
14x1
6x1
-
36x1
24x1
144x1
12x12
224x1
12x12
1x1
1x1


How can I do it

Thanks in Advance
 
Upvote 0

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Like this:


Book1
AB
1CS/PK
240x1040
34x94
428x128
512x612
614x114
76x16
8-
936x136
1024x124
11144x1144
1212x1212
13224x1224
1412x1212
151x11
161x11
Sheet69
Cell Formulas
RangeFormula
B2=IFERROR(LEFT(A2,SEARCH("x",A2)-1)+0,"")


Formula copied down, results converted to Real Numbers in case you need to do further math.
 
Upvote 0
Thanks you so much

Can you please help me with this? I need the next number after "/", So if you please look on the sample below, you will see it mean number 12, but I need only the number

[TABLE="width: 550"]
<colgroup><col></colgroup><tbody>[TR]
[TD]AIR WICK AIR FRESHENER 12/8 oz SNUGGLE FRESH LINEN[/TD]
[/TR]
[TR]
[TD]AIR WICK AIR FRESHENER 12/8Z APPLE CINNAMON MEDLEY[/TD]
[/TR]
[TR]
[TD]AIR WICK AIR FRESHENER 12/8Z FRESH WATERS[/TD]
[/TR]
[TR]
[TD]AIR WICK AIR FRESHENER 12/8Z LAVENDER&CHAMOMILE[/TD]
[/TR]
[TR]
[TD]AIR WICK AIR FRESHENER 12/8Z MAGNOLIA & CHERRY BLOSSOM[/TD]
[/TR]
[TR]
[TD]AIR WICK AIR FRESHENER 12/8Z RAIN GARDEN[/TD]
[/TR]
[TR]
[TD]AIR WICK AIR FRESHENER 12/8Z VANILLA INDULGENCE[/TD]
[/TR]
[TR]
[TD]AIR WICK AIR FRSHNR 12/8Z HAWAI'I EXOTIC PAPAYA & HIBISCUS FLWR[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Thanks you so much

Can you please help me with this? I need the next number after "/", So if you please look on the sample below, you will see it mean number 12, but I need only the number

[TABLE="width: 550"]
<tbody>[TR]
[TD]AIR WICK AIR FRESHENER 12/8 oz SNUGGLE FRESH LINEN
[/TD]
[/TR]
[TR]
[TD]AIR WICK AIR FRESHENER 12/8Z APPLE CINNAMON MEDLEY
[/TD]
[/TR]
[TR]
[TD]AIR WICK AIR FRESHENER 12/8Z FRESH WATERS
[/TD]
[/TR]
[TR]
[TD]AIR WICK AIR FRESHENER 12/8Z LAVENDER&CHAMOMILE
[/TD]
[/TR]
[TR]
[TD]AIR WICK AIR FRESHENER 12/8Z MAGNOLIA & CHERRY BLOSSOM
[/TD]
[/TR]
[TR]
[TD]AIR WICK AIR FRESHENER 12/8Z RAIN GARDEN
[/TD]
[/TR]
[TR]
[TD]AIR WICK AIR FRESHENER 12/8Z VANILLA INDULGENCE
[/TD]
[/TR]
[TR]
[TD]AIR WICK AIR FRSHNR 12/8Z HAWAI'I EXOTIC PAPAYA & HIBISCUS FLWR
[/TD]
[/TR]
</tbody>[/TABLE]

See Red above, Do you need the 12, or the 8?
If it's the 8, can it ever be 2 or more digits?
 
Upvote 0
Here you go, result converted to Real Number:


Book1
AB
1AIR WICK AIR FRESHENER 12/8 oz SNUGGLE FRESH LINEN12
2AIR WICK AIR FRESHENER 12/8Z APPLE CINNAMON MEDLEY12
3AIR WICK AIR FRESHENER 12/8Z FRESH WATERS12
4AIR WICK AIR FRESHENER 12/8Z LAVENDER&CHAMOMILE12
5AIR WICK AIR FRESHENER 8/8Z LAVENDER&CHAMOMILE8
6AIR WICK AIR FRESHENER 111/8Z MAGNOLIA & CHERRY BLOSSOM111
7AIR WICK AIR FRESHENER 12/8Z MAGNOLIA & CHERRY BLOSSOM12
8AIR WICK AIR FRESHENER 12/8Z RAIN GARDEN12
9AIR WICK AIR FRESHENER 12/8Z VANILLA INDULGENCE12
10AIR WICK AIR FRSHNR 12/8Z HAWAI'I EXOTIC PAPAYA & HIBISCUS FLWR12
Sheet72
Cell Formulas
RangeFormula
B1=RIGHT(SUBSTITUTE(LEFT(A1,FIND("/",A1)-1)," ",REPT(" ",15)),15)+0


Formula copied down.
 
Upvote 0
I am getting back the "VALUE error

=RIGHT(SUBSTITUTE(LEFT(A1,FIND("/",A1)-1)," ",REPT(" ",15)),15)+0

Thanks in advance for your help
 
Upvote 0
What you have there are LETTERS in front of the /, that was not in any of your samples above, in these cases, what do you need done?
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,323
Members
452,635
Latest member
laura12345

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