+ Reply to Thread
Results 1 to 7 of 7

Drop downs to drive spreadheet

  1. #1
    Registered User
    Join Date
    05-21-2009
    Location
    uk
    MS-Off Ver
    Excel 2003
    Posts
    4

    Drop downs to drive spreadheet

    I have some questions that are all related to the same issue.

    I’ve named a range of cells. Using the data validation function, I’ve created a simple drop down menu. Now I need this drop down to drive many things in the spreadsheet.

    For example, I need formulas to change depending on the option selected in this drop down (i.e. they need to refer to different cells depending on the options selected from the drop down). I also need some cells to simply return the contents of different cells depending on the option selected from the drop down.

    I’ve got some of the way towards this, but as the spread sheet gets bigger, its proving difficult. Currently I’m using the indirect function to read the contents of the drop down menu. As wel as naming all the cells as a range (for the drop down validation), I’ve also had to name each entry on the dropdown individually so I can use the indirect function again to return the row number to use in a formula. This appears to work, but as I continue it means I’m having to name every cell and its all getting a bit of a headache.

    See attached, greatly simplified but it explains the basic problem. As I add rows (to sheet 2), I’m going to need to name a lot of cells… this would be troublesome.

    Either I need to know how to automatically get it to name cells by its contents, or need to find a better way of doing this. Is there a way to get the row function to return the row value of the item in the drop down cell, without naming each cell in the drop down? Can anyone help? I’m really trying to avoid VBA if I can. I’m just not that good.

    Thanks for your time
    Attached Files Attached Files

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

    Re: Drop downs to drive spreadheet

    You can use the INDEX function to do this. I'm not sure exactly where you're heading however. In your example, you are returning from column C,E,F and G. Will this always be the case or will the columns you want to return be variable? Will there always be 4 results returned?

    If that is the case, you can use drop downs in Sheet1 for your headers to choose Items 1 through 7 and then use the INDEX function to return the intercept.
    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

  3. #3
    Registered User
    Join Date
    05-21-2009
    Location
    uk
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Drop downs to drive spreadheet

    "If that is the case, you can use drop downs in Sheet1 for your headers to choose Items 1 through 7 and then use the INDEX function to return the intercept. "

    Sounds interesting, how might I use the INDEX function to return the intercept?

    Thanks for your input

  4. #4
    Registered User
    Join Date
    05-21-2009
    Location
    uk
    MS-Off Ver
    Excel 2003
    Posts
    4

    Thumbs up Re: Drop downs to drive spreadheet

    This seems to work, thankyou.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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