Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

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/ statically from 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. Full Feature Free Trial 30-day!
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.

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

Kutools for Excel - Includes more than 300 handy tools for Excel. Full feature free trial 30-day, no credit card required! Get It Now


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

In this Video, Kutools and Kutools Plus tabs are added by Kutools for Excel. If need it, please click for 30-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


arrow blue right bubbleRelated articles:


Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Percikjernih Riak Telaga · 2 months ago
    Hi, i wanted to ask something
    I want to count the total Shifts within the Shift column and put it in either Shift 1,Shift 2, or Shift 3 in column Q,R & S.
    As you can see in the picture, i already copy the formula from M2 (Circle 2) to below it.
    The thing is, i wanted to count the Shift per Each Day.
    But as you can see i had a little bit of problem. I had 2 problems :
    1. I want to copy the formula to the cell below BUT in a different day, NOT the same day, i searched on the internet and i still don't have a clue on how to do that.
    2.If there's no way to do that, is there any way that i can count the shift (i'm using COUNTIF here in Q2,R2 & S2 (Circle 3) ) from 23rd July - 30th July, without including the shift from the same day ? The point is i wanted to retrieve one shift per day, and as you can see if i retrieve the data, it counts as three/four shift per day (Circle 1).

    If there's any question about my problem, do feel free to ask !!
    Thank you.
  • To post as a guest, your comment is unpublished.
    Saif · 1 years ago
    hi, if the cell are not the same size in a column, then how can i copy the calculation of the top cell of column to the end (there are 200 rows in that column), as example if the first cell contains three rows merged but the second one is of two rows merged then dragging option does not work, what to do then ? pls advise.
    • To post as a guest, your comment is unpublished.
      kellytte · 9 months ago
      Hi Saif,
      Hotkeys may work.
      Select the target column or cells you will apply formulas, type the formula in the formula bar, and then press Ctrl + Enter keys simultaneously.
  • To post as a guest, your comment is unpublished.
    Albana · 1 years ago
    Pershendetje , si mund te funksionoje formula ne excel pa i dhene save , sepse nuk e shfaq veprimi e kryer pa dhe save. Faleminderit!
  • To post as a guest, your comment is unpublished.
    Ethan · 1 years ago
    can it be used for to varting values
  • To post as a guest, your comment is unpublished.
    Rakesh · 1 years ago
    How i can use them in VBA?
    • To post as a guest, your comment is unpublished.
      Tang Kelly · 1 years ago
      Hi Rakesh,
      All of methods introduced in the article are very easy. Is the VBA necessary?
  • To post as a guest, your comment is unpublished.
    sunny singh · 2 years ago
    How do i divide the one entire coloumn filled with number by 1000 or any number witout creating nother coloumn?
    • To post as a guest, your comment is unpublished.
      · 2 years ago
      Hi Sunny,

      Kutools for Excel’s Operation feature can help solve this problem.

      (1) Select the column you need to divided by a certain number;

      (2) Click Kutools > More > Operation;
      (3) In the Operation Tools dialog, specify Division, type in the divisor, and click OK.
  • To post as a guest, your comment is unpublished.
    Mansi · 2 years ago
    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?
  • To post as a guest, your comment is unpublished.
    Thao Le · 2 years ago
    This tip helps me to save a lot of time in work. I will share with my colleagues! Thank you a lot for sharing!
  • To post as a guest, your comment is unpublished.
    Thao Le · 2 years ago
    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!
  • To post as a guest, your comment is unpublished.
    Lawrence J Gosling · 3 years ago
    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
  • To post as a guest, your comment is unpublished.
    adam · 3 years ago
    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!!!!
  • To post as a guest, your comment is unpublished.
    Greifus · 3 years ago
    You can achieve the same thing by double clicking on the little square on the bottom right of the selected cell.
  • To post as a guest, your comment is unpublished.
    Tammy · 3 years ago
    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
  • To post as a guest, your comment is unpublished.
    Arjun Gupta · 3 years ago
    Working OK, Thanks...... : )
  • To post as a guest, your comment is unpublished.
    Julie Heyer · 3 years ago
    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.
  • To post as a guest, your comment is unpublished.
    ikrar khan · 3 years ago
    i am write in a one colum month and pur in one colum but don`t write.sir plz help me.
  • To post as a guest, your comment is unpublished.
    mehjabin · 3 years ago
    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
  • To post as a guest, your comment is unpublished.
    victor S · 3 years ago
    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.

    [b]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?[/b]
  • To post as a guest, your comment is unpublished.
    rishi atrey · 3 years ago
    excel all formulas short cut key please toking
  • To post as a guest, your comment is unpublished.
    V · 3 years ago
    [quote name="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.[/quote]same issue as of K. plz help
  • To post as a guest, your comment is unpublished.
    BA10 · 3 years ago
    This is helpful, HOWEVER, when you copy down formulas through the whole column, it makes the spreadsheet have thousands and thousands of rows.
    • To post as a guest, your comment is unpublished.
      Haggstrom · 3 years ago
      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
  • To post as a guest, your comment is unpublished.
    snehal belhekar · 4 years ago
    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 ?
  • To post as a guest, your comment is unpublished.
    Anna · 4 years ago
    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?
  • To post as a guest, your comment is unpublished.
    AJ · 4 years ago
    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?
  • To post as a guest, your comment is unpublished.
    Shelby · 4 years ago
    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?
  • To post as a guest, your comment is unpublished.
    sajid · 4 years ago
    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
  • To post as a guest, your comment is unpublished.
    Mind · 4 years ago
    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..
  • To post as a guest, your comment is unpublished.
    Vinayak · 4 years ago
    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........
    .
    .
    .
    .
    .
    .
  • To post as a guest, your comment is unpublished.
    sude69 · 4 years ago
    Thanks a lot!! :D
    :D :lol:
    rEALLY helped
  • To post as a guest, your comment is unpublished.
    Jane · 4 years ago
    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.
  • To post as a guest, your comment is unpublished.
    M · 4 years ago
    This was easy and so helpful ~Thanks~
  • To post as a guest, your comment is unpublished.
    Nancy · 5 years ago
    very helpful and easy to follow!
  • To post as a guest, your comment is unpublished.
    barcad · 5 years ago
    I have the same problem as Harris above. How do I go about it?
  • To post as a guest, your comment is unpublished.
    Janine · 5 years ago
    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???
    • To post as a guest, your comment is unpublished.
      Julie · 2 years ago
      [quote name="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???[/quote]
      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.
    • To post as a guest, your comment is unpublished.
      DJ · 5 years ago
      Your cell is to small? Widen the cell by dragging to the right.
  • To post as a guest, your comment is unpublished.
    Harish · 5 years ago
    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
    • To post as a guest, your comment is unpublished.
      Donna · 5 years ago
      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.
  • To post as a guest, your comment is unpublished.
    J · 5 years ago
    I want to add column c to column D for each row and put the result in column E...How do I do that?
    • To post as a guest, your comment is unpublished.
      JDA · 5 years ago
      Here is the formula I wrote to accomplish that task:
      =CONCATENATE(INDIRECT("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!
      • To post as a guest, your comment is unpublished.
        yen · 3 years ago
        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
  • To post as a guest, your comment is unpublished.
    waddah · 5 years ago
    thanks a lot, really very helpful
  • To post as a guest, your comment is unpublished.
    kipling · 5 years ago
    How does one apply an equation for a different row? For example,I used =COUNTIF(C8:C19,"
  • To post as a guest, your comment is unpublished.
    Doru · 5 years ago
    "=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?
  • To post as a guest, your comment is unpublished.
    Ramachandran · 5 years ago
    if 5 column and 5 Row given with some sales and Clents and Fixed Percentage So HOw to put it in excel cal
  • To post as a guest, your comment is unpublished.
    Ericfinaly · 5 years ago
    very helpful thank you!
  • To post as a guest, your comment is unpublished.
    Bubbalo · 5 years ago
    I have the same issue as K above. What is the solution? It did not appear in the string of comments. Thanks
  • To post as a guest, your comment is unpublished.
    K · 5 years ago
    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.
    • To post as a guest, your comment is unpublished.
      Bubbalo · 5 years ago
      Go into Formulas>Calculation 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.
  • To post as a guest, your comment is unpublished.
    paolo · 5 years ago
    thanks a lot man....!!!!!!!!!!!


    .
  • To post as a guest, your comment is unpublished.
    Roshan Bhandari · 5 years ago
    This formula is very useful for my daily office work.
  • To post as a guest, your comment is unpublished.
    Sarvesh · 6 years ago
    :-) Wow its very Usefull!!!