Without needing VBA, is there a way for me to say countif(column X, "")
without counting all the empty cells that occur past the last row with data? The sheet is dynamic so I can't set it to a static range.
相关问题
- Excel sunburst chart: Some labels missing
- Error handling only works once
- Excel formula in VBA code
- Excel VBA run time error 450 from referencing a ra
- DoCmd.TransferSpreadsheet is not recognizing works
相关文章
- Get column data by Column name and sheet name
- programmatically excel cells to be auto fit width
- Unregister a XLL in Excel (VBA)
- How to prevent excel from truncating numbers in a
- numeric up down control in vba
- Declare a Range relative to the Active Cell with V
- What's the easiest way to create an Excel tabl
- How to create a hyperlink to a different Excel she
Like I mentioned in my comment, you can used Named Range else
MATCH(REPT("z",255),A:A)
will give you the row number of last cell which has data. So you can use it in CountIf like thisIf you last row contains a numeric data then you this
=MATCH(9.9E+307,A:A,1)
Siddharth Rout's answer is a good one and should work. If you happen to have less knowledge about the contents of the last row, you may want to try something like this:
where COLY is a column that must have a value for every valid row (say, ID value)