Filter dual rows ...

adambc

Active Member
Joined
Jan 13, 2020
Messages
368
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
... but let me explain!

I have a Worksheet with over a 1000 rows ...

In column n there is a value "Active" or "Inactive" for each row ...

I want to identify rows with a value "Active", easy if IDs have only 1 row but ...

Some, but not all, IDs have 2 rows ...

Where I want to identify IDs with a value "Active" on both rows, but not those that have "Active" on one row, but "Inactive" on the other row ...

Any ideas?

Thanks ...
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
IMPORTANT UPDATE ...

I have a Worksheet with over a 1000 rows ...

In column n there is a value "Active" or "Inactive" for each row ...

I want to identify rows with a value "Active", easy if IDs have only 1 row but ...

Some, but not all, IDs have 2 OR MORE rows ...

Where I ONLY want to identify IDs with a value "Active" on both ALL rows, but not those that have "Active" on one row, but "Inactive" on the other ONE OR MORE row ...
 
Upvote 0
What does this mean:
I want to identify rows with a value "Active"
Identify ??
Does that mean hide the row delete the row or what?
 
Upvote 0
What does this mean:
I want to identify rows with a value "Active"
Identify ??
Does that mean hide the row delete the row or what?
Sorry, wasn't clear was I?!!!

If each ID had only 1 row, I would filter on "Active" to get what I want ie hide any rows set to "Inactive" ...

But because some (but not all) IDs have 2 or more rows, each with an "Active" or "Inactive" value - and I ONLY want IDs that have every row set to "Active" - that doesn't work ...

Essentially I want to show IDs that are fully "Active" ...

Hope that clarifies?

Thanks ...
 
Upvote 0
You could insert a helper column using
Excel Formula:
=COUNTIFS(A:A,A2,N:N,"<>Active")
change col A to the column with your ID & then filter that for rows with 0
 
Upvote 0
@Fluff

Like it, thanks ...

Not important, but is there a way to filter on 0 in the helper column - AND then hide duplicate rows by ID (column A in your example)?
 
Upvote 0
You could use
Excel Formula:
=AND(COUNTIFS(A:A,A2,N:N,"<>Active")=0,COUNTIFS(A$2:A2,A2)=1)
and filter on True
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,645
Messages
6,120,711
Members
448,984
Latest member
foxpro

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