To list down data from another sheet using IFERROR formula with multiple criteria

Kenor

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

This entry actually has similarities to my previous entry.

Only this time, I tried to use the same formula to get data from multiple criteria.

I have amended the formula, but not sure it is correct or not.
(Having two criteria is fixed but the other two criteria are variable)

Need anyone's help to verify.

I use this formula to get data from another sheet:

=IFERROR(INDEX(STORAGE_DATA!$H:$H,AGGREGATE(15,6,ROW(STORAGE_DATA!$H$3:$H$200)/($I$1=TRIM(STORAGE_DATA!$D$3:$D$200))/($K$1=STORAGE_DATA!$G$3:$G$200)/($H$3=STORAGE_DATA!$E$3:$E$200)/($L$3=STORAGE_DATA!$F$3:$F$200),ROWS($I$3:$I3))),"")

Can refer to the below data table,

Cell Formulas
RangeFormula
B3B3=H101
B4:D4B4=N101
B5:D5B5=T125
B6:D6B6=Z101
B7:D7B7=AF101
I3:I4I3=IFERROR(INDEX(STORAGE_DATA!$H:$H,AGGREGATE(15,6,ROW(STORAGE_DATA!$H$3:$H$200)/($I$1=TRIM(STORAGE_DATA!$D$3:$D$200))/($K$1=STORAGE_DATA!$G$3:$G$200)/($H$3=STORAGE_DATA!$E$3:$E$200)/($L$3=STORAGE_DATA!$F$3:$F$200),ROWS($I$3:$I3))),"")
I5:I8I5=IFERROR(INDEX(STORAGE_DATA!$H:$H,AGGREGATE(15,6,ROW(STORAGE_DATA!$H$3:$H$200)/($I$1=TRIM(STORAGE_DATA!$D$3:$D$200))/($K$1=STORAGE_DATA!$G$3:$G$200)/($H$3=STORAGE_DATA!$E$3:$E$200)/($L$3=STORAGE_DATA!$F$3:$F$200),ROWS($I$3:$I5))),"")
B9:D9B9=SUM(B3:B8)
H3:H24H3=IFERROR(INDEX(STORAGE_DATA!$E:$E,AGGREGATE(15,6,ROW(STORAGE_DATA!$E$3:$E$200)/($I$1=TRIM(STORAGE_DATA!$D$3:$D$200))/($K$1=STORAGE_DATA!$G$3:$G$200),ROWS($H$3:$H3))),"")
L3:L24L3=IFERROR(INDEX(STORAGE_DATA!$F:$F,AGGREGATE(15,6,ROW(STORAGE_DATA!$F$3:$F$200)/($I$1=TRIM(STORAGE_DATA!$D$3:$D$200))/($K$1=STORAGE_DATA!$G$3:$G$200),ROWS($L$3:$L3))),"")
Press CTRL+SHIFT+ENTER to enter array formulas.
Cells with Data Validation
CellAllowCriteria
I1List=All_Alloy
K1List=REM_1
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Hi All,

This entry actually has similarities to my previous entry.

Only this time, I tried to use the same formula to get data from multiple criteria.

I have amended the formula, but not sure it is correct or not.
(Having two criteria is fixed but the other two criteria are variable)

Need anyone's help to verify.

I use this formula to get data from another sheet:

=IFERROR(INDEX(STORAGE_DATA!$H:$H,AGGREGATE(15,6,ROW(STORAGE_DATA!$H$3:$H$200)/($I$1=TRIM(STORAGE_DATA!$D$3:$D$200))/($K$1=STORAGE_DATA!$G$3:$G$200)/($H$3=STORAGE_DATA!$E$3:$E$200)/($L$3=STORAGE_DATA!$F$3:$F$200),ROWS($I$3:$I3))),"")

Can refer to the below data table,

