How can I count the rows with data in an Excel sheet?

后端 未结 6 2078
情书的邮戳
情书的邮戳 2021-01-04 08:24

I am trying to count the number of rows in a spreadsheet which contain at least one non-blank value over a few columns: i.e.

row 1 has a text value in column         


        
6条回答
  •  萌比男神i
    2021-01-04 09:00

    Try this scenario:

    Array = A1:C7. A1-A3 have values, B2-B6 have value and C1, C3 and C6 have values.

    To get a count of the number of rows add a column D (you can hide it after formulas are set up) and in D1 put formula =If(Sum(A1:C1)>0,1,0). Copy the formula from D1 through D7 (for others searching who are not excel literate, the numbers in the sum formula will change to the row you are on and this is fine).

    Now in C8 make a sum formula that adds up the D column and the answer should be 6. For visually pleasing purposes hide column D.

提交回复
热议问题