+ Reply to Thread
Results 1 to 3 of 3

Excel drop down list populated based on number in cell

  1. #1
    Forum Contributor
    Join Date
    12-14-2012
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    143

    Excel drop down list populated based on number in cell

    I'm trying to create a drop down list based on a number that can change in a cell. The max the drop down list would display is 14 numbers. When the cell value changes I want the drop down list to change to the new value.

    If cell value is over 14 then only display 1 - 14 in drop down list
    If cell value is under 14 then display 1 - cell value in drop down list

    Column D is what I'm referencing to populate drop down. My issue is if it gets to 0 then the drop down list no longer works. I would like it to display 0.

    Column C will change(user will change) and Column D will list remainder number up to 14

    I'm referencing I4 to populate drop down in this example.

    I have a formula that seems to work in O7 but when I populate in drop down list it produces an error.
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: Excel drop down list populated based on number in cell

    Please try DV list

    =IF($D$2,OFFSET($G$2,0,0,MATCH($C$2,$G$2:$G$15),1),$D$2)

    The result from DV list needs to refer to the range.


    The below formula won't work, because 0 is not range
    =IF($D$2,OFFSET($G$2,0,0,MATCH($C$2,$G$2:$G$15),1),0)
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    12-14-2012
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    143

    Re: Excel drop down list populated based on number in cell

    Thank you this works great

+ 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: 9
    Last Post: 04-14-2020, 05:08 PM
  2. [SOLVED] Drop Down Box Shows Both Number and Name-Just want cell populated with Number
    By BDBJ1 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-20-2016, 11:15 AM
  3. [SOLVED] Pre-populated drop-down list from selection made in drop-down list
    By jmaggols in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-15-2015, 12:26 PM
  4. [SOLVED] Based on two cells data validation list should be populated in third cell with unique vals
    By anchuri_chaitanya in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-13-2014, 03:21 PM
  5. Drop-down populated based on whether cell is blank or not
    By ss7745 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-29-2013, 12:04 PM
  6. Replies: 0
    Last Post: 02-03-2013, 06:33 PM
  7. Can a cell have a drop down list and can also be auto populated
    By Adrian in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-17-2005, 02:06 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