Cell Formulas
RangeFormula
B3B3=H101
B4:D4B4=N101
B5:D5B5=T125
B6:D6B6=Z101
B7:D7B7=AF101
I3:I4I3=IFERROR(INDEX(STORAGE_DATA!$H:$H,AGGREGATE(15,6,ROW(STORAGE_DATA!$H$3:$H$200)/($I$1=TRIM(STORAGE_DATA!$D$3:$D$200))/($K$1=STORAGE_DATA!$G$3:$G$200)/($H$3=STORAGE_DATA!$E$3:$E$200)/($L$3=STORAGE_DATA!$F$3:$F$200),ROWS($I$3:$I3))),"")
I5:I8I5=IFERROR(INDEX(STORAGE_DATA!$H:$H,AGGREGATE(15,6,ROW(STORAGE_DATA!$H$3:$H$200)/($I$1=TRIM(STORAGE_DATA!$D$3:$D$200))/($K$1=STORAGE_DATA!$G$3:$G$200)/($H$3=STORAGE_DATA!$E$3:$E$200)/($L$3=STORAGE_DATA!$F$3:$F$200),ROWS($I$3:$I5))),"")
B9:D9B9=SUM(B3:B8)
H3:H24H3=IFERROR(INDEX(STORAGE_DATA!$E:$E,AGGREGATE(15,6,ROW(STORAGE_DATA!$E$3:$E$200)/($I$1=TRIM(STORAGE_DATA!$D$3:$D$200))/($K$1=STORAGE_DATA!$G$3:$G$200),ROWS($H$3:$H3))),"")
L3:L24L3=IFERROR(INDEX(STORAGE_DATA!$F:$F,AGGREGATE(15,6,ROW(STORAGE_DATA!$F$3:$F$200)/($I$1=TRIM(STORAGE_DATA!$D$3:$D$200))/($K$1=STORAGE_DATA!$G$3:$G$200),ROWS($L$3:$L3))),"")
Press CTRL+SHIFT+ENTER to enter array formulas.
Cells with Data Validation
CellAllowCriteria
I1List=All_Alloy
K1List=REM_1

I need a formula for column I starting from I3 and down
 
Upvote 0
To get data from 'STORAGE_DATA Sheet' below

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
2321/03/202214:10:29SHAHA6082 22-444 09322V2 5223H 6474906
2421/03/202214:10:30SHAHA6082 22-445 09322V2 5223H 6474906
2521/03/202214:10:31SHAHA6082 22-446 09322V2 5223H 6474906
2621/03/202214:10:32SHAHA6082 22-447 09322V2 5223H 6474906
2721/03/202214:10:33SHAHA6082 22-448 09322V2 5223H 6474906
2821/03/202214:10:34SHAHA6082 22-449 09322V2 5223H 6474906
2921/03/202214:10:35SHAHA6082 22-450 09322V2 5223H 6474906
3021/03/202214:10:36SHAHA6082 22-451 09322V2 5223H 6474906
3121/03/202214:10:37SHAHA6082 22-452 09322V2 5223H 6474906
3221/03/202214:10:38SHAHA6082 22-453 09322V2 5223H 6474906
3321/03/202214:10:38SHAHA6082 22-454 10322V2 5223H 6474906
3421/03/202214:10:39SHAHA6082 22-455 10322V2 5223H 6474906
3521/03/202214:10:40SHAHA6082 22-456 10322V2 5223H 6474906
3621/03/202214:10:41SHAHA6082 22-457 10322V2 5223H 6474906
3721/03/202214:10:42SHAHA6082 22-458 10322V2 5223H 6474906
3821/03/202214:10:43SHAHA6082 22-459 10322V2 5223H 6474906
3921/03/202214:10:44SHAHA6082 22-460 10322V2 5223H 6474906
4021/03/202214:10:45SHAHA6082 22-461 10322V2 5223H 6474906
4121/03/202214:10:46SHAHA6082 22-462 10322V2 5223H 6474906
4221/03/202214:10:46SHAHA6082 22-463 10322V2 5223H 6474906
4321/03/202214:10:47SHAHA6082 22-464 10322V2 5223H 6474906
4421/03/202214:10:48SHAHA6082 22-465 10322V2 5223H 6474906
4521/03/202214:10:49SHAHA6082 22-466 10322V2 5223H 6474906
4621/03/202214:10:50SHAHA6082 22-467 10322V2 5223H 6474906
4721/03/202214:10:51SHAHA6082 22-468 10322V2 5223H 6474906
4821/03/202214:10:52SHAHA6082 22-469 10322V2 5223H 6474906
4921/03/202214:10:53SHAHA6082 22-602 03322V2 506H 1544842
5021/03/202214:10:54SHAHA6082 22-602 05322V1 5017H 4364842
5121/03/202214:10:55SHAHA6082 22-603 05322V1 5023H 5904842
5221/03/202214:10:55SHAHA6082 22-604 05322V1 5023H 5904842
5321/03/202214:10:56SHAHA6082 22-605 05322V1 5023H 5904842
5421/03/202214:10:57SHAHA6082 22-606 05322V1 5023H 5904842
5521/03/202214:10:58SHAHA6082 22-607 05322V1 5023H 5904842
5621/03/202214:10:59SHAHA6082 22-608 05322V1 5023H 5904842
5721/03/202214:11:00SHAHA6082 22-609 05322V1 5023H 5904842
5821/03/202214:11:01SHAHA6082 22-610 05322V1 5023H 5904842
5921/03/202214:11:02SHAHA6082 22-611 05322V1 5023H 5904842
6021/03/202214:11:03SHAHA6082 22-612 05322V1 5023H 5904842
6121/03/202214:11:04SHAHA6082 22-613 05322V1 5023H 5904842
6221/03/202214:11:05SHAHA6082 22-614 05322V1 5023H 5904842
6321/03/202214:11:06SHAHA6082 22-615 05322V1 5023H 5904842
6421/03/202214:11:07SHAHA6082 22-616 05322V1 5023H 5904842
6521/03/202214:11:07SHAHA6082 22-617 05322V1 5023H 5904842
6621/03/202214:11:09SHAHA6082 22-618 05322V1 5023H 5904842
6721/03/202214:11:10SHAHA6082 22-619 05322V1 5023H 5904842
6821/03/202214:11:11SHAHA6082 22-620 05322V1 5011H 2824842
6921/03/202214:11:11SHAHA6082 22-620 17322V1 5012H 3084842
7021/03/202214:11:12SHAHA6082 22-621 17322V1 5023H 5904842
7121/03/202214:11:13SHAHA6082 22-622 17322V1 5023H 5904842
7221/03/202214:11:14SHAHA6082 22-623 17322V1 5023H 5904842
7321/03/202214:11:15SHAHA6082 22-624 17322V1 5023H 5904842
7422/03/202214:11:11TRYA6082 22-62517322V1 5012H 3084842
7522/03/202214:11:12TRYA6082 22-62617322V1 5023H 5904842
7622/03/202214:11:13TRYA6082 22-62717322V1 5023H 5904842
7722/03/202214:11:14TRYA6082 22-62817322V1 5023H 5904842
7822/03/202214:11:15TRYA6082 22-62917322V1 5023H 5904842
STORAGE_DATA
 
