How to quickly apply formula to an entire column or row with/without dragging in Excel?

Sometimes you may need to apply one same formula to an entire column or row in Excel, such as C1=A1*2, C2=A2*2, …, Cn=An*2. It will be quite tedious if you enter the formula in each cell one by one. There are some tricky ways to apply one same formula to an enter column or row quickly.

Apply formula to an entire column or row with dragging AutoFill handle

Apply formula to an entire column or row without dragging by shortcut keyboards

Apply formula to an entire column or row without dragging by Fill feature

Apply formula to an entire column or row without dragging by Kutools for Excel

Copy formulas exactly/ staticallyfrom one column to another without changing cell references in Excel

Kutools for Excel Exact Copy utility can help you easily copy multiple formulas exactly without changing cell references in Excel, preventing relative cell references updating automatically. Click for 60-day free trial!

ad exact copy formulas 3

Supposing you need to apply the formula of =(A1*3+8)/5 in the Column C, and see the following tutorials to apply the same formula to entire Column C.


arrow blue right bubble Apply formula to an entire column or row with dragging AutoFill handle

doc apply formula 02

Dragging the AutoFill handle is the most common way to apply the same formula to an entire column or row in Excel.

Firstly type the formula of =(A1*3+8)/5 in Cell C1, and then drag the AutoFill Handle down to the bottom in Column C.

Then the formula of =(A1*3+8)/5 is applied in the whole Column C. If you need to apply it to the entire row, you can drag the AutoFill Handle to the far right.

Note: This dragging AutoFill handle method requires formula calculation automatically. You can enable it with clicking Formulas > Calculation Options > Automatic. See below screenshot:


arrow blue right bubble Apply formula to an entire column or row without dragging by shortcut keyboards

Sometimes, the column you want to apply the formula may covers hundreds of rows, and dragging Fill handle may be not convenient. Actually you and use shortcut keyboards to archive it easily in Excel.

Firstly, select the whole Column C, secondly enter the formula =(A1*3+8)/5, and then press the Ctrl + Enter keys together.

If you want apply the formula to an entire row, you can select the entire row first.


arrow blue right bubble Apply formula to an entire column or row without dragging by Fill feature

Actually there is a Fill command on Excel Ribbon to help you apply formula to an entire column or row quickly.

Firstly enter the formula =(A1*3+8)/5 into the Cell C1 (the first cell of column where you will enter the same formula), secondly select the entire Column C, and then click Home > Fill > Down. See left screenshot.

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.


arrow blue right bubble Apply formula to an entire column or row without dragging by Kutools for Excel

doc apply formula kte 01

All of above methods are to apply formulas to blank column or row. Sometimes you may need to apply the same formula to an entire column or row with data. How to process? You can try the Kutools for Excel's Operation Tools.

Kutools for Excel - Combines More Than 120 Advanced Functions and Tools for Microsoft Excel

1. Select the column or row that you will work with (in this case select the Column A), and click Kutools > More > Operation. See left screenshot.

2. In the Operation Tools dialog box, select the Custom in Operation box, enter (?*3+8)/5 in the blank box in the Custom section, and click the OK button. See screenshot:

And then the whole column are filled with the formula of =(?*3+8)/5, and the ? refers to the value in corresponding cell. See below screenshots:

doc apply formula 11

Notes:

(1) If you check the Create formulas option, the results will be in the form of formulas for each cell.

(2) If the Skip formula cells option is checked, the operation will skip and automatically ignore the formula cells in the selected range.

The Operation Tools can perform common math operations in multiple cells together, such as addition, subtraction, multiplication and division, etc.
Read more

Free Trial Kutools for Excel Now


arrow blue right bubbleDemo: Apply formula to an entire column or row without dragging by Kutools for Excel

Tip: In this Video, Kutools tab and Enterprise tab are added by Kutools for Excel. If you need it, please click here to have a 60-day free trial without limitation!


Easily add prefix or suffix to all cells in an entire column or row in Excel

It’s easy to fill all cells with same content in a column with the AutoFill feature. But, how to add same prefix or suffix to all cells in a column? Comparing to type the prefix or suffix to each cell separately, Kutools for Excel’s Add Text utility provides an easy workaround to get it done with several clicks only. See screenshot:

ad add text prefix suffix

Kutools for Excel includes more than 120 handy Excel tools. Free to try with no limitation in 30 days. Read More Free Download Now


arrow blue right bubbleRelated articles:

 

Recommended Productivity Tools

Office Tab

gold star1 Bring handy tabs to Excel and other Office software, just like Chrome, Firefox and new Internet Explorer.

