Alternative for COUNTIF. no VBA, no array.

mescalante48

New Member
Joined
Sep 15, 2021
Messages
29
Office Version
  1. 2007
Platform
  1. Windows
Please see the example below, values will keep prompting at irregular intervals;
I need to count each non-zero value, the caveat, no COUNTIF function is allowed, no array functions of VBA neaither.

The reason? I'm working on Sierra chart, (charting software) and array formulas are not supported, please see the below documentation for further details.


1631722040312-png.46974
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Unless you can use SUMPRODUCT which doesn't require array confirmation, then you are going to be out of luck. You have already eliminated all of the methods that will do what you need with the specified caveat.
 
Upvote 0
Unless you can use SUMPRODUCT which doesn't require array confirmation, then you are going to be out of luck. You have already eliminated all of the methods that will do what you need with the specified caveat.
Thank you jasonb75.
SUMPRODUCT is supported, do you know how could it be done using SUMPRODUCT, please?
 
Upvote 0
It should be as simple as
Excel Formula:
=SUMPRODUCT(--(range>0))
 
Upvote 0
It should be as simple as
Excel Formula:
=SUMPRODUCT(--(range>0))
Almost perfect!!!, see below,
is there anyway we can revert the the order of the count? Eg. 1 on top, then 2,3,4,5...
this because I'll need to perform operations with the first two values only.

Many thanks for your help.
 

Attachments

  • 1634324908492.png
    1634324908492.png
    13.3 KB · Views: 12
Upvote 0
Try inverting the range, in A1 and fill down.
Excel Formula:
=SUMPRODUCT(--(A$1:A1>0))
 
Upvote 0
Solution
Solved, below is how it looks.

beyond grateful for your help jasonb75.
 

Attachments

  • 1634326162488.png
    1634326162488.png
    26.5 KB · Views: 15
Upvote 0

Forum statistics

Threads
1,223,360
Messages
6,171,630
Members
452,411
Latest member
sprichwort

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