+ Reply to Thread
Results 1 to 10 of 10

drop down boxes

Hybrid View

Guest drop down boxes 04-20-2009, 07:40 PM
Richard Buttrey Re: drop down boxes 04-20-2009, 08:00 PM
Guest Re: drop down boxes 04-20-2009, 08:25 PM
Guest Re: drop down boxes 04-20-2009, 09:03 PM
Chance2 Re: drop down boxes 04-20-2009, 09:13 PM
Guest Re: drop down boxes 04-20-2009, 09:31 PM
Guest Re: drop down boxes 04-20-2009, 09:49 PM
Chance2 Re: drop down boxes 04-20-2009, 11:15 PM
Guest Re: drop down boxes 04-20-2009, 11:30 PM
Guest Re: drop down boxes 04-21-2009, 11:43 AM
  1. #1
    anon125
    Guest

    drop down boxes

    Yes I know this is NOT really a charting problem but this is where the forum insisted i put it.

    I tried combo boxes - but they did not seem to help.

    i want to have an input box where i can select say 5 cities and have a chart of the weather in all those cities.

    thanks
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: drop down boxes

    Hi,

    No reason why combo boxes wouldn't allow you to select the cities, but you're still going to have to tell the system what to do with them.

    Another approach would be to create 5 input cells, say A5:A9 and put a data validation in those cells using the List option, and specify the list of cities as the list range.

    Now put the label 'City' above the first city in the list and name the whole table say 'Cities'.

    Put the same label 'City' in A4, so that A4:A9 becomes a criteria filter

    Now copy the first row of your table to another area which will become the output area for a Data Filter

    You can now use Data Filter Advanced to extract cities from your database to the new area using A4:A9 as the criteria.

    Finally link your chart to this output area.

    Incidentally you appear to have duplicate city names in the table. You'll probably want to tidy that up first.

    HTH
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    anon125
    Guest

    Re: drop down boxes

    Quote Originally Posted by Richard Buttrey View Post
    Hi,

    No reason why combo boxes wouldn't allow you to select the cities, but you're still going to have to tell the system what to do with them.

    Another approach would be to create 5 input cells, say A5:A9 and put a data validation in those cells using the List option, and specify the list of cities as the list range.

    Now put the label 'City' above the first city in the list and name the whole table say 'Cities'.

    Put the same label 'City' in A4, so that A4:A9 becomes a criteria filter

    Now copy the first row of your table to another area which will become the output area for a Data Filter

    You can now use Data Filter Advanced to extract cities from your database to the new area using A4:A9 as the criteria.

    Finally link your chart to this output area.

    Incidentally you appear to have duplicate city names in the table. You'll probably want to tidy that up first.

    HTH
    Thanks very much.
    I don't understand it yet- but i will do my best!
    yes the data is imperfect- it comes from noaa

  4. #4
    anon125
    Guest

    Re: drop down boxes

    well i have got somewhere!

    i still don't see how to select several cities to get say 5 on a graph.

    and i don't know how to tell it that when i select say "butte" that that should be copied to the output area.
    thanks

    see new attached
    Attached Files Attached Files
    Last edited by anon125; 04-20-2009 at 09:19 PM.

  5. #5
    Forum Contributor
    Join Date
    04-01-2009
    Location
    Irvine, CA
    MS-Off Ver
    Excel 2010
    Posts
    280

    Re: drop down boxes

    Try this...
    Attached Files Attached Files

  6. #6
    anon125
    Guest

    Re: drop down boxes

    Quote Originally Posted by Chance2 View Post
    Try this...

    somehow thanks doesn't seem enough so
    a million thanks

  7. #7
    anon125
    Guest

    Re: drop down boxes

    i am very puzzled about your solution.
    i am trying to duplicate it in the spread sheet, via several sheets, so i can include, low temps, rain stats. etc
    and your boxes stay visible!
    haven't figured it out yet!

  8. #8
    Forum Contributor
    Join Date
    04-01-2009
    Location
    Irvine, CA
    MS-Off Ver
    Excel 2010
    Posts
    280

    Re: drop down boxes

    The drop down boxes remain visible because they are "form" drop downs (not lists like the previous solution). The list solution will work as well, I just thought you wanted drop downs!

    As for the data on the charts, that is mainly named ranges. You could use some kind of INDIRECT to refer to the different sheets as long as all the sheets had the same number of rows/columns. It's a little trickier, but doable.

  9. #9
    anon125
    Guest

    Re: drop down boxes

    Quote Originally Posted by Chance2 View Post
    The drop down boxes remain visible because they are "form" drop downs (not lists like the previous solution). The list solution will work as well, I just thought you wanted drop downs!

    As for the data on the charts, that is mainly named ranges. You could use some kind of INDIRECT to refer to the different sheets as long as all the sheets had the same number of rows/columns. It's a little trickier, but doable.
    the solution you created is perfect. 5 cities in a row. very nice idea.
    as all the info is from noaa there are probably the same number of rows and the months are 12 of course.

    the chart named ranges of course change for every city. and are filename.xls!lab1 and ser1. did you name something else with these names?
    EDITED: just found named ranges and mylist. do i need ser1a, ser1b etc for each worksheet?

    eventually i will have a series of worksheets in one file for rain, sun, coldest, hottest etc weathers
    thanks very much.
    Last edited by anon125; 04-20-2009 at 11:43 PM.

  10. #10
    anon125
    Guest

    Re: drop down boxes

    this problem is now solved - thanks all

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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