Removing 'active' col from ALL 'col' to get 'inactive' col

vancey

New Member
Joined
Jun 2, 2021
Messages
8
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi Guys,

I have a column that contains list of ALL active and inactive members ids, and a column containing active members ids, i want to use the ALL list to remove the active list to get the inactive members ids. i tried using
=IF(ISERROR(MATCH(R5,$Q$1:$Q$10000,0)),"Active","Inactive")
to compare the active vs the all list, if not found means it is inactive, then i cant filter all inactive together. but it doesnt work, some of the ids listed inactive but they are still found in the ALL column. Please help me.

Minisheet: (There are more than 3k rows, heres some example)
CS.xlsx
HIJK
1ALLSG Active Badges
2StatusStatusLastNameLast 6 digits
3ActiveActiveV474521511989
4ActiveActiveSC472895511352
5ActiveActiveS307113511305
6ActiveActiveGS80863497510354
7InactiveInactiveGS7820092506750
8InactiveInactiveGS68516173506749
9ActiveActiveGS68113506008
10ActiveActiveGS68036718505987
11ActiveActiveGS67443186504956
12ActiveActiveGS67264515504955
13ActiveActiveGS67161646504954
14ActiveActiveGS67131389504947
15ActiveActiveGS67027836504945
16ActiveActiveGS66601279504942
17ActiveActiveGS472957504938
18ActiveActiveGS471705504937
19ActiveActiveGS421897504936
20ActiveActiveGS420288504934
21ActiveActiveGS333780504933
22ActiveActiveGS307407504932
23ActiveActiveGS190783504924
24ActiveActiveEDWARDBARROW504922
25ActiveActive422828/504917
26ActiveActive3068/56504916
27ActiveActive65220085504914
28ActiveActive6368484504913
29ActiveActive4733354504911
30ActiveActive4720267504910
31ActiveActive4321482504907
32ActiveActive4227731504904
33ActiveActive4225592504901
34ActiveActive4221612504900
35ActiveActive4221333504899
36ActiveActive4211151504898
37ActiveActive4203238504896
38ActiveActive4094487504894
39ActiveActive3999453504893
40ActiveActive3607633504891
41ActiveActive2999104504887
42ActiveActive1677997504885
43ActiveActive966726504877
44ActiveActive901830504876
45ActiveActive897915504875
46ActiveActive893137504874
47ActiveActive880280504870
48ActiveActive865265504869
49ActiveActive779148504867
50ActiveActive744387504865
51ActiveActive744128504864
52ActiveActive697745504862
53ActiveActive686024504861
54ActiveActive672808504860
55ActiveActive649849504858
56ActiveActive644959504857
57ActiveActive642980504856
58ActiveActive642902504854
59ActiveActive619505504853
60ActiveActive521199504848
61ActiveActive512964504843
62ActiveActive511933504842
63ActiveActive506750504841
64ActiveActive506749504840
65ActiveActive506358504839
66ActiveActive506335504838
67ActiveActive506201504837
68ActiveActive505872504836
69ActiveActive504906504835
70ActiveActive504155504834
71ActiveActive504150504833
72ActiveActive504145504831
73ActiveActive504142504830
74ActiveActive504141504829
75ActiveActive504136504828
76ActiveActive504135504827
77ActiveActive504123504826
78ActiveActive504123504825
79ActiveActive504122504823
80ActiveActive504121504822
81ActiveActive504117504821
82ActiveActive504116504817
83ActiveActive504112504815
84ActiveActive504111504814
85ActiveActive504110504808
86ActiveActive504105504807
87ActiveActive504101504806
88ActiveActive504100504805
89ActiveActive504099504804
90ActiveActive504098504803
91ActiveActive504096504802
92ActiveActive504089504801
93ActiveActive504089504800
94ActiveActive504088504799
95ActiveActive504087504792
96ActiveActive504086504791
97ActiveActive504086504790
98ActiveActive504084504789
99ActiveActive504081504788
100ActiveActive504080504784
101ActiveActive504080504781
102ActiveActive504079504780
103ActiveActive504077504779
104ActiveActive504076504778
105ActiveActive504074504777
106ActiveActive504073504775
107ActiveActive504073504773
108ActiveActive504072504770
109ActiveActive504071504769
110ActiveActive504070504766
111ActiveActive504066504764
112ActiveActive504066504763
113ActiveActive504064504762
114ActiveActive504063504761
115ActiveActive504060504346
116ActiveActive504059504345
117ActiveActive504058504344
118ActiveActive504053504343
119ActiveActive504052504340
120ActiveActive504049504329
121ActiveActive504048504327
122ActiveActive504045504323
123ActiveActive504044504319
124ActiveActive504043504318
125ActiveActive504036504317
126ActiveActive504035504316
127ActiveActive504034504310
128ActiveActive504033504157
129ActiveActive504032504156
130ActiveActive504031504151
131ActiveActive504030504145
132ActiveActive504029504144
133ActiveActive504028504143
134ActiveActive504027504142
135ActiveActive504026504140
136ActiveActive504023504139
137InactiveInactive504022504135
138ActiveActive504022504129
139ActiveActive504021504128
140ActiveActive504020504127
141ActiveActive504019504126
142ActiveActive504018504125
143ActiveActive504017504124
144InactiveInactive504016504123
145InactiveInactive504015504121
146ActiveActive504014504113
147InactiveInactive504013504110
148ActiveActive504012504108
149ActiveActive504011504106
150InactiveInactive504001504105
151ActiveActive504000504097
152ActiveActive504000504095
153ActiveActive503999504094
154ActiveActive503998504093
155InactiveInactive503998504089
156InactiveInactive503996504084
157InactiveInactive503995504081
158InactiveInactive503995504079
159InactiveInactive503994504076
160InactiveInactive503993504074
161InactiveInactive503993504073
162InactiveInactive503992504070
163ActiveActive503992504069
164ActiveActive503991504068
165ActiveActive503991504067
166InactiveInactive503990504066
167ActiveActive503989504065
168InactiveInactive503988504064
169InactiveInactive503988504063
170InactiveInactive503983504060
171InactiveInactive503982504058
172ActiveActive503981504057
173ActiveActive503977504056
174ActiveActive503977504055
175ActiveActive503976504053
176ActiveActive503975504052
177ActiveActive503974504049
178InactiveInactive503967504045
179InactiveInactive503966504044
180ActiveActive503963504042
181ActiveActive503962504041
182ActiveActive503961504040
183ActiveActive503959504039
184ActiveActive503857504038
185ActiveActive503851504037
186InactiveInactive503850504036
187InactiveInactive503808504035
188InactiveInactive503804504034
189InactiveInactive503804504033
190InactiveInactive503803504032
191InactiveInactive503803504031
192InactiveInactive503802504029
193InactiveInactive503802504028
194InactiveInactive503800504027
Sheet1
Cell Formulas
RangeFormula
H3:H194H3=IF(ISERROR(VLOOKUP(K3,J:J,1,0)),"Active","Inactive")
I3:I194I3=IF(ISERROR(MATCH(K3,$J$1:$J$10000,0)),"Active","Inactive")
 

