Forum Discussion
Eliminating Records that don't appear multiple times
- Mar 04, 2020
Hi..
Use this formula.. you will get the results as TRUE & FALSE.. just filter TRUE using filter=COUNTIF($B$2:$B$24,B2)>=5
Regards, Faraz Shaikh | MCT, MIE, MOS Master, Excel Expert | www.ExcelExciting.comIf you find the above solution resolved your query don't forget mark as Official Answer.
HI Mikalas;
Please share few sample records & this can be possible..
Regards, Faraz Shaikh | MCT, MIE, MOS Master, Excel Expert | www.ExcelExciting.com
If you find the above solution resolved your query don't forget mark as Official Answer.
Hello!ExcelExciting
Here is a dummy file as I couldn't send the real info. So in this example I would like to keep in the file those records that have the Type of Cat and Dog since they appear at least 5 times. I'd want to delete all the other rows since they didn't NOT appear at least 5 times. I hope that made sense.
- Mar 04, 2020
HI Mikalas,
There are two different solution you can handle this kind of data
Solution No 01
Create an helper column and paste the below formula
=COUNTIF($B$2:$B$24,B2)that will generate the count of items, you an use filter > than 5 and copy the list two another location
Solution No 02
If you are familiar using advance filter the create the logic.
=COUNTIF($B$2:$B$24,B2)>=5Please find below the sample file for your ready reference.
Regards, Faraz Shaikh | MCT, MIE, MOS Master, Excel Expert | www.ExcelExciting.com
If you find the above solution resolved your query don't forget mark as Official Answer.
- MikalasMar 04, 2020Copper Contributor
Thank you for the detailed instructions. I will try this and hopefully I can get it to work! This would be a huge life saver!
- MikalasMar 04, 2020Copper Contributor
Hi Faraz, Mikalas
I tried the Countif statement but the issue is if I filter by >5 it would remove records that I need since I need to keep all the rows associated with those IDs that have 5 or more instances. Is there a way to filter by this scenario? So essentially I would need to keep all the rows that have the type of Cat and Dog since they appear 5+ times and remove all those other records that do not meet 5 or more instances.
Michelle
- Patrick2788Mar 04, 2020Silver Contributor
Try this. Conditional formatting with a COUNTIF. Filter by color to isolate and remove the yellow records