+ Reply to Thread
Results 1 to 3 of 3

copying formulas from column to column

  1. #1
    Forum Contributor
    Join Date
    03-07-2008
    Posts
    140

    copying formulas from column to column

    Hi,
    In the attached spreadsheet, I am trying to drag the formula from one column to the next but I need the same cells to be used in every column with the exception of one cell. For instance, the formula I want to use is in the cell highlighted yellow. In the next cell over (highlighted blue) I want the formula to use the same D and E cells with the only change being the first part of each (G). Both the blue and yellow cell represent what I want to do. For example, the next column (H) would have (H4+D4+E4) in the first part. Column I would have (I4+D4+E4), and so on.

    The D and E columns will be in every equation for each column. The problem is that excel wants to use the next column over instead of keeping D and E in each. How do I drag these equations so that it just changes the first part and keeps the D and E columns the same?
    Attached Files Attached Files
    Last edited by mufan; 06-04-2009 at 10:48 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: copying formulas from column to column

    Put this in F11 and copy it across:

    =SUMPRODUCT($D$4:$D$10 * $E$4:$E$10 * F4:F10)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: copying formulas from column to column

    Hi Mufan,

    To keep the D's and E's static, put a dollar sign in front of them, e.g.

    =(F4*$D4*$E4)+(F5*$D5*$E5)+...

    If you put a $ next to a column letter, it will stay static. Also, if you put a $ next to a row number it will stay static. (If you put a $ next to both, that cell reference will remain static.)

    Hope that helps!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1