Attachments

  • Untitled.png
    Untitled.png
    30.8 KB · Views: 4

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
You must look for the id of the All List in the active ids, if it is 0 it is inactive, if it is 1 then it is active.

Dante Amor
IJK
1ALLSG Active Badges
2StatusLastNameLast 6 digits
30V474521511989
40SC472895511352
50S307113511305
60GS80863497510354
70GS7820092506750
80GS68516173506749
90GS68113506008
100GS68036718505987
110GS67443186504956
120GS67264515504955
130GS67161646504954
140GS67131389504947
150GS67027836504945
160GS66601279504942
170GS472957504938
180GS471705504937
190GS421897504936
200GS420288504934
210GS333780504933
220GS307407504932
230GS190783504924
240EDWARDBARROW504922
250422828/504917
2603068/56504916
27065220085504914
2806368484504913
2904733354504911
3004720267504910
3104321482504907
3204227731504904
3304225592504901
3404221612504900
3504221333504899
3604211151504898
3704203238504896
3804094487504894
3903999453504893
4003607633504891
4102999104504887
4201677997504885
430966726504877
440901830504876
450897915504875
460893137504874
470880280504870
480865265504869
490779148504867
500744387504865
510744128504864
520697745504862
530686024504861
540672808504860
550649849504858
560644959504857
570642980504856
580642902504854
590619505504853
600521199504848
610512964504843
620511933504842
631506750504841
641506749504840
650506358504839
660506335504838
670506201504837
680505872504836
690504906504835
700504155504834
710504150504833
721504145504831
731504142504830
740504141504829
750504136504828
761504135504827
771504123504826
781504123504825
790504122504823
801504121504822
810504117504821
820504116504817
830504112504815
840504111504814
851504110504808
861504105504807
870504101504806
880504100504805
890504099504804
900504098504803
910504096504802
921504089504801
931504089504800
940504088504799
950504087504792
960504086504791
970504086504790
981504084504789
991504081504788
1000504080504784
1010504080504781
1021504079504780
1030504077504779
1041504076504778
1051504074504777
1061504073504775
1071504073504773
1080504072504770
1090504071504769
1101504070504766
1111504066504764
1121504066504763
1131504064504762
1141504063504761
1151504060504346
1160504059504345
1171504058504344
1181504053504343
1191504052504340
1201504049504329
1210504048504327
1221504045504323
1231504044504319
1240504043504318
1251504036504317
1261504035504316
1271504034504310
1281504033504157
1291504032504156
1301504031504151
1310504030504145
1321504029504144
1331504028504143
1341504027504142
1350504026504140
1360504023504139
1370504022504135
1380504022504129
1390504021504128
1400504020504127
1410504019504126
1420504018504125
1430504017504124
1440504016504123
1450504015504121
1460504014504113
1470504013504110
1480504012504108
1490504011504106
1500504001504105
1510504000504097
1520504000504095
1530503999504094
1540503998504093
1550503998504089
1560503996504084
1570503995504081
1580503995504079
1590503994504076
1600503993504074
1610503993504073
1620503992504070
1630503992504069
1640503991504068
1650503991504067
1660503990504066
1670503989504065
1680503988504064
1690503988504063
1700503983504060
1710503982504058
1720503981504057
1730503977504056
1740503977504055
1750503976504053
1760503975504052
1770503974504049
1780503967504045
1790503966504044
1800503963504042
1810503962504041
1820503961504040
1830503959504039
1840503857504038
1850503851504037
1860503850504036
1870503808504035
1880503804504034
1890503804504033
1900503803504032
1910503803504031
1920503802504029
1930503802504028
1940503800504027
Hoja1
Cell Formulas
RangeFormula
I3:I194I3=COUNTIF(K:K,J3)
 
