Anglais428v2
New Member
- Joined
- Jun 19, 2020
- Messages
- 27
- Office Version
- 365
- Platform
- Windows
I have a dataset whereby I would like to count the number of unique records. I am doing this with the formula =SUM(--(FREQUENCY(IF(List=A2,ID),ID)>0))
Where List is a range, A2 is a piece of text (which is looked up against the List range) and where the IDs (record IDs) are unique. This works fine when A2 is matched exactly in the list. What I also want to do is include a count for the partial match.
E.g. if cell A2 is "United Kingdom", the formula counts all "united kingdom" in the list and subtracts any where the IDs are the same (i.e. deduping).
I would like to modify the formula so that it would count in the same manner but if cell A2 contained "united kingdom; united states". It should be able to get the partial match of "united kingdom" from "united kingdom; united states" and dedupe again based on the IDs.
Any ideas would be appreciated. If feel it is the highlighted part of the formula that needs fixing: =SUM(--(FREQUENCY(IF(List=A2,ID),ID)>0)) to incorporate the partial match, rather than full cell match.
Where List is a range, A2 is a piece of text (which is looked up against the List range) and where the IDs (record IDs) are unique. This works fine when A2 is matched exactly in the list. What I also want to do is include a count for the partial match.
E.g. if cell A2 is "United Kingdom", the formula counts all "united kingdom" in the list and subtracts any where the IDs are the same (i.e. deduping).
I would like to modify the formula so that it would count in the same manner but if cell A2 contained "united kingdom; united states". It should be able to get the partial match of "united kingdom" from "united kingdom; united states" and dedupe again based on the IDs.
Any ideas would be appreciated. If feel it is the highlighted part of the formula that needs fixing: =SUM(--(FREQUENCY(IF(List=A2,ID),ID)>0)) to incorporate the partial match, rather than full cell match.