Results 1 to 19 of 19

Thread: Count of Records IF

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #14
    or simplify:
    Public Function fnCountHowManyLongLines(ByVal rng As Range) As Long
        Dim arr As Variant
        Dim i As Long
        Dim cnt As Long    
        arr = rng    
        For i = 1 To UBound(arr, 1)
             cnt = cnt + Abs(Len(arr(i, 1) & arr(i, 2) & "") > 256)
        Next
        fnCountHowManyLongLines = cnt
    End Function
    Last edited by Aussiebear; 04-20-2025 at 04:03 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •