COUNTA-COUNTIF help

Jedi Master

Board Regular
Joined
Jun 10, 2024
Messages
70
Office Version
  1. 365
Platform
  1. Windows
Good Day All. I need a little help finishing a formula. I need to count all cells (as an each) (no matter what they contain) and subtract out all the zero value cells and I cant get it to work quite correctly. In the below example, I should be getting a value of 5 (M24 through Q24). the rest of the formula refers to the following values: '2-Quote Master'!V50 = 2375

Current Formula: =IF([@Column6]="","",COUNTA((PMProjectTracker[@[Column12]:[Column558]]),-COUNTIF(PMProjectTracker[@[Column12]:[Column558]],">0"))*('2-Quote Master'!V50/[@Column3]))

The math the formula should be doing: 5*(2375/5)
5*475
=2375
1719844068257.png
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
How about
Excel Formula:
=IF([@Column6]="","",SUM(COUNTIFS(PMProjectTracker[@[Column12]:[Column558]],{">0","*"}))*('2-Quote Master'!V50/[@Column3]))
 
Upvote 1
Solution
How about
Excel Formula:
=IF([@Column6]="","",SUM(COUNTIFS(PMProjectTracker[@[Column12]:[Column558]],{">0","*"}))*('2-Quote Master'!V50/[@Column3]))
Of course that works perfectly, thank you. Could you please explain how the following portion works: {">0","*"}. My question specifically is what are "{" and "*" doing?
 
Upvote 0
The {} denotes an array & it's counting numbers greater than 0 & any cells with text
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,183
Members
452,615
Latest member
bogeys2birdies

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top