You would just drag the formula down in column B.
1. Click the cell with the formula in it
2. Hover over the bottom right corner of the cell until the mouse icon changes to a cross (+)
3. When it's a cross, left click and drag the formula down for all the rows.