I have the following VBA formula to count non blank cells in a range, plus some other conditions in other ranges. The part to count non blank cells is not working. This is the piece of code:
LAX(0) = Application.WorksheetFunction.CountIfs(Range("I:I"), "<>""", Range("AH:AH"), "LAX", Range("AG:AG"), ">=" & semanaI, Range("AG:AG"), "<=" & semanaF)
Are the first two arguments correct?
COUNTIF
function supports wildcards: support.office.com/en-gb/article/… There is also an example on the site which allows you toCounts the number of cells containing any text[...]
. To ensure that at least one character is in a cell you can even look for the following wildcard combination:*?*
. - Ralph