Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Quickest way to apply a formula to an entire column?

Tags:

libreoffice

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?

like image 555
Eamonn M.R. Avatar asked Nov 11 '14 15:11

Eamonn M.R.


People also ask

How do I apply a formula to an entire column in a cell?

With the cell selected, you will see a small green square at the bottom-right part of the selection. Place the cursor over the small green square. You will notice that the cursor changes to a plus sign. Hold the left mouse key and drag it to the cell where you want the formula to be applied.

How do I apply a formula to an entire row quickly?

If you want to apply the formula to entire row, just enter the formula into the first cell of your entire row, next select the entire row, and then click Home > Fill > Right.

What is the fastest way to add formula in Excel?

One quick and easy way to add values in Excel is to use AutoSum. Just select an empty cell directly below a column of data. Then on the Formula tab, click AutoSum > Sum.


2 Answers

This worked for me,

  1. Write the formula in the top cell of a column.
  2. Copy this cell
  3. Select all of the rest of cells in the column. You can do this by clicking on the top cell and shift clicking on the bottom cell so the scrolling is really quick
  4. With all of the cells selected select Paste. The formula will be copied to all of the currently selected cells, but will be adjusted according to its position in the sheet.
like image 36
Rama Avatar answered Sep 22 '22 23:09

Rama


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

like image 107
Victor Gazotti Avatar answered Sep 20 '22 23:09

Victor Gazotti