Skip to content

Instantly share code, notes, and snippets.

@DuongAQ
Created March 12, 2018 03:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DuongAQ/1cef5eeb62655edc0a0ab3055a4aac16 to your computer and use it in GitHub Desktop.
Save DuongAQ/1cef5eeb62655edc0a0ab3055a4aac16 to your computer and use it in GitHub Desktop.
Function SumByCol(range, column) 'Hàm tính tổng theo cột bất kỳ trong mảng
With Application.WorksheetFunction
SumByRow = .Sum(.Index(range, 0, column))
End With
End Function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment