+ Reply to Thread
Results 1 to 6 of 6

Auto Increment Formula

Hybrid View

  1. #1
    Registered User
    Join Date
    03-23-2012
    Location
    Australia
    MS-Off Ver
    Professional Plus 2010
    Posts
    51

    Auto Increment Formula

    Hi,

    I hope someone can help me.

    I'm trying to write a formula where one value is incremented automatically when clicking and dragging, while the other values don't change.

    For example:

    A$1/(A$2-1)
    A$1/(A$2-2)
    A$1/(A$2-3)
    etc.

    Cheers,

    Bill

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Auto Increment Formula

    Hi,

    Assuming you enter the formula on row 1 then

    Formula: copy to clipboard
    =A$1/(A$2-ROW())


    If it starts on any other row then just add the number of the row before the one on which the formula is entered. e.g. if the formula is on row 10 then

    Formula: copy to clipboard
    =A$10/(A$11-ROW()+9)
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,825

    Re: Auto Increment Formula

    Use this for the first formula:

    =A$1/(A$2 - ROWS($1:1))

    then copy down as required.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    03-23-2012
    Location
    Australia
    MS-Off Ver
    Professional Plus 2010
    Posts
    51

    Re: Auto Increment Formula

    Thanks guys, both suggestions seem to work fine.

    What about doing the same thing except clicking and dragging "up" the page instead of down, is this possible?

    For example:

    etc.
    A$1/(A$2-3)
    A$1/(A$2-2)
    A$1/(A$2-1) start here and drag up

    Cheers,

    Bill

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,825

    Re: Auto Increment Formula

    It depends on which row you want that first formula to go into. If it is before row 100 (for example), then you could have this in the first cell:

    =A$1/(A$2 - 100 + ROWS($1:99))

    which is equivalent to:

    =A$1/(A$2 - 100 + 99) = A$1/(A$2 - 1)

    Then when you drag this up it will increment the number to be subtracted.

    Hope this helps.

    Pete

  6. #6
    Registered User
    Join Date
    03-23-2012
    Location
    Australia
    MS-Off Ver
    Professional Plus 2010
    Posts
    51

    Re: Auto Increment Formula

    Thanks Pete, I'll let you know how it goes.

    Cheers,

    Bill

+ 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. Auto increment a cell/formula every 2 weeks
    By Technobrarygeek in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-16-2014, 11:39 AM
  2. [SOLVED] Auto Increment formula issue
    By robpopper in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-13-2013, 01:30 PM
  3. [SOLVED] How to auto-increment integers within a formula
    By vikefan82 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-23-2012, 04:24 PM
  4. how to auto increment cell location within formula
    By Bill in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-16-2006, 10:25 AM
  5. Auto Fill Increment Formula
    By nfasciana in forum Excel General
    Replies: 3
    Last Post: 04-05-2005, 04:07 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