Upvote 0
Hi DanteAmor,

Thanks for replying, i tried your method, wondering why id 504840 is active but i manually find by column in ALL list i cant find 504840. (See below row highlighted in orange)

CS.xlsx
QRS
1
2UNIQUE
3ALLSG Active Badges
4LastNameLast 6 digits1 = Active 0 = Inactive
5V4745215119890
6SC4728955113520
7S3071135113050
8808634975103540
978200925067500
10685161735067490
11681135060080
12680367185059870
13674431865049560
14672645155049550
15671616465049540
16671313895049470
17670278365049450
18666012795049420
194729575049380
204717055049370
214218975049360
224202885049340
233337805049330
243074075049320
251907835049240
26EDWARDBARROW5049220
27422828/5049170
283068/565049160
29652200855049140
3063684845049130
3147333545049110
3247202675049100
3343214825049070
3442277315049040
3542255925049010
3642216125049000
3742213335048990
3842111515048980
3942032385048960
4040944875048940
4139994535048930
4236076335048910
4329991045048870
4416779975048850
459667265048770
469018305048760
478979155048750
488931375048740
498802805048700
508652655048690
517791485048670
527443875048650
537441285048640
546977455048620
556860245048610
566728085048600
576498495048580
586449595048570
596429805048560
606429025048540
616195055048530
625211995048480
635129645048430
645119335048420
655067505048410
665067495048401
675063585048391
685063355048380
695062015048370
705058725048360
715049065048350
725041555048340
735041505048330
745041455048310
755041425048301
765041415048291
775041365048280
785041355048270
795041235048261
805041235048251
Sheet1
Cell Formulas
RangeFormula
S5S5=COUNTIF(Q:Q,R5)
S6:S80S6=COUNTIF(R:R,Q5)
Named Ranges
NameRefers ToCells
_FilterDatabase=Sheet1!$Q$4:$S$11372S5


Thanks.
VanCe
 
Upvote 0
Im sorry i made a mistake in above post, im unable to find edit post button.

the forumla u provided seemed to work, but why empty cells are also counted as active? and why is there a 2?

CS.xlsx
QRS
3423407591207931
3424407590201511
3425407589200760
3426407588194441
3427407587193961
3428407586158021
3429407585157642
3430407584119340
343140758201
34324075811
34334075801
34344075791
34354075781
34364075771
34374075761
34384075751
34394075741
34404075731
34414075711
34424075701
34434075691
34444075681
34454075671
34464075661
Sheet1
Cell Formulas
RangeFormula
S3423:S3446S3423=COUNTIF(Q$5:Q$11372,R3423)
 
Upvote 0
I got it why its still considered 1, becoz theres a '0' in my All list.
 
Upvote 0
but why empty cells are also counted as active?
You must put the formula up to cell S3430. You are looking for the active value (column R) in ALL list. It no longer makes sense to search for an empty cell.

and why is there a 2?
That means that the active value (column R) is 2 times in ALL list.

__________
Perhaps, the following formula you like more.

Dante Amor
QRS
3ALLSG Active Badges
4LastNameLast 6 digitsActive / Inactive
5V474521511989Inactive
6SC472895511352Inactive
7S307113511305Inactive
8GS80863497510354Inactive
9GS67443186506750Active
10619505506749Active
11511933506008Inactive
12506750505987Active
13506749504956Inactive
14506358504858Inactive
15505987Inactive
16506201Inactive
17505987Inactive
18504906
19504155
20504150
21504145
Hoja1
Cell Formulas
RangeFormula
S5:S17S5=IF(COUNTIF(Q:Q,R5),"Active", "Inactive")
Named Ranges
NameRefers ToCells
_FilterDatabase=Hoja1!$Q$4:$T$153S5:S17
 
Upvote 0
I'm glad to help you. Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,277
Messages
6,171,148
Members
452,382
Latest member
RonChand

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