Upvote 0
I just want to know why I find it difficult to get the value when using the same formula as I used for other Databases before.

Below is an example I did for my previous RM_Database_Trial_2. The formula works well.
Only the IN and OUT columns, I need to edit each row number when copying the same formula for the next row. It's a bit difficult for me..:(

RM_Database_Trial_2.xlsm
STUVW
1INVENTORY →A6082-2POT
2IDNET WEIGHT (Kg) IN NET WEIGHT (Kg) OUTTOTAL STOCKTRANSFER #
33:50:38430.5043105/01/2021
43:52:50395.5395.5005/01/2021
57:11:15474.5474.5005/01/2021
614:24:59411.5411.5005/01/2021
716:31:12467.5467.5005/01/2021
8 000 
9 000 
10 000 
11 000 
12 000 
13 000 
14 000 
15 000 
16 000 
17 000 
18 000 
19 000 
20 0 
21 0 
22 0 
23 0 
24 0 
25 0 
Inventory-A6082-2
Cell Formulas
RangeFormula
T3T3=IFERROR(INDEX('Register IN'!$A$3:$K$1674,MATCH(1,('Inventory-A6082-2'!$S$3='Register IN'!$C$3:$C$1674)*('Inventory-A6082-2'!$W$3='Register IN'!$I$3:$I$1674)*('Inventory-A6082-2'!$T$1='Register IN'!$D$3:$D$1674)*('Inventory-A6082-2'!$U$1='Register IN'!$E$3:$E$1674),0),11),0)
U3U3=IFERROR(INDEX('Register OUT'!$A$3:$K$1997,MATCH(1,('Inventory-A6082-2'!$S$3='Register OUT'!$C$3:$C$1997)*('Inventory-A6082-2'!$W$3='Register OUT'!$I$3:$I$1997)*('Inventory-A6082-2'!$T$1='Register OUT'!$D$3:$D$1997)*('Inventory-A6082-2'!$U$1='Register OUT'!$E$3:$E$1997),0),11),0)
T4T4=IFERROR(INDEX('Register IN'!$A$3:$K$1674,MATCH(1,('Inventory-A6082-2'!$S$4='Register IN'!$C$3:$C$1674)*('Inventory-A6082-2'!$W$4='Register IN'!$I$3:$I$1674)*('Inventory-A6082-2'!$T$1='Register IN'!$D$3:$D$1674)*('Inventory-A6082-2'!$U$1='Register IN'!$E$3:$E$1674),0),11),0)
U4U4=IFERROR(INDEX('Register OUT'!$A$3:$K$1997,MATCH(1,('Inventory-A6082-2'!$S$4='Register OUT'!$C$3:$C$1997)*('Inventory-A6082-2'!$W$4='Register OUT'!$I$3:$I$1997)*('Inventory-A6082-2'!$T$1='Register OUT'!$D$3:$D$1997)*('Inventory-A6082-2'!$U$1='Register OUT'!$E$3:$E$1997),0),11),0)
T5T5=IFERROR(INDEX('Register IN'!$A$3:$K$1674,MATCH(1,('Inventory-A6082-2'!$S$5='Register IN'!$C$3:$C$1674)*('Inventory-A6082-2'!$W$5='Register IN'!$I$3:$I$1674)*('Inventory-A6082-2'!$T$1='Register IN'!$D$3:$D$1674)*('Inventory-A6082-2'!$U$1='Register IN'!$E$3:$E$1674),0),11),0)
U5U5=IFERROR(INDEX('Register OUT'!$A$3:$K$1997,MATCH(1,('Inventory-A6082-2'!$S$5='Register OUT'!$C$3:$C$1997)*('Inventory-A6082-2'!$W$5='Register OUT'!$I$3:$I$1997)*('Inventory-A6082-2'!$T$1='Register OUT'!$D$3:$D$1997)*('Inventory-A6082-2'!$U$1='Register OUT'!$E$3:$E$1997),0),11),0)
T6T6=IFERROR(INDEX('Register IN'!$A$3:$K$1674,MATCH(1,('Inventory-A6082-2'!$S$6='Register IN'!$C$3:$C$1674)*('Inventory-A6082-2'!$W$6='Register IN'!$I$3:$I$1674)*('Inventory-A6082-2'!$T$1='Register IN'!$D$3:$D$1674)*('Inventory-A6082-2'!$U$1='Register IN'!$E$3:$E$1674),0),11),0)
U6U6=IFERROR(INDEX('Register OUT'!$A$3:$K$1997,MATCH(1,('Inventory-A6082-2'!$S$6='Register OUT'!$C$3:$C$1997)*('Inventory-A6082-2'!$W$6='Register OUT'!$I$3:$I$1997)*('Inventory-A6082-2'!$T$1='Register OUT'!$D$3:$D$1997)*('Inventory-A6082-2'!$U$1='Register OUT'!$E$3:$E$1997),0),11),0)
T7T7=IFERROR(INDEX('Register IN'!$A$3:$K$1674,MATCH(1,('Inventory-A6082-2'!$S$7='Register IN'!$C$3:$C$1674)*('Inventory-A6082-2'!$W$7='Register IN'!$I$3:$I$1674)*('Inventory-A6082-2'!$T$1='Register IN'!$D$3:$D$1674)*('Inventory-A6082-2'!$U$1='Register IN'!$E$3:$E$1674),0),11),0)
U7U7=IFERROR(INDEX('Register OUT'!$A$3:$K$1997,MATCH(1,('Inventory-A6082-2'!$S$7='Register OUT'!$C$3:$C$1997)*('Inventory-A6082-2'!$W$7='Register OUT'!$I$3:$I$1997)*('Inventory-A6082-2'!$T$1='Register OUT'!$D$3:$D$1997)*('Inventory-A6082-2'!$U$1='Register OUT'!$E$3:$E$1997),0),11),0)
T8T8=IFERROR(INDEX('Register IN'!$A$3:$K$1674,MATCH(1,('Inventory-A6082-2'!$S$8='Register IN'!$C$3:$C$1674)*('Inventory-A6082-2'!$W$8='Register IN'!$I$3:$I$1674)*('Inventory-A6082-2'!$T$1='Register IN'!$D$3:$D$1674)*('Inventory-A6082-2'!$U$1='Register IN'!$E$3:$E$1674),0),11),0)
U8U8=IFERROR(INDEX('Register OUT'!$A$3:$K$1997,MATCH(1,('Inventory-A6082-2'!$S$8='Register OUT'!$C$3:$C$1997)*('Inventory-A6082-2'!$W$8='Register OUT'!$I$3:$I$1997)*('Inventory-A6082-2'!$T$1='Register OUT'!$D$3:$D$1997)*('Inventory-A6082-2'!$U$1='Register OUT'!$E$3:$E$1997),0),11),0)
T9T9=IFERROR(INDEX('Register IN'!$A$3:$K$1674,MATCH(1,('Inventory-A6082-2'!$S$9='Register IN'!$C$3:$C$1674)*('Inventory-A6082-2'!$W$9='Register IN'!$I$3:$I$1674)*('Inventory-A6082-2'!$T$1='Register IN'!$D$3:$D$1674)*('Inventory-A6082-2'!$U$1='Register IN'!$E$3:$E$1674),0),11),0)
U9U9=IFERROR(INDEX('Register OUT'!$A$3:$K$1997,MATCH(1,('Inventory-A6082-2'!$S$9='Register OUT'!$C$3:$C$1997)*('Inventory-A6082-2'!$W$9='Register OUT'!$I$3:$I$1997)*('Inventory-A6082-2'!$T$1='Register OUT'!$D$3:$D$1997)*('Inventory-A6082-2'!$U$1='Register OUT'!$E$3:$E$1997),0),11),0)
T10T10=IFERROR(INDEX('Register IN'!$A$3:$K$1674,MATCH(1,('Inventory-A6082-2'!$S$10='Register IN'!$C$3:$C$1674)*('Inventory-A6082-2'!$W$10='Register IN'!$I$3:$I$1674)*('Inventory-A6082-2'!$T$1='Register IN'!$D$3:$D$1674)*('Inventory-A6082-2'!$U$1='Register IN'!$E$3:$E$1674),0),11),0)
U10U10=IFERROR(INDEX('Register OUT'!$A$3:$K$1997,MATCH(1,('Inventory-A6082-2'!$S$10='Register OUT'!$C$3:$C$1997)*('Inventory-A6082-2'!$W$10='Register OUT'!$I$3:$I$1997)*('Inventory-A6082-2'!$T$1='Register OUT'!$D$3:$D$1997)*('Inventory-A6082-2'!$U$1='Register OUT'!$E$3:$E$1997),0),11),0)
T11T11=IFERROR(INDEX('Register IN'!$A$3:$K$1674,MATCH(1,('Inventory-A6082-2'!$S$11='Register IN'!$C$3:$C$1674)*('Inventory-A6082-2'!$W$11='Register IN'!$I$3:$I$1674)*('Inventory-A6082-2'!$T$1='Register IN'!$D$3:$D$1674)*('Inventory-A6082-2'!$U$1='Register IN'!$E$3:$E$1674),0),11),0)
U11U11=IFERROR(INDEX('Register OUT'!$A$3:$K$1997,MATCH(1,('Inventory-A6082-2'!$S$11='Register OUT'!$C$3:$C$1997)*('Inventory-A6082-2'!$W$11='Register OUT'!$I$3:$I$1997)*('Inventory-A6082-2'!$T$1='Register OUT'!$D$3:$D$1997)*('Inventory-A6082-2'!$U$1='Register OUT'!$E$3:$E$1997),0),11),0)
T12T12=IFERROR(INDEX('Register IN'!$A$3:$K$1674,MATCH(1,('Inventory-A6082-2'!$S$12='Register IN'!$C$3:$C$1674)*('Inventory-A6082-2'!$W$12='Register IN'!$I$3:$I$1674)*('Inventory-A6082-2'!$T$1='Register IN'!$D$3:$D$1674)*('Inventory-A6082-2'!$U$1='Register IN'!$E$3:$E$1674),0),11),0)
U12U12=IFERROR(INDEX('Register OUT'!$A$3:$K$1997,MATCH(1,('Inventory-A6082-2'!$S$12='Register OUT'!$C$3:$C$1997)*('Inventory-A6082-2'!$W$12='Register OUT'!$I$3:$I$1997)*('Inventory-A6082-2'!$T$1='Register OUT'!$D$3:$D$1997)*('Inventory-A6082-2'!$U$1='Register OUT'!$E$3:$E$1997),0),11),0)
T13T13=IFERROR(INDEX('Register IN'!$A$3:$K$1674,MATCH(1,('Inventory-A6082-2'!$S$13='Register IN'!$C$3:$C$1674)*('Inventory-A6082-2'!$W$13='Register IN'!$I$3:$I$1674)*('Inventory-A6082-2'!$T$1='Register IN'!$D$3:$D$1674)*('Inventory-A6082-2'!$U$1='Register IN'!$E$3:$E$1674),0),11),0)
U13U13=IFERROR(INDEX('Register OUT'!$A$3:$K$1997,MATCH(1,('Inventory-A6082-2'!$S$13='Register OUT'!$C$3:$C$1997)*('Inventory-A6082-2'!$W$13='Register OUT'!$I$3:$I$1997)*('Inventory-A6082-2'!$T$1='Register OUT'!$D$3:$D$1997)*('Inventory-A6082-2'!$U$1='Register OUT'!$E$3:$E$1997),0),11),0)
T14T14=IFERROR(INDEX('Register IN'!$A$3:$K$1674,MATCH(1,('Inventory-A6082-2'!$S$14='Register IN'!$C$3:$C$1674)*('Inventory-A6082-2'!$W$14='Register IN'!$I$3:$I$1674)*('Inventory-A6082-2'!$T$1='Register IN'!$D$3:$D$1674)*('Inventory-A6082-2'!$U$1='Register IN'!$E$3:$E$1674),0),11),0)
U14U14=IFERROR(INDEX('Register OUT'!$A$3:$K$1997,MATCH(1,('Inventory-A6082-2'!$S$14='Register OUT'!$C$3:$C$1997)*('Inventory-A6082-2'!$W$14='Register OUT'!$I$3:$I$1997)*('Inventory-A6082-2'!$T$1='Register OUT'!$D$3:$D$1997)*('Inventory-A6082-2'!$U$1='Register OUT'!$E$3:$E$1997),0),11),0)
T15T15=IFERROR(INDEX('Register IN'!$A$3:$K$1674,MATCH(1,('Inventory-A6082-2'!$S$15='Register IN'!$C$3:$C$1674)*('Inventory-A6082-2'!$W$15='Register IN'!$I$3:$I$1674)*('Inventory-A6082-2'!$T$1='Register IN'!$D$3:$D$1674)*('Inventory-A6082-2'!$U$1='Register IN'!$E$3:$E$1674),0),11),0)
U15U15=IFERROR(INDEX('Register OUT'!$A$3:$K$1997,MATCH(1,('Inventory-A6082-2'!$S$15='Register OUT'!$C$3:$C$1997)*('Inventory-A6082-2'!$W$15='Register OUT'!$I$3:$I$1997)*('Inventory-A6082-2'!$T$1='Register OUT'!$D$3:$D$1997)*('Inventory-A6082-2'!$U$1='Register OUT'!$E$3:$E$1997),0),11),0)
T16T16=IFERROR(INDEX('Register IN'!$A$3:$K$1674,MATCH(1,('Inventory-A6082-2'!$S$16='Register IN'!$C$3:$C$1674)*('Inventory-A6082-2'!$W$16='Register IN'!$I$3:$I$1674)*('Inventory-A6082-2'!$T$1='Register IN'!$D$3:$D$1674)*('Inventory-A6082-2'!$U$1='Register IN'!$E$3:$E$1674),0),11),0)
U16U16=IFERROR(INDEX('Register OUT'!$A$3:$K$1997,MATCH(1,('Inventory-A6082-2'!$S$16='Register OUT'!$C$3:$C$1997)*('Inventory-A6082-2'!$W$16='Register OUT'!$I$3:$I$1997)*('Inventory-A6082-2'!$T$1='Register OUT'!$D$3:$D$1997)*('Inventory-A6082-2'!$U$1='Register OUT'!$E$3:$E$1997),0),11),0)
T17T17=IFERROR(INDEX('Register IN'!$A$3:$K$1674,MATCH(1,('Inventory-A6082-2'!$S$17='Register IN'!$C$3:$C$1674)*('Inventory-A6082-2'!$W$17='Register IN'!$I$3:$I$1674)*('Inventory-A6082-2'!$T$1='Register IN'!$D$3:$D$1674)*('Inventory-A6082-2'!$U$1='Register IN'!$E$3:$E$1674),0),11),0)
U17U17=IFERROR(INDEX('Register OUT'!$A$3:$K$1997,MATCH(1,('Inventory-A6082-2'!$S$17='Register OUT'!$C$3:$C$1997)*('Inventory-A6082-2'!$W$17='Register OUT'!$I$3:$I$1997)*('Inventory-A6082-2'!$T$1='Register OUT'!$D$3:$D$1997)*('Inventory-A6082-2'!$U$1='Register OUT'!$E$3:$E$1997),0),11),0)
T18T18=IFERROR(INDEX('Register IN'!$A$3:$K$1674,MATCH(1,('Inventory-A6082-2'!$S$18='Register IN'!$C$3:$C$1674)*('Inventory-A6082-2'!$W$18='Register IN'!$I$3:$I$1674)*('Inventory-A6082-2'!$T$1='Register IN'!$D$3:$D$1674)*('Inventory-A6082-2'!$U$1='Register IN'!$E$3:$E$1674),0),11),0)
U18U18=IFERROR(INDEX('Register OUT'!$A$3:$K$1997,MATCH(1,('Inventory-A6082-2'!$S$18='Register OUT'!$C$3:$C$1997)*('Inventory-A6082-2'!$W$18='Register OUT'!$I$3:$I$1997)*('Inventory-A6082-2'!$T$1='Register OUT'!$D$3:$D$1997)*('Inventory-A6082-2'!$U$1='Register OUT'!$E$3:$E$1997),0),11),0)
T19T19=IFERROR(INDEX('Register IN'!$A$3:$K$1674,MATCH(1,('Inventory-A6082-2'!$S$19='Register IN'!$C$3:$C$1674)*('Inventory-A6082-2'!$W$19='Register IN'!$I$3:$I$1674)*('Inventory-A6082-2'!$T$1='Register IN'!$D$3:$D$1674)*('Inventory-A6082-2'!$U$1='Register IN'!$E$3:$E$1674),0),11),0)
U19U19=IFERROR(INDEX('Register OUT'!$A$3:$K$1997,MATCH(1,('Inventory-A6082-2'!$S$19='Register OUT'!$C$3:$C$1997)*('Inventory-A6082-2'!$W$19='Register OUT'!$I$3:$I$1997)*('Inventory-A6082-2'!$T$1='Register OUT'!$D$3:$D$1997)*('Inventory-A6082-2'!$U$1='Register OUT'!$E$3:$E$1997),0),11),0)
V3:V25V3=T3-U3
W3:W25W3=IFERROR(INDEX('Register IN'!$I$3:$I$1674,SMALL(IF(1=((--('Inventory-A6082-2'!$T$1='Register IN'!$D$3:$D$1674))*(--('Inventory-A6082-2'!$U$1='Register IN'!$E$3:$E$1674))),ROW('Register IN'!$I$3:$I$1674)-2,""),ROW()-2)),"")
S3:S25S3=IFERROR(INDEX('Register IN'!$C$3:$C$1674,SMALL(IF(1=((--('Inventory-A6082-2'!$T$1='Register IN'!$D$3:$D$1674))*(--('Inventory-A6082-2'!$U$1='Register IN'!$E$3:$E$1674))),ROW('Register IN'!$C$3:$C$1674)-2,""),ROW()-2)),"")
Press CTRL+SHIFT+ENTER to enter array formulas.
Cells with Data Validation
CellAllowCriteria
T1List=All_Alloy
U1List=REM_1
 
