How to exclude current column in COUNTIFS and similar functions in Numbers?

Hello dear community,


As per subject line, I'm using COUNTIFS quite extensively in a table and I would like to avoid the column the function lies on, to be counted in.


I've tried with the COLUMN() function but this wouldn't be accepted on a range of values such as in the following wrong example where I'm trying to use regular expressions:


COUNTIFS(... COLUMN($1:$1:);REGEX("^(?!"&COLUMN()&"$)") ...)


I surmise there must be an easy and elegant way to avoid the current column/row be taken into account in the COUNTIFS and similar functions. Would you know how?


Thank you so much in advance!



[Re-Titled by Moderator]

Posted on Feb 8, 2025 2:51 AM

Reply
Question marked as Top-ranking reply

Posted on Feb 8, 2025 8:54 AM

COUNTIFS(all of the columns) - COUNTIFS(the column that has the formula)


Example:

=COUNTIFS($B:$D,"myword")−COUNTIFS(B,"myword")

3 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to exclude current column in COUNTIFS and similar functions in Numbers?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.