how to copy matching text in excel into another cell

zubair99

New Member
Joined
Aug 8, 2015
Messages
49
Hi,
I need help on excel. I have 9000 rows with different length of text/description.

sample begin:
<p>-Input Power (Cells): 2-3S LiPo


-Brake: Proportional


-On Resistance, Brushless: 0.002 Ohm


-Continuous / Burst Current: 25 Amp / 90Amp


-Linear BEC: 5 Volts, 1 Amp


-Dimension: 30x26.1x13.8mm


-Weight: 26g


-Motor:4300kv</p>

sample end.

I want to extract weight only numbers as you can see above. problem is each row description text are different length so not any formula working which find
exact same space for each row. what is the function which extract and copy into weight colum.
please help
thanks
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
So in this sample you only want to extract this:
-Weight: 26g

And what column might we find this in?
And you want to extrack it to where.
And when you say extrack does that mean remove from current location and put someplace else or:
Copy to someplace else
 
Upvote 0
I need to weight:xx numbers only into another column which is only has weight values. I need copy only not remove or replace.

colum1 colum2
copy here copy from here
 
Upvote 0
I am sending excel worksheet screenshot
Ab2u1EXikJyuJeVw
 
Upvote 0
Try this Vba script:
If your not sure how to install script let me know.
Code:
Sub Test()
Application.ScreenUpdating = False
Dim i As Integer
Dim Lastrow As Long
Lastrow = Cells(Rows.Count, "I").End(xlUp).Row
For i = 1 To Lastrow
If InStr(Cells(i, 9).Value, "Weight") Then
Cells(i, 6).Value = Cells(i, 9).Value
End If
Next
Application.ScreenUpdating = True
End Sub
 
Upvote 0
I'm sorry I do not know how to extract just the weight value. Maybe someone else here at Mr. Excel can give you an answer.
 
Upvote 0

Forum statistics

Threads
1,223,914
Messages
6,175,351
Members
452,638
Latest member
Oluwabukunmi

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