Upvote 0
I get the data for RM_Database_Trial_2 is based on Register IN & Register OUT sheet as below.

RM_Database_Trial_2.xlsm
ABCDEFHIJK
1REGISTER INDatabase
2DateTimeIDAlloyRecycle MaterialIN (Kg)PICTransfer #Remark *(Bin/Pallet)Net Weight (Kg)
301/05/20213:47:373:50:38A6082-2POT430.5SHIVA05/01/2021431
401/05/20213:49:393:52:50A6082-2POT395.5SHIVA05/01/2021396
501/05/20217:00:547:03:02A6082-2CROP CASTING1331.5SHIVA05/01/2021350982
601/05/20217:08:097:11:15A6082-2POT474.5SHIVA05/01/2021475
701/05/20217:25:107:28:00A6082-2CROP CASTING1548.5SHIVA05/01/20213501199
801/05/20217:31:467:34:31MIXCROP CASTING710.5SHIVA05/01/2021242469
901/05/202111:25:1011:28:08AP-2POT431.5FAUZAN05/01/2021432
1001/05/202113:42:5113:45:57AP-2POT500FAUZAN05/01/2021500
1101/05/202114:22:5814:24:59A6082-2POT411.5ANBARUL05/01/2021412
1201/05/202116:28:2916:31:12A6082-2POT467.5ANBARUL05/01/2021468
1301/05/202118:27:3818:30:30A6082-2CROP CASTING1325ANBARUL05/01/20213201005
1401/05/202118:46:3818:49:46A6082-2CROP CASTING1341ANBARUL05/01/20213201021
1501/05/202118:50:1818:53:29A6082-2DR201.5ANBARUL05/01/202112190
1601/05/202120:39:1920:40:58A6082-2DR626SHIVA05/01/2021350276
170
180
190
200
Register IN
Cell Formulas
RangeFormula
K3:K20K3=F3-J3
 
