1 min readfrom Microsoft Excel | Help & Support with your Formula, Macro, and VBA problems | A Reddit Community

Help counting number of columns containing values greater than zero

Our take

Are you grappling with how to count columns with values greater than zero in your spreadsheet? You're not alone—many users encounter challenges when trying to tally distinct columns based on specific conditions. In your case, you want to ensure that each column is counted only once, regardless of how many non-zero values it contains. This introduction will guide you through a straightforward formula that addresses your needs, empowering you to efficiently analyze your data without the frustration of complex calculations. Let’s dive in!

Hello!

I have a table where I'm trying to count the number of columns containing values greater than zero, but only counting once per column and I'm struggling with the formula.

The cells D12:O12 could potentially contain any value from zero or above. If only D12 contained a value this would count as 1, if D12 and E12 contained values this would count as 2, and if D12, D13 and E12 contained values this would also count as 2 as I'm only interested if the column contains data or not.

Any help anyone can provide would be greatly appreciated!

https://preview.redd.it/vyghp9drsokg1.png?width=1535&format=png&auto=webp&s=71597563196beb29ad08d6fdbbbfb9d736db374f

submitted by /u/Brooksolicious
[link] [comments]

Read on the original site

Open the publisher's page for the full experience

View original article

Related Articles