Kutools for Excel

gold star1 Amazing! Increase your productivity in 5 minutes. Don't need any special skills, save two hours every day!

gold star1 200 New Features for Excel, Make Excel Much Easy and Powerful:

  • Merge Cell/Rows/Columns without Losing Data.
  • Combine and Consolidate Multiple Sheets and Workbooks.
  • Compare Ranges, Copy Multiple Ranges, Convert Text to Date, Unit and Currency Conversion.
  • Count by Colors, Paging Subtotals, Advanced Sort and Super Filter,
  • More Select/Insert/Delete/Text/Format/Link/Comment/Workbooks/Worksheets Tools...

Screen shot of Kutools for Excel

btn read more btn download btn purchase

Comments  

Permalink +6 Sarvesh
:-) Wow its very Usefull!!!
2013-11-09 10:03 Reply Reply with quote Quote
Permalink +1 Roshan Bhandari
This formula is very useful for my daily office work.
2013-12-19 10:36 Reply Reply with quote Quote
Permalink 0 paolo
thanks a lot man....!!!!!!!! !!!


.
2014-02-04 12:02 Reply Reply with quote Quote
Permalink +11 K
Dragging down doesn't work. It just repeats the values, not the formula. I have to manually type in the formula in each cell. Please tell me the correct way of repeating a formula down a column.
2014-03-17 21:57 Reply Reply with quote Quote
Permalink +12 Bubbalo
Go into Formulas>Calcul ation Options and change the option to automatic if its in manual. Then highlight the cells where you want the formula to go and click Fill>Down.
2014-03-27 21:32 Reply Reply with quote Quote
Permalink +2 senthil
Thanks ... u saved my time :eek:
2014-12-02 10:44 Reply Reply with quote Quote
Permalink -4 Bubbalo
I have the same issue as K above. What is the solution? It did not appear in the string of comments. Thanks
2014-03-27 21:15 Reply Reply with quote Quote
Permalink 0 $$$$
it helped but ohhh noooo
2016-03-03 14:53 Reply Reply with quote Quote
Permalink 0 Ericfinaly
very helpful thank you!
2014-04-26 15:51 Reply Reply with quote Quote
Permalink +1 Ramachandran
if 5 column and 5 Row given with some sales and Clents and Fixed Percentage So HOw to put it in excel cal
2014-05-02 12:17 Reply Reply with quote Quote
Permalink 0 Doru
"=IF(B24=N5:N18,N4,IF(B24=O5:O19,O4,IF(B24=P5:P13,P4,L4)))"

