+ Reply to Thread
Results 1 to 4 of 4

List dependent on a set value

  1. #1
    Registered User
    Join Date
    05-28-2019
    Location
    Edinburgh
    MS-Off Ver
    2013
    Posts
    92

    List dependent on a set value

    Hi Guys,
    Is it possible to make a list so that if I had the number 5 the list would give me the numbers 0,1,2,3,4,5. But if i changed the 5 to a 3 for example the list results would change to 0,1,2,3 and so on?

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: List dependent on a set value

    Give you the numbers where? In one cell? In a range of cells?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    05-28-2019
    Location
    Edinburgh
    MS-Off Ver
    2013
    Posts
    92

    Re: List dependent on a set value

    Hi, So if 5 was in A1, A2 would have a list of 0,1,2,3,4,5

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: List dependent on a set value

    This proposal employs two helper columns (modeled in L:M) which may be moved and or hidden for aesthetic purposes.
    The first helper column is populated using: =IF(ROW()=2,0,IF(L1<A$1,SUM(L1,1),""))
    The second helper column is populated using: =IF(ROW()=2,0,IF(L2="",M1,M1&", "&L2))
    Cell A2 is populated using: =M12
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Replies: 0
    Last Post: 06-20-2019, 07:42 PM
  2. Replies: 1
    Last Post: 06-04-2018, 06:16 PM
  3. Replies: 7
    Last Post: 11-21-2016, 04:40 PM
  4. [SOLVED] Dependent Drop down list with DEPENDENT DEFAULT VALUE
    By ginieman in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 10-28-2013, 03:56 AM
  5. Replies: 4
    Last Post: 04-17-2013, 03:28 PM
  6. Data Validation List - Dependent on Adjacent Cell - Value from Unsorted List
    By justforthis1 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-26-2013, 12:24 PM
  7. [SOLVED] Dependent Drop down list with DEPENDENT DEFAULT VALUE (e.g. Blank)
    By Waqar Ali in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-26-2012, 06:31 AM

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