List all related values, based on multiple criterias

DarkoDeign2

Board Regular
Joined
Jun 20, 2023
Messages
76
Office Version
  1. 365
Platform
  1. Windows
I have two worksheets, Addresses and Tracking.
In Tracking there are data in col C2:C1500, F2:F1500, U2:U1500, AF2:AF1500
In Addresses I have search criterias in cells: $C$2, $E$1 and $E$2. Based on the selected criterias I would to list the corresponding matches in cells: $E$5: $E$100 as shown below

Tracking sheet:
Book1
CFUAF
1ID NumberGlobal LocalSupplierStatus
28501240GlobalUltra CarsCLOSED
38508186GlobalE-cigarettsONGOING
48508260GlobalChengdu BakeriesCLOSED
58508679LocalSushi on the beachCLOSED
68509825LocalPalonky BalonkyCLOSED
78511698GlobalUltra CarsONGOING
88510942GlobalE-cigarettsONGOING
98513012LocalMommy's Burgers CLOSED
108513832LocalPalonky BalonkyCLOSED
118513902LocalMommy's Burgers CLOSED
128514855LocalSushi on the beachCLOSED
138515072LocalChengdu BakeriesCLOSED
148515106GlobalKevin's Bacon ShopONGOING
158516460GlobalE-cigarettsCLOSED
Tracking
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:AF1500Expression=$AF2="Closed"textNO
A2:AF1500Expression=$AF2="Ongoing"textNO
A2:AG1500Expression=$AF2="SALES STOP"textNO
A2:AG1500Expression=$AF2="DC Block"textNO
Cells with Data Validation
CellAllowCriteria
AF2:AF15List=Status


Addresses sheet:
Book1
BCDEF
1Global
2Company name:E-cigarettsONGOINGCLOSED
321
4
585081868516460
68510942
7
8
9
10
11
12
Addresses
Cell Formulas
RangeFormula
E3:F3E3=IF(COUNT(E5:E100)<>0, COUNT(E5:E100), "")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C2Expression=ISBLANK(C2)textNO
Cells with Data Validation
CellAllowCriteria
E1ListGlobal; Local
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
How about
Fluff.xlsm
BCDEF
1Global
2Company name:E-cigarettsONGOINGCLOSED
321
4
585081868516460
68510942
7
8
9
10
11
12
Sheet6
Cell Formulas
RangeFormula
E3:F3E3=IF(COUNT(E5:E100)<>0, COUNT(E5:E100), "")
E5:E6,F5E5=FILTER(Tracking!$C$2:$C$1500,(Tracking!$F$2:$F$1500=$E$1)*(Tracking!$U$2:$U$1500=$C$2)*(Tracking!$AF$2:$AF$1500=E2))
Dynamic array formulas.
 
Upvote 0
Hi,

Thanks for the suggestion. When I copy the formula I get "Spill" and "Calc" errors in the cells E5 and below.
 
Upvote 0
Clear all cells below E5 & F5 that is causing the spill error.
 
Upvote 0
I got rid of the spill and Calc errors. But when C2 is empty it is showing values in E5 and F5...

Book1
BCDEF
1Global
2Company name:ONGOINGCLOSED
313
4
585981698516989
68519093
78596215
8
9
10
11
Addresses
Cell Formulas
RangeFormula
E3:F3E3=IF(COUNT(E5:E100)<>0, COUNT(E5:E100), "")
E5,F5:F7E5=IFERROR(FILTER(Tracking!$C$2:$C$1500,(Tracking!$F$2:$F$1500=$E$1)*(Tracking!$U$2:$U$1500=$C$2)*(Tracking!$AF$2:$AF$1500=E2)),"")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C2Expression=ISBLANK(C2)textNO
Cells with Data Validation
CellAllowCriteria
E1ListGlobal; Local
 
Upvote 0
What do you want it to do?
 
Upvote 0
In that case use
Excel Formula:
=IF(C2="","",FILTER(Tracking!$C$2:$C$1500,(Tracking!$F$2:$F$1500=$E$1)*(Tracking!$U$2:$U$1500=$C$2)*(Tracking!$AF$2:$AF$1500=E2),""))
 
Upvote 1
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,216,075
Messages
6,128,667
Members
449,462
Latest member
Chislobog

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