Create an array based on a lookup that filters certain data

benblaisdell

New Member
Joined
Apr 26, 2011
Messages
5
I think what I am trying to accomplish is fairly strait forward, but I am having the hardest time with it. I have a whole set of data in one particular sheet (data in the columns and the different records in the rows, with a unique identifier for each record in the first column). I am trying to bring in an array of all those unique identifiers into a new workbook(or even another worksheet for that matter), that only delievers those unique identifiers if some other criteria is met (such as Column B meets a certain criteria). I need this array to be as automated as possible, so I really don't want to use VBA if I dont have to. In other words if the source data changes, I want the other workbook to be smart enough to update immedeatly as well every time it is opened.

Any help would be appreciated.
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Hi,

Welcome to MrExcel.

Is this the solution you require?....


Excel Workbook
ABCDEFGHIJ
1IDCriteria*JoinedCount*Criteria1Criteria2TotalList
2ID1234Yes*ID1234Yes1*Yes14ID1234
3ID1235Yes*ID1235Yes1****ID1235
4ID1236no*ID1236no1****ID1236
5ID1237yes*ID1237yes1****ID1237
6ID1238no*ID1238no1*****
7ID1239no*ID1239no1*****
8ID1240no*ID1240no1*****
9ID1234Yes*ID1234Yes0*****
10ID1235Yes*ID1235Yes0*****
11ID1236no*ID1236no0*****
12ID1237yes*ID1237yes0*****
13ID1238no*ID1238no0*****
14ID1239no*ID1239no0*****
15ID1234Yes*ID1234Yes0*****
16ID1235Yes*ID1235Yes0*****
17ID1236Yes*ID1236Yes1*****
18ID1237yes*ID1237yes0*****
19ID1238no*ID1238no0*****
20ID1239no*ID1239no0*****
21ID1240no*ID1240no0*****
Sheet4


As you can see I have added 2 extra columns with formulas, D & E, these can be placed anywhere on your Worksheet or hidden if you require. Copy the formulas in D2 & E2 down as far as your range goes.

The formula in G,H,I,J can be placed on another Worksheet, the formula in J2 needs to be copied down as far as you think you will need to go. Criteria1 can be changed to suit your criteria, Criteria2 MUST be 1.

I hope this helps.

Ak
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,879
Members
452,948
Latest member
Dupuhini

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