Forum Discussion
Count number of columns with value
mathetes Assuming the area to count is column A to M. Instead of having to define each row (A4: M4), is it possible to do the same count by area (A4:M6) and the outcome is 12?
Chan_Tze_Leong I have close to 40 excel files with varying areas. So, to do each row range , is very tedious and time consuming. Imagine, for 1 file, I have to select 10 times for 10 rows. Alternatively, selecting the area is only 1 time activity.
- SergeiBaklanFeb 11, 2021Diamond Contributor
- select you area
- in Name Box (top left from the grid) type Range and press Enter
- enter the formula in suitable empty cell
=MAX(MMULT(--(Range<>""),TRANSPOSE(COLUMN(Range)/COLUMN(Range))))- Chan_Tze_LeongFeb 11, 2021Brass Contributor
Thank you very much SergeiBaklan
- SergeiBaklanFeb 11, 2021Diamond Contributor
Chan_Tze_Leong , glad to help
- mathetesFeb 11, 2021Gold Contributor
- mathetesFeb 11, 2021Gold Contributor
I'm sure something is possible there, but nothing is coming immediately to mind. It would have been helpful had you spelled out the full need at the start, by the way.
Anyway, I'll give it some more thought and try to get back to you in a day or two. In the meantime, maybe somebody else will jump in and help us both.