Quickest way to apply a formula to an entire column?

Eamonn M.R. picture Eamonn M.R. · Nov 11, 2014 · Viewed 61.5k times · Source

I want each row in column B to be f( column A), so that b[n]=f(a[n]). I could go row by row and apply the formula, but is there an easy way to just drag the formula down and have it increment the cells it's referencing automatically?

Answer

Victor Gazotti picture Victor Gazotti · Jul 14, 2016

You can follow these steps:

  1. Write the formula in the first cell.
  2. Click Enter.
  3. Click Ctrl+Shift+End. This will select the last right cell used on the worksheet.
  4. Ctrl+D. This will fill the value in the remaining cells.

Source at Zyxware