To list down data from another sheet using IFERROR formula with INDEX, SMALL and ROW function

Kenor

Board Regular
Joined
Dec 8, 2020
Messages
116
Office Version
  1. 2016
Platform
  1. Windows
Hi All,

Need anyone helps. What's wrong with the below formula?

I want to use this formula

=IFERROR(INDEX(STORAGE_DATA!$E$3:$E$200,SMALL(IF(1=((--(INV_A6082!$I$1=STORAGE_DATA!$D$3:$D$200))*(--(INV_A6082!$K$1=STORAGE_DATA!$G$3:$G$200))),ROW(STORAGE_DATA!$E$3:$E$200)-4,""),ROW()-4)),"")

To list down data based on multiple criteria from the below 'STORAGE_DATA' sheet

1648612090407.png


To 'INV_A6082' sheet

1648612212332.png
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
For your information,

I have used the same formula before in other workbooks and it works just fine.

Only this time, try using it in another workbook. Looks like there's a problem. I'm trying to find the reason.
 
Upvote 0
Sorry, I already answered your question
My apologies, I didn't see that reply.

Your formula should be
Excel Formula:
=IFERROR(INDEX(STORAGE_DATA!$E$3:$E$200,SMALL(IF(1=((--(INV_A6082!$I$1=STORAGE_DATA!$D$3:$D$200))*(--(INV_A6082!$K$1=STORAGE_DATA!$G$3:$G$200))),ROW(STORAGE_DATA!$E$3:$E$200)-row(STORAGE_DATA!$E$3)+1,""),ROW(H$3:H3))),"")
although the formula that Jason posted should work
 
Upvote 0
My apologies, I didn't see that reply.

Your formula should be
Excel Formula:
=IFERROR(INDEX(STORAGE_DATA!$E$3:$E$200,SMALL(IF(1=((--(INV_A6082!$I$1=STORAGE_DATA!$D$3:$D$200))*(--(INV_A6082!$K$1=STORAGE_DATA!$G$3:$G$200))),ROW(STORAGE_DATA!$E$3:$E$200)-row(STORAGE_DATA!$E$3)+1,""),ROW(H$3:H3))),"")
although the formula that Jason posted should work
Sorry, it's also the same as Jason posted.

No error but no data coming out.
 
Upvote 0
In that case can you post some sample data.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
FG Database Bundle.xlsm
ABCDEFGHIJKL
1SUMMARY → A6082INVENTORY →A608250
2ØIN (pcs)OUT (pcs)TOTAL STOCKRemarkBUNDLE NOIN (pcs)OUT (pcs)TOTAL STOCKLOT NO
3000 
4000 
5000 
6000 
7000 
8
9TOTAL =000
10
11
12
13
14
15
16
17
18
INV_A6082
Cell Formulas
RangeFormula
B3:C3B3=H101
D3D3=B3-C3
B4:D4B4=N101
B5:D5B5=T125
B6:D6B6=Z101
B7:D7B7=AF101
H3H3=IFERROR(INDEX(STORAGE_DATA!$E$3:$E$200,SMALL(IF(1=((--(INV_A6082!$I$1=STORAGE_DATA!$D$3:$D$200))*(--(INV_A6082!$K$1=STORAGE_DATA!$G$3:$G$200))),ROW(STORAGE_DATA!$E$3:$E$200)-ROW(STORAGE_DATA!$E$3)+1,""),ROW(H$3:H3))),"")
H4:H6H4=IFERROR(INDEX(STORAGE_DATA!$E$3:$E$200,SMALL(IF(1=((--(INV_A6082!$I$1=STORAGE_DATA!$D$3:$D$200))*(--(INV_A6082!$K$1=STORAGE_DATA!$G$3:$G$200))),ROW(STORAGE_DATA!$E$3:$E$200)-ROW(STORAGE_DATA!$E$3)+1,""),ROW(H$3:H4))),"")
H7H7=IFERROR(INDEX(STORAGE_DATA!$E$3:$E$200,SMALL(IF(1=((--(INV_A6082!$I$1=STORAGE_DATA!$D$3:$D$200))*(--(INV_A6082!$K$1=STORAGE_DATA!$G$3:$G$200))),ROW(STORAGE_DATA!$E$3:$E$200)-4,""),ROW()-4)),"")
B9:D9B9=SUM(B3:B8)
Press CTRL+SHIFT+ENTER to enter array formulas.
Cells with Data Validation
CellAllowCriteria
I1List=All_Alloy
K1List=REM_1
 
Upvote 0
FG Database Bundle.xlsm
ABCDEFGHIJKL
1STORAGE_DATADataBase
2DateTimePICModelBundle NoLot NoØQty (pcs)SoakingWeight (kg)Length (mm)
316/03/202210:10:56SHAHAHS-2P 22-002 11122V2 / 03222V16917HO8675000
416/03/202210:11:04SHAHAHS-2P 22-004 03222V2 7915HO10035000
516/03/202210:11:06SHAHAHS-2P 22-004 03222V1 6717HO8185000
616/03/202210:11:07SHAHAHS-2P 22-005 03222V1 6717HO8185000
716/03/202210:11:09SHAHAHS-2P 22-011 04222V1 5130HO8365000
816/03/202210:11:10SHAHAHS-2P 22-012 04222V1 5130HO8365000
916/03/202210:10:56SHAHAHS-2P 22-002 11122V2 / 03222V16917HO8675000
1016/03/202210:11:04SHAHAHS-2P 22-004 03222V2 7915HO10035000
1116/03/202210:11:06SHAHAHS-2P 22-004 03222V1 6717HO8185000
1216/03/202210:11:07SHAHAHS-2P 22-005 03222V1 6717HO8185000
1316/03/202210:11:09SHAHAHS-2P 22-011 04222V1 5130HO8365000
1416/03/202210:11:10SHAHAHS-2P 22-012 04222V1 5130HO8365000
1521/03/202214:10:21SHAHA6082 22-437 06322V1 5218H 5064906
1621/03/202214:10:23SHAHA6082 22-437 09322V2 525H 1414906
1721/03/202214:10:24SHAHA6082 22-438 09322V2 5223H 6474906
1821/03/202214:10:25SHAHA6082 22-439 09322V2 5223H 6474906
1921/03/202214:10:25SHAHA6082 22-440 09322V2 5223H 6474906
2021/03/202214:10:26SHAHA6082 22-441 09322V2 5223H 6474906
2121/03/202214:10:27SHAHA6082 22-442 09322V2 5223H 6474906
2221/03/202214:10:28SHAHA6082 22-443 09322V2 5223H 6474906
STORAGE_DATA
 
Upvote 0
Like I said, no data meeting the criteria.

You're looking for a value of 50 in column G and it doesn't exist.
 
Upvote 0
Thanks for that.
The first problem I see is that col D has spaces after the values which I1 doesn't.
 
Upvote 0

Forum statistics

Threads
1,214,787
Messages
6,121,569
Members
449,038
Latest member
Guest1337

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