Upvote 0
RM_Database_Trial_2.xlsm
ABCDEGHIJK
1REGISTER OUT
2DateTimeIDAlloyRecycle MaterialOUT (Kg)PICTransfer #Remark *(Bin/Pallet)Net Weight (Kg)
330/04/202117:40:067:04:32A6082-2POT385FAUZAN30/04/2021385
430/04/202117:40:217:07:01A6082-2POT395.5FAUZAN30/04/2021396
530/04/202118:04:3518:07:34A6082-2POT386.5ANBARUL30/04/2021387
630/04/202118:05:2818:07:34A6082-2POT386.5ANBARUL30/04/2021387
701/05/202111:25:2511:28:08AP-2POT431.5FAUZAN05/01/2021432
801/05/202113:43:2013:45:57AP-2POT500FAUZAN05/01/2021500
901/05/202114:22:2614:24:59A6082-2POT411.5ANBARUL05/01/2021412
1001/05/202117:09:0214:18:15A6082-2DR124.5FAUZAN28/04/202112113
1101/05/202117:09:1318:15:31A6082-2CROP CASTING1438.5FAUZAN30/04/20213201119
1201/05/202117:09:2120:22:19A6082-2POT298FAUZAN20/04/2021298
1301/05/202117:09:337:28:00A6082-2CROP CASTING1548.5FAUZAN05/01/20213501199
1401/05/202117:09:457:03:02A6082-2CROP CASTING1331.5FAUZAN05/01/2021350982
1501/05/202117:10:0118:23:00A6082-2CROP CASTING1288FAUZAN30/04/20212321056
1601/05/202117:10:1618:47:56A6082-2DR102.5FAUZAN27/04/20211291
1701/05/202117:10:2418:47:50A6082-2DR91FAUZAN30/04/202191
1801/05/202117:11:1015:16:13AP-2DR192FAUZAN30/04/2021192
1901/05/202117:11:2415:57:29A6061-9POT319FAUZAN29/04/2021319
2001/05/202117:11:4211:53:23AP-2POT284FAUZAN30/04/2021284
2101/05/202117:11:5511:28:08AP-2AP-2 431.5FAUZAN05/01/2021432
2201/05/202117:12:119:00:33AHS-2BAR CASTING855FAUZAN27/04/2021855
2301/05/202117:12:3613:45:57POTPOT500FAUZAN05/01/2021500
2401/05/202117:13:0316:34:57A6061-9BAR CASTING710FAUZAN29/04/2021710
2501/05/202117:14:5518:32:38AP-2BRI-Q846FAUZAN20/04/2021846
2601/05/202117:15:064:55:36AP-2BRI-Q STM675FAUZAN21/04/2021675
2701/05/202117:15:174:49:13BRI-Q STMAP-2 683.5FAUZAN21/04/2021684
2801/05/202117:16:0320:12:22A6082-2POT423FAUZAN27/04/2021423
2901/05/202117:16:2320:13:49A6082-2POT437FAUZAN27/04/2021437
3001/05/202117:16:3620:19:41A6082-2POT414.5FAUZAN20/04/2021415
3101/05/202117:16:494:22:28A6082-2POT489.5FAUZAN20/04/2021490
3201/05/202117:17:1117:04:00A6082-2448.5448.5FAUZAN20/04/2021449
3301/05/202117:17:4116:27:15A6082-2POT338.5FAUZAN20/04/2021339
3401/05/202117:18:0719:13:34A6082-2POT463FAUZAN20/04/2021463
3501/05/202117:18:237:16:31A6082-2BAR CASTING410FAUZAN20/04/2021410
3601/05/202117:19:217:35:53A6082POT420.5FAUZAN21/04/2021421
Register OUT
Cell Formulas
RangeFormula
K3:K36K3=G3-J3
 
