+ Reply to Thread
Results 1 to 5 of 5

Displaying differing data after picking from a dropdown menu

Hybrid View

  1. #1
    Registered User
    Join Date
    11-16-2012
    Location
    West Mersea, England
    MS-Off Ver
    Excel 2013
    Posts
    15

    Displaying differing data after picking from a dropdown menu

    This may take a little time to explain. Please bear with me.
    I have successfully used Excel to produce a series of tables to solve navigational difficulties for yachtsmen and women. The tables are included in a book which is now in its second edition. The navigational difficulties are to planning for the best use of the tides when crossing the Thames Estuary (UK). I will not elaborate over the tidal difficulties for planning but to summarise the solution, a user will select a route; the route will list a number of consecutive sectors (generally 7 or 8 sectors but may be less or up to 10 sectors depending on the route). Having picked the route, the user will select the right table for the average boat speed and whether the tides are Spring or Neap (these vary in their speed). The tables provide the time a sector will take depending on the state of the tide when it is started. I would suggest you see my web site: www.crossingthethamesestuary.com. I have a video which explains how the tables work and my readers appear to like the product. The tables are entirely by Excel using trigonometry formulae. Of course the printed tables just show the values: no one see the work of the calculations behind the tables.
    I have tried to ‘automate’ the tables or rather make a start. I took one route and using IF and AND and VLOOKUP I was able to make the automation work. Here is an image of the ‘start’
    \1
    There are three dropdown menus: The intended boat speed, The Tide and the Proposed Start Time (I better explain the ‘designation’. Time is all referenced to a single datum – the time of high water at the port of Sheerness. Using the single datum any of the tables can be used forever provided the user knows the time of high water at Sheerness)
    The ‘automation’ copes with the three dropdown menus. There are two major issues. The first I will mention but ‘park’. That is checking accuracy of the formulae! The formulae may work but have I constructed it ‘right’ for the purpose. My intention was to try to construct the core of the VLOOKUP (and the structure of the data) so after I have thoroughly tested the sample I am just replicating the core of the VLOOKUP. But leave that. The issue I have come up against a mental block.
    My trial is just one route. My book and tables have 63 routes; indeed they could be argued as 126 routes because they can be used either direction – north or south. There are a total of 87 sectors so each route selects defined sectors e.g. Route 1 will select sectors A1, A2, A3, A4, A5, A6, A7 and A8 north and the reverse order for south. Route 2 will have different sectors.
    So I was trying to construct further. If I have a dropdown box of each of the 63 routes, how can the selected route automatically display the sector numbers row by row in the next column and the description row by row in the following column. This image has a dropdown menu for the main route ‘banner’. In this example the Sector No and Sector Description work using IF and AND but if built to select from each of the 63 choices in the dropdown menu, the formula will be over complicated. Is there a simple way?
    \1
    The problem will then take me further. Assuming the Sector No and Sector Description is automated from the Route dropdown list my (so called) core of VLOOKUP will need to select the Sector number. I am thinking that provided I have a separate worksheet structure for each route then all I have to do is change the right worksheet reference in the VLOOKUP formula. It’s not difficult to build those worksheets but I suspect this is just going to clog up.
    1. Have I been clearer?
    2. I am trying to be too clever?
    3. Should I really be using Access (I have no knowledge at all)

    am using Excel 2013
    Last edited by rgr; 11-11-2016 at 05:15 AM. Reason: Version correction

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,720

    Re: Displaying differing data after picking from a dropdown menu

    I have not read through your request but as a start can you post a sample Excel file, illustrating what you need.



    Attach a sample workbook.

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    11-16-2012
    Location
    West Mersea, England
    MS-Off Ver
    Excel 2013
    Posts
    15

    Re: Displaying differing data after picking from a dropdown menu

    Two files now attached, the Route 1 files has had to have the 3kt data worksheet deleted to get undeer the file size limited.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,720

    Re: Displaying differing data after picking from a dropdown menu

    Using helper cells:

    in E7: row number of Sector

    =SUMPRODUCT((Sectors!$A$2:$AQ$61=SUBSTITUTE($F$2,"Route ","")+0)*(ROW(Sectors!$A$2:$AQ$61)))

    in E8: column number of Sector

    =SUMPRODUCT((Sectors!$A$2:$AQ$61=SUBSTITUTE($F$2,"Route ","")+0)*(COLUMN(Sectors!$A$2:$AQ$61)))


    You can move these to other cells (but need to change formula references) or hide them by making font white.

    in F7: Sector numbers (IDS)

    =IF(ROWS($1:1)<=10,INDEX(Sectors!$A$1:$AQ$61,$E$7+(ROWS($1:1)-1),IF($M$4="North",$E$8+1,$E$8+2)),"")

    Copy down

    in G7: Sector description


    =IFERROR(VLOOKUP($F7,Sectors,IF($M$4="North",2,3),0),"")

    "Sectors" is a named range for the table on sheet "Sectors"

    Try with Sector 62
    Attached Files Attached Files
    Last edited by JohnTopley; 11-11-2016 at 03:13 PM.

  5. #5
    Registered User
    Join Date
    11-16-2012
    Location
    West Mersea, England
    MS-Off Ver
    Excel 2013
    Posts
    15

    Re: Displaying differing data after picking from a dropdown menu

    John

    Thank you. It will need me to get my head round it a little while but I am working on it.

    Grateful for the help.

+ 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] make dropdown menu dependent on other dropdown menu values
    By kosherboy in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-30-2015, 04:29 PM
  2. Dropdown menu that decide what data to use
    By jakobharms in forum Excel General
    Replies: 6
    Last Post: 02-12-2015, 08:48 AM
  3. Replies: 0
    Last Post: 02-24-2014, 03:05 PM
  4. Autofill data by Dropdown menu
    By JethroJohn in forum Excel Programming / VBA / Macros
    Replies: 28
    Last Post: 04-07-2011, 02:30 PM
  5. Import data from dropdown menu on internet
    By r1984 in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 04-15-2008, 05:56 PM
  6. Create Dropdown menu without using the Validation on the Data Menu
    By lostinformulas in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-13-2006, 03:47 PM
  7. Using a dropdown menu for Data Querying
    By derekrap in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-03-2005, 02:24 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