Forum Discussion
ajl_ahmed
Nov 04, 2024Iron Contributor
Function to return the number of columns which contain information
Hi currently I am using google sheet. I need a function to return the number of columns which contain information (text or number) as in the attached file. is it possible to do that? Thanks
SergeiBaklan
Nov 04, 2024Diamond Contributor
It depends on which information about number of columns you'd like to have - max number of filled columns for all rows; or for each row separately. And where such output shall be placed.
ajl_ahmed
Nov 04, 2024Iron Contributor
information (1,2,3,4,5, Some Arabic words)
Total number of columns should be 30 columns. it may be 15 columns some times.
Columns number or raws should be 120 raws
The output should be placed on the same sheet
Total number of columns should be 30 columns. it may be 15 columns some times.
Columns number or raws should be 120 raws
The output should be placed on the same sheet
- SergeiBaklanNov 04, 2024Diamond Contributor
If for each row it could be
=COUNTA($A3:INDEX(3:3, 1, COLUMN()-1) )and drag it down.
Please check in attached file.
- SergeiBaklanNov 04, 2024Diamond Contributor
Let me clarify
It shall be as in blue - max number of columns filled for each row. And in which column to place results; or
it shall be as in green - max number of columns filled for entire range. And in which cell result shall be.