counta returning array

dfsobral

Board Regular
Joined
Oct 19, 2015
Messages
140
hy

i want to count cells not empty in each column to use in functions

presently i have row 1 with this information, each column have a counta function (data starts in row3)

is there a function or and array formula that would return this array to use in other functions? (allowing to eliminate this row1 from the spreadsheet)

i could easily do it in VBA but not really an option in this case
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
nice, but not usefull to me

if i want to insert that array in a function like sumproduct i would need to use Ctrl+Shift+Enter to the array inside SumProduct but not SumProduct itself

so unless there's some functionality i do not know it will not work
 
Upvote 0
Glad you got it figured out. Just for information, here's a slightly shorter way to code it:

=MMULT(TRANSPOSE(ROW(A2:A10)^0),--(A2:D10<>""))

with CSE.
 
Upvote 0

Forum statistics

Threads
1,215,214
Messages
6,123,666
Members
449,114
Latest member
aides

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