billandrew
Well-known Member
- Joined
- Mar 9, 2014
- Messages
- 743
Good evening
Unable to find any specifics on utilizing the Countif Function referencing a specific cell. This example I'd like to count the number of instances which are below the entered value in A1.
Thanks all
Unable to find any specifics on utilizing the Countif Function referencing a specific cell. This example I'd like to count the number of instances which are below the entered value in A1.
Thanks all
Code:
Dim lr2 As Long lr2 = Range("C" & Sheet1.Rows.Count).End(xlUp).Row
V1 = Cells(1, 1).Value
Cells(1, 14).Value = Application.WorksheetFunction.CountIf("C2:C" & lr2, "<=" & V1)