Upvote 0
Hi All,

This entry actually has similarities to my previous entry.

Only this time, I tried to use the same formula to get data from multiple criteria.

I have amended the formula, but not sure it is correct or not.
(Having two criteria is fixed but the other two criteria are variable)

Need anyone's help to verify.

I use this formula to get data from another sheet:

=IFERROR(INDEX(STORAGE_DATA!$H:$H,AGGREGATE(15,6,ROW(STORAGE_DATA!$H$3:$H$200)/($I$1=TRIM(STORAGE_DATA!$D$3:$D$200))/($K$1=STORAGE_DATA!$G$3:$G$200)/($H$3=STORAGE_DATA!$E$3:$E$200)/($L$3=STORAGE_DATA!$F$3:$F$200),ROWS($I$3:$I3))),"")

Can refer to the below data table,

Cell Formulas
RangeFormula
B3B3=H101
B4:D4B4=N101
B5:D5B5=T125
B6:D6B6=Z101
B7:D7B7=AF101
I3:I4I3=IFERROR(INDEX(STORAGE_DATA!$H:$H,AGGREGATE(15,6,ROW(STORAGE_DATA!$H$3:$H$200)/($I$1=TRIM(STORAGE_DATA!$D$3:$D$200))/($K$1=STORAGE_DATA!$G$3:$G$200)/($H$3=STORAGE_DATA!$E$3:$E$200)/($L$3=STORAGE_DATA!$F$3:$F$200),ROWS($I$3:$I3))),"")
I5:I8I5=IFERROR(INDEX(STORAGE_DATA!$H:$H,AGGREGATE(15,6,ROW(STORAGE_DATA!$H$3:$H$200)/($I$1=TRIM(STORAGE_DATA!$D$3:$D$200))/($K$1=STORAGE_DATA!$G$3:$G$200)/($H$3=STORAGE_DATA!$E$3:$E$200)/($L$3=STORAGE_DATA!$F$3:$F$200),ROWS($I$3:$I5))),"")
B9:D9B9=SUM(B3:B8)
H3:H24H3=IFERROR(INDEX(STORAGE_DATA!$E:$E,AGGREGATE(15,6,ROW(STORAGE_DATA!$E$3:$E$200)/($I$1=TRIM(STORAGE_DATA!$D$3:$D$200))/($K$1=STORAGE_DATA!$G$3:$G$200),ROWS($H$3:$H3))),"")
L3:L24L3=IFERROR(INDEX(STORAGE_DATA!$F:$F,AGGREGATE(15,6,ROW(STORAGE_DATA!$F$3:$F$200)/($I$1=TRIM(STORAGE_DATA!$D$3:$D$200))/($K$1=STORAGE_DATA!$G$3:$G$200),ROWS($L$3:$L3))),"")
Press CTRL+SHIFT+ENTER to enter array formulas.
Cells with Data Validation
CellAllowCriteria
I1List=All_Alloy
K1List=REM_1

I really need someone to help me to get correct formula for column I & J...??
 
Upvote 0

Forum statistics

Threads
1,215,684
Messages
6,126,199
Members
449,298
Latest member
Jest

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