+ Reply to Thread
Results 1 to 2 of 2

Dragging to Repeat Formula, but with one static variable - is this possible?

  1. #1
    Registered User
    Join Date
    04-23-2012
    Location
    New Plymouth, NZ
    MS-Off Ver
    Excel for Mac 2011
    Posts
    14

    Dragging to Repeat Formula, but with one static variable - is this possible?

    Hi

    I have a SUMPRODUCT formula.

    One of the columns is static (so each column needs to reference it for the formula ( A*B > A*C and so forth)

    When I drag the formula it copies the first instance (which contains the static column, but the next one turns into a sequence and so forth.

    Is there any operand to put in the formula so that if I drag it across many columns the reference column will stay in the equation but the next column will sequence?

    Thanks

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Dragging to Repeat Formula, but with one static variable - is this possible?

    Relative And Absolute References In Formulas

    Excel accepts cell references in what are called absolute and relative ranges. Absolute ranges have a $ character before the column portion of the reference and/or the row portion of the reference. Relative ranges do not use the $ character. The $ character indicates to Excel that it should not increment the column and/or row reference as you fill a range with a formula or as you copy a range. For example A1 is a relative range, while $A$1 is an absolute range. If you enter =A1 in a cell and then fill that cell down a column, the '1' in the reference will increment in each row. Thus, the formula in row 50 would be =A50. However, if you enter =$A$1 in a cell and fill down, the range reference will remain $A$1 -- it will not increment as you fill or copy down a column.

    There are three absolute styles:

    $A$1 Both the column and row reference are fixed. Neither will be incremented or changed during a copy or fill operation.
    $A1 Only the column reference is fixed. It will not change during a fill or copy, but the row will change.
    A$1 Only the row reference is fixed. It will not change during a fill or copy, but the column will change.

    If you select all or part of a formula in the formula, you can press F4 to cycle range reference between the 4 styles (1 relative and 3 absolute).

    Even with an absolute referencing style, Excel will still change row and column references when you insert a row or column. To have a truly absolute cell reference that will not change under any circumstances, use the INDIRECT function. For example =INDIRECT("A1") will always refer to cell A1, regardless of any changes made to the worksheet. This works because Excel does not interpret the string "A1" as an address. Instead, it treats it as plain text and therefore does not change it.

    A common use of mixing absolute and relative range specifications is to create a running total of a column of number. For example, if you have data in cells A1:A10, the formula =SUM(A$1:A1) in cell B1 and filled down to cell B10 will return the running total for the numbers in column A.

    Source:

    http://www.cpearson.com/excel/relative.aspx


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Using a static cell while dragging formula across rows
    By kylewood337 in forum Excel General
    Replies: 1
    Last Post: 08-21-2013, 02:11 PM
  2. [SOLVED] Dragging formulas with a static cell reference??
    By JMcDon1007 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-04-2013, 02:01 PM
  3. [SOLVED] Static Variable.
    By JapanDave in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-28-2012, 03:04 AM
  4. [SOLVED] Static variable
    By cottage6 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-24-2005, 03:05 PM
  5. static to variable
    By zigtag3d in forum Excel General
    Replies: 1
    Last Post: 03-13-2005, 05:19 PM

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