+ Reply to Thread
Results 1 to 16 of 16

Dependent drop down lists based on dynamic data range

  1. #1
    Forum Contributor
    Join Date
    04-19-2013
    Location
    Yorkshire, England
    MS-Off Ver
    Excel 2010
    Posts
    297

    Dependent drop down lists based on dynamic data range

    Hi Excel experts,

    This is my first post and I am relatively new to Excel.

    I have scoured the forums but haven't yet been able to find a solution to my particular problem.

    I have data that resembles (I have also attached an example workbook as well if that is easier)

    Column A.................Column B................Column C..................Column D.............Column E................Column F
    Year.......................Quarter...................Month..................Product-Code...........[data A]................[data B]
    2013.........................Q1.........................Jan........................SD-21...................13%......................0.05%
    2013.........................Q2..........................Apr........................NV-12...................7%.......................6%

    etc

    I am hoping to have, on another sheet, a series of dependent drop boxes- Year, Quarter, Month, SKU- which after selecting then displays 'dataA' & 'dataB'.

    So you could select- List 1: 2013 ----> List 2: Q1 ----> List 3: Jan ----> SD-21.................and then 13% and 0.05% are displayed.


    The data will be continuously added to and so needs to be based on a dynamic data range.

    I know that a pivot table is the perfect way to do this, however my bosses have requested that I do not use that format so it is easy for all staff to access.

    So I think I need to construct some sort of dashboard sheet, I have experimented with OFFSET from other posts, but so far have had no joy.


    Any help anyone could give would outstanding- am open to any solution....


    Thanks in advance

    Strud
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Dependent drop down lists based on dynamic data range

    Here is one way of doing it.

    If you need any of it explained, just shout.

    S.


    EDIT: Actually, having had a look at this further, I'd change the way I've done it above.
    I shall do that now and repost.
    Attached Files Attached Files
    Last edited by Spencer101; 04-19-2013 at 05:23 AM.
    If I've been of help, please hit the star

  3. #3
    Forum Contributor
    Join Date
    04-19-2013
    Location
    Yorkshire, England
    MS-Off Ver
    Excel 2010
    Posts
    297

    Re: Dependent drop down lists based on dynamic data range

    Fantastic! thanks for the quick reply Spencer101.

    One thing I would hope to be able to do is remove duplicates in the drop down lists, so that 2013, or Q1 etc would only be displayed once. This is for ease of use because the data range will eventually get very large.

    Not sure if you were going to include that in your edit.

    Thanks again.

  4. #4
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Dependent drop down lists based on dynamic data range

    That's exactly what I was changing in the edit. I was also going to change it so the drop down list for "Month" was dependent on "Quarter". Problem with doing that is it would require changing Q1, Q2 etc. to something like Qtr 1, Qtr 2 etc.

    Would that be acceptable for you?

  5. #5
    Forum Contributor
    Join Date
    04-19-2013
    Location
    Yorkshire, England
    MS-Off Ver
    Excel 2010
    Posts
    297

    Re: Dependent drop down lists based on dynamic data range

    Excellent.

    Yeah that would be fine, not a problem at all.

    Quote Originally Posted by Spencer101 View Post
    That's exactly what I was changing in the edit. I was also going to change it so the drop down list for "Month" was dependent on "Quarter". Problem with doing that is it would require changing Q1, Q2 etc. to something like Qtr 1, Qtr 2 etc.

    Would that be acceptable for you?

  6. #6
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Dependent drop down lists based on dynamic data range

    How's this?
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    04-19-2013
    Location
    Yorkshire, England
    MS-Off Ver
    Excel 2010
    Posts
    297

    Re: Dependent drop down lists based on dynamic data range

    Brilliant thanks!

    That's exactly what I was after. I am now going to examine it to try to get my head around it for the future.

    Thanks again for the really quick & helpful response- perfect introduction to the forum!

    One final question if I may(?) would it be possible to have the same sort of process that finds and SUMS groups of data as opposed to looking up a specific reference- in the same way a pivot table could?

    Thanks very much!

    Quote Originally Posted by Spencer101 View Post
    How's this?

  8. #8
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Dependent drop down lists based on dynamic data range

    You can create a matrix that works kind of like a pivot, but with formulas instead.
    You'll have to explain a little more what you have in mind but I'm happy to help out with it.

  9. #9
    Forum Contributor
    Join Date
    04-19-2013
    Location
    Yorkshire, England
    MS-Off Ver
    Excel 2010
    Posts
    297

    Re: Dependent drop down lists based on dynamic data range

    Excellent so, again I have attached an example workbook.

    This time the data relates to orders. I am hoping to have the drop down lists working in the same way to narrow the data.

    But instead if returning the percentages as above, it returns the sum of orders within the given time-frame.

    (one order will appear per row)

    So using the example work book, if I had selected 2013-->Qtr1--->Feb--->SDS-1941-Black .........the return would be 5 (taken from rows 1 & 2 of data sheet).

    And ideally, to be able to display that data in some sort of dynamic chart- that might show the two months prior to, and two months after the selected date.



    Any ideas...?
    Attached Files Attached Files

  10. #10
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Dependent drop down lists based on dynamic data range

    This one will take a little longer, but it's perfectly feasible. Leave it with me and I'll get back to you ASAP.

    S.

  11. #11
    Forum Contributor
    Join Date
    04-19-2013
    Location
    Yorkshire, England
    MS-Off Ver
    Excel 2010
    Posts
    297

    Re: Dependent drop down lists based on dynamic data range

    I really wasn't sure this was going to be feasible so that's brilliant.

    It is greatly appreciated, thanks very much.

    Strud

    Quote Originally Posted by Spencer101 View Post
    This one will take a little longer, but it's perfectly feasible. Leave it with me and I'll get back to you ASAP.

    S.

  12. #12
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Dependent drop down lists based on dynamic data range

    Do you have a comprehensive list of SKUs for this or would they be added to also?

  13. #13
    Forum Contributor
    Join Date
    04-19-2013
    Location
    Yorkshire, England
    MS-Off Ver
    Excel 2010
    Posts
    297

    Re: Dependent drop down lists based on dynamic data range

    This would be added to over time. The same SKU will also end up being repeated frequently on different rows as part of the different orders (you probably got that from the workbook but just checking)

  14. #14
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Dependent drop down lists based on dynamic data range

    Sorry for the delay. I had to go and do some of my real job

    Anyway, attached is what I think you mean. Well certainly one way of doing it anyway.

    I've included a couple of comments in red to explain it, but if you need anything explaining further, let me know.

    S.
    Attached Files Attached Files

  15. #15
    Forum Contributor
    Join Date
    04-19-2013
    Location
    Yorkshire, England
    MS-Off Ver
    Excel 2010
    Posts
    297

    Re: Dependent drop down lists based on dynamic data range

    I have no idea how you managed to come up with that so quickly!

    It's absolutely what I was after, down to a T, so thank-you very much for taking the time to come up with that.

    It's going to take me an age to get my head around it lol, but for now I can just use the file you attached so problem solved!


    Just one side issue- how would I go about changing the amount of time displayed either side of the selected month on the chart- just in case I needed to in the future?

    Many thanks again, you've been so helpful

    Quote Originally Posted by Spencer101 View Post
    Sorry for the delay. I had to go and do some of my real job

    Anyway, attached is what I think you mean. Well certainly one way of doing it anyway.

    I've included a couple of comments in red to explain it, but if you need anything explaining further, let me know.

    S.

  16. #16
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Dependent drop down lists based on dynamic data range

    Quote Originally Posted by strud View Post
    I have no idea how you managed to come up with that so quickly!

    It's absolutely what I was after, down to a T, so thank-you very much for taking the time to come up with that.

    It's going to take me an age to get my head around it lol, but for now I can just use the file you attached so problem solved!


    Just one side issue- how would I go about changing the amount of time displayed either side of the selected month on the chart- just in case I needed to in the future?

    Many thanks again, you've been so helpful
    The pleasure is all mine

    Building this type of workbook is part of what I do for a living so the knowledge was already there and just had to implement it for your data set up.

    As I said, if you need any of it explaining in more detail then let me know.

    You can adjust the number of months each side by simply copying the formulas in cells J2 & J3 to the right and F2 & F3 to the left. You would then just have to amend the range of cells that the graph is feeding from, but that's simple enough.

+ 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