Forum Discussion
Finding For Specific Orders
- Nov 17, 2022
=UNIQUE(FILTER('2022 Jan-Oct Data'!A:A,COUNTIFS('2022 Jan-Oct Data'!A:A,'2022 Jan-Oct Data'!A:A,'2022 Jan-Oct Data'!$AA:$AA,"<>"&"LOF")=0))
In your formula you refer to "LOF". According to your example you want "LOP".
Your formula refers to the whole columns A:A and AA:AA in sheet 2022 Jan-Oct Data. This is a reference to over 1 million rows and might result in an excessively long calculation time. Therefore i'd suggest to refer to e.g. 70000 rows if your data is over 50000 rows.
The 0 result means that there are 0 receipt numbers which only have code LOF. I applied this formula to a sample worksheet and it returned the expected result:
=UNIQUE(FILTER('2022 Jan-Oct Data'!A1:A70000;COUNTIFS('2022 Jan-Oct Data'!A1:A70000;'2022 Jan-Oct Data'!A1:A70000;'2022 Jan-Oct Data'!AA1:AA70000;"<>"&"LOP")=0))
=FILTER(C3:D7,ISNUMBER(SEARCH("A",D3:D7)))If you work with Excel 2019 or later you can apply FILTER.
- Captain13Nov 17, 2022Copper ContributorThank you for your response, it partially worked... it filtered to the receipt that used A along with other codes of the same receipt but what i am looking for is to filter to the receipt that only has code A not A,B, or C
- OliverScheurichNov 17, 2022Gold Contributor
- Captain13Nov 17, 2022Copper Contributor
As you can see here there are duplicate entries with different codes 20p, unknown and LOP and so on. I want to find the entries on the left that only has LOP and nothing else. if the entry has something other than an LOP I don't want it filtered. if an entry have an LOP and 20P and Unknown i do not want it filtered.. if the entry has only LOP i want to find that entry.. Does that help?