+ Reply to Thread
Results 1 to 5 of 5

Simple increase a number in a formula in every row

  1. #1
    Registered User
    Join Date
    01-05-2013
    Location
    Sarajevo
    MS-Off Ver
    Excel 2007
    Posts
    40

    Simple increase a number in a formula in every row

    Hi!

    I have the following formula in a cell:

    INDIRECT($K$180&"!"&"Z"&1)

    Almost the same formula is in the all column. The only difference is that last number has to change i every consecutive cell, like this:

    INDIRECT($K$180&"!"&"Z"&1)
    INDIRECT($K$180&"!"&"Z"&2)
    INDIRECT($K$180&"!"&"Z"&3)
    INDIRECT($K$180&"!"&"Z"&4)
    ...
    ...
    And so on about 800 times. Off course it would be much easier to just do it like I always do, and that is just press lower right corner of one cell an move it down to the end of desired row and excel will alone increase last number in every cell buy 1. Well, the problem is that excel do not increase the last number, and I don't know why, and how to do that .

    Please, can you help me ?

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

    Re: Simple increase a number in a formula in every row

    Try it like this:

    =INDIRECT($K$180&"!Z"&ROWS($1:1))

    If you have spaces in the sheet name in K180, then you will need to include apostrophes (there is no harm in using them anyway), like this:

    =INDIRECT("'"&$K$180&"'!Z"&ROWS($1:1))

    Hope this helps.

    Pete

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Simple increase a number in a formula in every row

    Maybe like this...

    INDIRECT($K$180&"!Z"&ROWS(A$1:A1))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    01-05-2013
    Location
    Sarajevo
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: Simple increase a number in a formula in every row

    Wow, thanks a lot guys It works just fine

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Simple increase a number in a formula in every row

    You're welcome. We appreciate the feedback!

+ 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. increase formula number when copying
    By andycuk7 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 07-06-2015, 06:22 PM
  2. [SOLVED] Copy formula across columns, but row number to increase
    By papasmurfuo9 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-26-2014, 10:27 AM
  3. [SOLVED] Formula to automatically increase invoice number
    By blacktie in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-19-2013, 08:49 AM
  4. [SOLVED] Formula to increase row number by one (1) in each column
    By headley4ever in forum Excel General
    Replies: 3
    Last Post: 06-12-2013, 02:48 PM
  5. Increase a number horizontally formula???
    By jacksoss in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 11-28-2012, 02:52 AM
  6. Formula to increase number
    By steveclug in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 02-03-2011, 10:16 AM
  7. formula to increase a number by 10%?
    By ruffridder9 in forum Excel General
    Replies: 10
    Last Post: 02-19-2007, 05:13 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