Extract text

Inacio11

New Member
Joined
Jul 3, 2018
Messages
36
Hi Masters
Could you please help me on issue below ? I need a formula to get "Result 1" and "Result 2", as follow:
Result 1: I need to extract just part of text as shown
Result 2: I need to get as result only a row that have the same letters from the range Int1 ~ Int5 (empty/blank cells should not be consider )
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Result 1[/TD]
[TD]Int1[/TD]
[TD]Int2[/TD]
[TD]Int3[/TD]
[TD]Int4[/TD]
[TD]Int5[/TD]
[TD]Result 2[/TD]
[/TR]
[TR]
[TD]C 440 LA6x2MNA[/TD]
[TD]6x2[/TD]
[TD]A[/TD]
[TD]A[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]A 250 LB6x2MSA[/TD]
[TD]6x2[/TD]
[TD]B[/TD]
[TD]B[/TD]
[TD][/TD]
[TD]B[/TD]
[TD][/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]Y360IB4X2 N B[/TD]
[TD]4x2[/TD]
[TD]A[/TD]
[TD]A[/TD]
[TD][/TD]
[TD]A[/TD]
[TD][/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]F 440 CA6x4ESZ[/TD]
[TD]6x4[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD][/TD]
[TD]C[/TD]
[TD]C[/TD]
[TD]check[/TD]
[/TR]
[TR]
[TD]T 440 LA8x2/4NMA[/TD]
[TD]8x2/4[/TD]
[TD][/TD]
[TD]B[/TD]
[TD]B[/TD]
[TD][/TD]
[TD]B[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]P310UB6X2*4 L B[/TD]
[TD]6x2*4[/TD]
[TD]D[/TD]
[TD]D[/TD]
[TD]N/A[/TD]
[TD][/TD]
[TD][/TD]
[TD]check[/TD]
[/TR]
[TR]
[TD]W 360 LA4x2MSZ[/TD]
[TD]4x2[/TD]
[TD]D[/TD]
[TD]D[/TD]
[TD]N/A[/TD]
[TD]D[/TD]
[TD]D[/TD]
[TD]check[/TD]
[/TR]
[TR]
[TD]R 320 UB6x2*4LB [/TD]
[TD]6x2*4[/TD]
[TD]C[/TD]
[TD]C[/TD]
[TD]C[/TD]
[TD]C[/TD]
[TD]C[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]C LB6x2MNA[/TD]
[TD]6x2[/TD]
[TD][/TD]
[TD]D[/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD][/TD]
[TD]check[/TD]
[/TR]
</tbody>[/TABLE]

Thanks in advance !
Inacio
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
This worked on your sample:


Excel 2010
ABCDEFGH
1Result 1Int1Int2Int3Int4Int5Result 2
2C 440 LA6x2MNA6x2AAA
3A 250 LB6x2MSA6x2BBBB
4Y360IB4X2 N B4x2AAAA
5F 440 CA6x4ESZ6x4CDCCcheck
6T 440 LA8x2/4NMA8x2/4BBBB
7P310UB6X2*4 L B6x2*4DDN/Acheck
8W 360 LA4x2MSZ4x2DDN/ADDcheck
9R 320 UB6x2*4LB6x2*4CCCCCC
10C LB6x2MNA6x2DABcheck
Sheet9 (2)
Cell Formulas
RangeFormula
B2{=LOWER(MID(A2,SEARCH("x",A2)-1,3+(SUM(--ISNUMBER(SEARCH({"/","~*"},A2)))*2)))}
H2{=IF(SUM(IFERROR(1/COUNTIF(C2:G2,C2:G2),0))=1,INDEX(C2:G2,MATCH(TRUE,IF(C2:G2<>"",IF(C2:G2<>"N/A",TRUE)),0)),"check")}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,169
Members
453,021
Latest member
Justyna P

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