I have this formula for comparing text cells. But it works only for row 5 if i introduce values for above it shows me L4 value.
Can you help me with this?
2014-06-19 07:55 Reply Reply with quote Quote
Permalink +2 kipling
How does one apply an equation for a different row? For example,I used =COUNTIF(C8:C19 ,"
2014-07-02 20:16 Reply Reply with quote Quote
Permalink 0 waddah
thanks a lot, really very helpful
2014-07-07 09:48 Reply Reply with quote Quote
Permalink 0 J
I want to add column c to column D for each row and put the result in column E...How do I do that?
2014-07-08 14:09 Reply Reply with quote Quote
Permalink 0 JDA
Here is the formula I wrote to accomplish that task:
=CONCATENATE(IN DIRECT("D"&ROW( ))," ",INDIRECT("E"&ROW()))
I wanted the system to take the text from columns D and E in the current row and put them in the column with the formula. I was working with text. You may need to incorporate the SUM function if you want to combine numbers. Row() tells it to use the current row number. Good luck!
2014-07-25 15:15 Reply Reply with quote Quote
Permalink 0 yen
Thank for this,

But what will do when row D have not continuously series i.e. if any blank cell available there and i want print above cell value in blank cell and then concatenate the both cell
2016-02-03 20:21 Reply Reply with quote Quote
Permalink +2 Harish
hii

I am not be able to drag below mentioned formula
=E15*E11/E63
I want E11 and E63 to remain same only E15 to be change as cell wise



pls help

regards
Harish Balam
2014-08-16 15:41 Reply Reply with quote Quote
Permalink -3 Donna
To copy the formula and change it automatically, do the following:
Select cell D2
Click on the Copy button in the Home ribbon (or press Control+C on the keyboard) to copy the cell formula
Mark cells D3 through D11 (put the mouse on cell D3, click the left mouse button and leave it pressed, then move the mouse to cell D11 and release the mouse button)
Click on the Paste button in the Home ribbon (or press Control+V on the keyboard) to paste the formula to the cells you selected
And the formula is automatically applied to all the selected cells.
http://www.excel-formulas.com/mathematical-excel-formulas/apply-formula-to-row.php
Worked for me, it should for you too.
2014-09-08 07:57 Reply Reply with quote Quote
Permalink -1 Janine
This may be a simple question for you guys/gals, but I'm clueless. after I've applied my formulas how do I get rid of the #DIV/0???
2014-08-20 17:44 Reply Reply with quote Quote
Permalink +1 DJ
Your cell is to small? Widen the cell by dragging to the right.
2014-08-30 16:06 Reply Reply with quote Quote
Permalink 0 Julie
Quoting Janine:
This may be a simple question for you guys/gals, but I'm clueless. after I've applied my formulas how do I get rid of the #DIV/0???

Select the whole area that includes all the #DIV/0
Go to "Find & Select" -
Go to SPECIAL.
Click the radio button in front of Formulas.
Unclick Numbers, Text, Logicals - which leaves only "Errors" Checked.
Click OK
Now all the Div/0 will be highlighted and nothing else.
Use you delete key and they will disappear.
2017-05-08 13:16 Reply Reply with quote Quote
Permalink 0 barcad
I have the same problem as Harris above. How do I go about it?
2014-09-04 23:12 Reply Reply with quote Quote
Permalink 0 Nancy
very helpful and easy to follow!
2014-09-05 21:09 Reply Reply with quote Quote
Permalink -1 M
This was easy and so helpful ~Thanks~
2014-11-30 20:26 Reply Reply with quote Quote
Permalink 0 Jane
Hi,

Please can you tell me how to do a forumula to work out the number of days using dates eg 09/06/12 - 08/05/12 - when i put in the forumulation it brings up a date instead of number of days.
2015-03-03 09:22 Reply Reply with quote Quote
Permalink +2 sude69
Thanks a lot!! :D
:D :lol:
rEALLY helped
2015-04-17 05:22 Reply Reply with quote Quote
Permalink +1 Vinayak
Dear Sir/Madam
I want to add formula in a xls sheet as i have dat like
=Sheet1!A1,=Sheet1!A2,=Sheet1!A3........
=Sheet2!A1,=Sheet2!A2,=Sheet2!A3........
=Sheet3!A1,=Sheet3!A2,=Sheet3!A3........
.
.
.
i want to devide complete data by 1000
ex =Sheet2!A1/1000,=Sheet2!A2/1000,=Sheet2!A3/1000........
.
.
.
.
.
.
2015-05-19 03:30 Reply Reply with quote Quote
Permalink 0 Mind
I have a totally off topic question... How did you get the cool 16-bit looking color depth in the office graphic? Is that just a byproduct of the png rendering? It looks really cool, and I kind of wish just running office in 16 bit color depth would do that, but I feel like it would just break..
2015-05-26 02:30 Reply Reply with quote Quote
Permalink 0 sajid
i am not getting my desired result i want to put formula of minus to entire row and have put c4-d5 and then dragging the line till end but the answer is not coming help me please
2015-08-13 10:26 Reply Reply with quote Quote
Permalink 0 Shelby
Hey,

I am trying to create a spreadsheet, I want the numbers to go kind of like back to front? so when I press control N the first number for example will go on the line below, so basically the numbers start from small to big not big to small.

I have got another spreadsheet that does do this however I cant remember how it was done and cant find out how to do it anywhere.

I know I didn't explain that very well but does anyone know what I mean?
2015-08-13 12:53 Reply Reply with quote Quote
Permalink 0 AJ
if I have 1 column already with data inputted - and I wanted to add a percentage on top of each value inputted - can I formulate a single column?
2015-08-26 14:18 Reply Reply with quote Quote
Permalink 0 Anna
I am copying formulas down a column of rows. The column cells do not change automatically. e.g. dx35,dy35,dz35. I have to manually change dx to dy etc. How do I do that?
2015-09-06 23:21 Reply Reply with quote Quote
Permalink 0 snehal belhekar
hi,
I want to copy formula, if rate 152,458,496 and Quantity 1,2,3 in first line then second line quntity 4,5,3 then third line 8,7,9 then forth line 7,9,6 so i want to calculate rate * every quntity. for example 152*1+152*2+152 *3=2280.i want this formula past in every column so how do i do ?
2015-10-21 07:16 Reply Reply with quote Quote
Permalink 0 BA10
This is helpful, HOWEVER, when you copy down formulas through the whole column, it makes the spreadsheet have thousands and thousands of rows.
2015-12-01 16:14 Reply Reply with quote Quote
Permalink 0 Haggstrom
Delete all the rows below your active range, e.g., if you expanded column A, there are 1048756 filled rows there but you're only using 100 rows, then in the Name box at the left side of the Formula Bar, type
A101:A1048756
Then press Enter and then Delete
This worked for me, and I got it from at:
http://answers.microsoft.com/en-us/mac/forum/macoffice2011-macexcel/how-do-i-delete-extra-rows-in-excel/5a4e26b2-39fb-47dd-a8c8-b0a5c4d1b9b4
2016-01-20 19:51 Reply Reply with quote Quote
Permalink +1 V
Quoting K:
Dragging down doesn't work. It just repeats the values, not the formula. I have to manually type in the formula in each cell. Please tell me the correct way of repeating a formula down a column.
same issue as of K. plz help
2015-12-20 07:52 Reply Reply with quote Quote
Permalink +1 rishi atrey
excel all formulas short cut key please toking
2016-01-22 06:45 Reply Reply with quote Quote
Permalink 0 victor S
In your above direction as how to 'Apply formula to an entire column or row without dragging by Fill feature', you state:
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.

this appears to work only only if the formula is in the first cell; is there any way to use the Fill feature (for rows) starting in a cell other than the first one?
2016-04-20 18:30 Reply Reply with quote Quote
Permalink 0 mehjabin
i can add 45 days with a date, for that i use date+45,it is success.But i want the total the below colum with out dragging when i enter the date..any way to do that plz help me
2016-05-07 17:48 Reply Reply with quote Quote
Permalink 0 ikrar khan
i am write in a one colum month and pur in one colum but don`t write.sir plz help me.
2016-06-25 06:19 Reply Reply with quote Quote
Permalink 0 Julie Heyer
For the questions on getting rid of #Div/0. I'm guessing you have divided by 0 or something and want those cells to be blank.

Select the whole column with the #Div/0 you don't want.
Go to Home > Find & Select > Go to Special
Toggle off Comments and Toggle On Formulas; Remove all checkmarks except the one in front of Errors.
Click OK.
You are now back to your column. You have "Found" all the "Div/0" cells.
Click the delete key and they are now blank.
2016-07-06 16:07 Reply Reply with quote Quote
Permalink 0 Arjun Gupta
Working OK, Thanks...... : )
2016-09-02 07:04 Reply Reply with quote Quote
Permalink 0 Tammy
Please i need help. How do i hide my formulas in my workbook. I don't want the formulas or the result to show in my workbook until i entered the required values in the linked column/cells. Presently, the cells either show the formula, zero or #NA. I don't want any of those to show until i have values for linked cells or columns.

Thanks
2016-09-30 19:36 Reply Reply with quote Quote
Permalink 0 Greifus
You can achieve the same thing by double clicking on the little square on the bottom right of the selected cell.
2016-10-03 10:18 Reply Reply with quote Quote
Permalink 0 adam
I want to show a certain row with a specific word in it, in a specific sheet by the help of a drop down. like i creat a drop down with some specific category in it and all category have a sheet for it own data, I want to seprate all the data with that specfice word, in different sheets always as i update the sheet every time.Please let me know if any one knows the answer ASAP!!!!
2016-10-24 00:51 Reply Reply with quote Quote
Permalink 0 Lawrence J Gosling
Hi, I am trying to do a similar thing, but with letters. I am researching and trying to complete the civil aircraft register for the UK. I therefore need to have column A as G-AAAA to G-AZZZ on one work sheet and then G-BAAA to G-BZZZ on the next worksheet, etc. all the way to G-ZAAA to G-ZZZZ on the 25th worksheet. Is there an easy way of drag filling letters rather than numbers? As I have to manually fill each cell at the moment, which is very laborious. Thanks in advance, Lawrence
2016-10-25 21:46 Reply Reply with quote Quote
Permalink 0 Thao Le
This instruction is very useful for me! I will share with my colleagues! It helps me to save a lot of time in work! Thank you a lot!
2017-01-03 06:08 Reply Reply with quote Quote
Permalink 0 Thao Le
This tip helps me to save a lot of time in work. I will share with my colleagues! Thank you a lot for sharing!
2017-01-03 06:10 Reply Reply with quote Quote
Permalink 0 Mansi
Hi,

How can I do sum of two different column with formula?

Like I want to sum of A1 and D1 and getting answer on F1 then which formula apply?
2017-05-06 20:02 Reply Reply with quote Quote

Add comment


Security code
Refresh