+ Reply to Thread
Results 1 to 6 of 6

How do I create a dynamic drop down menu from horizontal cells?

  1. #1
    Registered User
    Join Date
    03-05-2014
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    7

    How do I create a dynamic drop down menu from horizontal cells?

    I am having troublt adapting this formula to feed in data from horizontal cells.

    I am using this function here: =OFFSET(A2,0,0, counta(1:1)-1)

    http://www.teachexcel.com/excel-tuto...-in-excel.html

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: How do I create a dynamic drop down menu from horizontal cells?

    Hi Jocelyn

    I suggest you post a sample workbook so we can see what you're working with.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    03-05-2014
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: How do I create a dynamic drop down menu from horizontal cells?

    I have attached a excel document. Call D23 is where I would like drop down menu and I would like it to pull data from D4, D5, D6 etc.

    Does this make sense?
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How do I create a dynamic drop down menu from horizontal cells?

    First in D4 dragged right, change the formula to
    =IF(INDIRECT("Input!A"&0+(3*COLUMN(A3))-1)=0,"",INDIRECT("Input!A"&0+(3*COLUMN(A3))-1)+0)
    this stores the number as a number, it was text.

    Then for data validation in D23
    =OFFSET($D$4,0,0,1, COUNT($D$4:$AG$4))
    See attachment
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Registered User
    Join Date
    03-05-2014
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: How do I create a dynamic drop down menu from horizontal cells?

    You are the best, thanks for fixing our other formula! Thank you so much

  6. #6
    Registered User
    Join Date
    08-01-2012
    Location
    Bengaluru, India
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: How do I create a dynamic drop down menu from horizontal cells?

    Just a small change I would suggest to the data validation formula in cell D23:
    =OFFSET($D$4,0,0,1,COUNT(4:4))

    Makes it more dynamic, rather than limiting the option till column AG only.

+ 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. [SOLVED] Dynamic drop down menu
    By madhatter40 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-18-2013, 06:33 PM
  2. Dynamic Pie Chart w/ Drop Down Menu
    By JonLombardi in forum Excel Charting & Pivots
    Replies: 9
    Last Post: 05-17-2013, 01:35 PM
  3. [SOLVED] Dynamic range for drop down menu
    By wyanrandy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-15-2012, 03:16 PM
  4. [SOLVED] I cant work out how to create a drop down menu that relates to another drop down menu
    By louise2613 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 08-18-2012, 01:49 PM
  5. Dynamic Chart with Drop-Down Menu
    By Katrotat in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 06-30-2011, 05:30 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