Extract multiple row values based on one cell match from another sheet input

sugasen

New Member
Joined
Feb 6, 2014
Messages
3
Need to extract multiple row values based on input in another sheet(SHEET2) cell by matching one column (COULMN-B IN SHEET1) cell values even repeating

sno tag size Type sign
1 E-1750 10 SB A
2 E-1750 6 SP B
3 E-1730 0.5 SB B
4 E-1750 1 SP C
5 E-1880 0.5 CP A
6 E-1750 0.5 SB B
7 E-1730 6 SP B

INPUT : E-1750 IN CELL A2 IN SHEET2 FORMULAS IN A3,A4,A5,A6 AND BELOW

OUTPUT
sno tag size type sign
1 E-1750 10 SB A
2 E-1750 6 SP B
3 E-1750 1 SP C
4 E-1750 0.5 SB B

OUTPUT TABLE SHOULD HAVE SERIAL NUMBER(sno) BY 1,2,3,4 ....
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

Book1
ABCDE
1snotagsizeTypesign
21E-175010SBA
32E-17506SPB
43E-17300.5SBB
54E-17501SPC
65E-18800.5CPA
76E-17500.5SBB
87E-17306SPB
Sheet2



Book1
ABCDE
1E-1750
2snotagsizetypesign
31E-175010SBA
42E-17506SPB
53E-17501SPC
64E-17500.5SBB
7
Sheet1


In A3 just enter and copy down:

=IF(B3="","",ROWS($1:1))

In B3 control+shift+enter, not just enter, copy across, and down:

=IFERROR(INDEX(Sheet2!$A$2:$E$8,SMALL(IF(Sheet2!$B$2:$B$8=$A$1,ROW(Sheet2!$A$2:$E$8)-ROW(INDEX(Sheet2!$A$2:$E$8,1,1))+1),ROWS($1:1)),MATCH(B$2,Sheet2!$A$1:$E$1,0)),"")
 
Upvote 0
ABCDE
1snotagsizeTypesign
21E-175010SBA
32E-17506SPB
43E-17300.5SBB
54E-17501SPC
65E-18800.5CPA
76E-17500.5SBB
87E-17306SPB

<colgroup><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet2

ABCDE
1E-1750
2snotagsizetypesign
31E-175010SBA
42E-17506SPB
53E-17501SPC
64E-17500.5SBB
7

<colgroup><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

In A3 just enter and copy down:

=IF(B3="","",ROWS($1:1))

In B3 control+shift+enter, not just enter, copy across, and down:

=IFERROR(INDEX(Sheet2!$A$2:$E$8,SMALL(IF(Sheet2!$B$2:$B$8=$A$1,ROW(Sheet2!$A$2:$E$8)-ROW(INDEX(Sheet2!$A$2:$E$8,1,1))+1),ROWS($1:1)),MATCH(B$2,Sheet2!$A$1:$E$1,0)),"")

Hi
Thanks for your help nd great work ,unfortunately I got error of circular reference , formula need to be corrected

Thanks
 
Upvote 0
Hi
Thanks for your help nd great work ,unfortunately I got error of circular reference , formula need to be corrected

Thanks

Which formula?

Note that you need to map the set up correctly to your workbook:

Sheet2 >> INPUT
Sheet1 >> OUTPUT

The criterion is located in A1 of Sheet1.
 
Upvote 0
Hi Mr. Aladin
I am sorry , Formula applied as you said works very well , Thanks a lot , great work by you, LOT OF THANKS AND APPRECIATION

Regards
Kumar
 
Upvote 0

Forum statistics

Threads
1,214,566
Messages
6,120,257
Members
448,952
Latest member
kjurney

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