+ Reply to Thread
Results 1 to 2 of 2

Make a list of integers from 0, 1, 2..."n" where "n" is specified in another cell.

  1. #1
    Registered User
    Join Date
    07-04-2013
    Location
    MExico
    MS-Off Ver
    Excel Mac 2011
    Posts
    1

    Make a list of integers from 0, 1, 2..."n" where "n" is specified in another cell.

    Hi, I´ve been working in a aprticular project where I need to have a column filled with integers from 0 to "n", "n" is specified in another cell, and I would like the list to expand or contract according to the value specified in "n".
    In other words, to fill a column in steps of one until it reaches the stop value which is specified in a particular cell, and when the value for "n" changes the list automatically updates.

    Also it would be great to be able to have the column that takes input from the column i want to make to expand accordingly.

    Is there a way to do this? Thank you.

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

    Re: Make a list of integers from 0, 1, 2..."n" where "n" is specified in another cell.

    Try something like this...

    Let's assume cell A2 is where you enter the target number.

    Enter this formula in B2:

    =IF(A2="","",0)

    Enter this formula in B3:

    =IF(ROWS(B$3:B3)>A$2,"",ROWS(B$3:B3))

    Copy down to a number of cells that is at least equal to the maximum value that will be entered into cell A2.

    Not sure I understand this...

    Also it would be great to be able to have the column that takes input from the column i want to make to expand accordingly.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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