Search array from multi-line textbox

acombest

Board Regular
Joined
May 8, 2017
Messages
136
Column A1 to A100 has been numbered 1x(A1) to 100x(A100). I have a userform with a multiline textbox that has a large amount of data dropped in it (example below). I know how to make a search array but I do not know how to parse out the date the way I want. For set 1 (serial 1 amount 1) I want it to find the corresponding row in cloumn A and place the amount in column B. So for example 10x would be matched with column A row 10 and the corresponding amount should be placed on the same row in column B. So on would be row 11 column B should be 11 row 12 column B 602. Series 2 would follow the same logic but for column C. Lastly Each series of data could be up to 10 rows but will not always be 10 rows.


Serial 1
Amnt 1
Serial 2Amn2
10X1897X40
11X116X1018
12X6025X170
13X254X112
14X1533X102
15X
42X599
16X
16001X3141
17X54
18X1
19X500

<colgroup><col style="width:48pt" width="64" span="4"> </colgroup><tbody>
</tbody>


the search array I plan on using is as follows, but again I don't know how to parse the information
Code:
For i = 1 To Sh1.Cells(Rows.Count, "A").End(xlUp).Row
If Sh1.Cells(i, 1).Value = parsed data and series1 = true then
Sh1.Cells(i, 2).Value = ???? Parsed data match here
End If
Next i
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Forum statistics

Threads
1,214,979
Messages
6,122,552
Members
449,088
Latest member
davidcom

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