Hello,
This counts the number of instances of X* within range M10:M16 and returns the value into cell M8.
Instead of M10:M16, can a non-consecutive range be used here? Such as (M10:M11, M13:M14, M16:M17).
This counts the number of instances of X* within range M10:M16 and returns the value into cell M8.
Instead of M10:M16, can a non-consecutive range be used here? Such as (M10:M11, M13:M14, M16:M17).
VBA Code:
Range("M8").Value = Application.WorksheetFunction.CountIf(Range("M10:M16"), "X*")