What is the function of the SUM function in Excel?

A ) To count the number of cells in a range

B ) To add up a range of cells ✅

C ) To find the average of a range of cells

D ) To find the maximum value in a range of cells