Forum Discussion
Samphire
Oct 10, 2023Copper Contributor
Counting unique values across multiple tabs
Hello. I'm trying to write a formula but am having no luck - help please. I would like to count all unique values (these are client id numbers) in column A across multiple sheets (only counting...
OliverScheurich
Oct 10, 2023Gold Contributor
=SUM(N(IF((M1:M22=G4)*NOT(ISBLANK(F1:F22)),MATCH(IF((M1:M22=G4)*NOT(ISBLANK(F1:F22)),A1:A22),IF((M1:M22=G4)*NOT(ISBLANK(F1:F22)),A1:A22),)=ROW(1:22))))
You can try this formula to count unique values in column A within one worksheet in Excel 2013 with conditions that column M equals the value in G4 and that column F isn't blank. Enter the formula with ctrl+shift+enter if you don't work with Office 365 or Excel for the web or Excel 2021.