+ Reply to Thread
Results 1 to 6 of 6

Variable for automatic increase

  1. #1
    Registered User
    Join Date
    05-07-2008
    Posts
    4

    Question Variable for automatic increase

    Hello all,

    I want to declare a variable X somehow, which will fill a column in my worksheet with values 0<=X<=60, increasing every time by 2. I mean it will start from A1=0, A2=2, A3=4.........A30=60
    It has to be done by a formula and not by hand like cell = previous + 2.

    Does anybody have an idea???
    Thanks a lot!

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,033

    Re: Variable for automatic increase

    You can put +2*ROW(A1) and extend...
    Never use Merged Cells in Excel

  3. #3
    Registered User
    Join Date
    05-07-2008
    Posts
    4

    Re: Variable for automatic increase

    Thanks zbor, this seems to work.
    But it starts counting from 2 until 0 and will keep increasing unless i stop extending at 60. How can i limit this to 60?

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,033

    Re: Variable for automatic increase

    +2*ROW(A1)-2

    and for second question you can put: =MIN(60;formula)

    This will raise till 60 and 60 after that

  5. #5
    Registered User
    Join Date
    05-07-2008
    Posts
    4

    Re: Variable for automatic increase

    Much better now!!!!!
    Thanks again

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,033

    Re: Variable for automatic increase

    mark thread [solved] if you are satisfied with answer

+ 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