+ Reply to Thread
Results 1 to 9 of 9

Dependent Data Validation Using Unsorted List

  1. #1
    Registered User
    Join Date
    09-03-2012
    Location
    Jakarta
    MS-Off Ver
    Excel 2010
    Posts
    5

    Dependent Data Validation Using Unsorted List

    Hi All,

    I've learned how to do dependent data validation using sorted list. Now the problem comes when i want to use unsorted list. I can't sort the list as I need to maintain the chronological order. Please refer to the attached file for reference.

    In A3:A8 i have values for accrual ID. The accrual ID is taken from a master budget and the corresponding master budget is presented on cell B3:B8. For each accrual ID, I have put accrual value on cell C3:C8. As stated above, I can't sort A3:A8.

    The problem is, let say I have to pay USD 300 that will be paid against the accrual ID (Cell E3). I will use Budget Code on Cell F3. Now, how to do data validation (i.e., providing drop down box) in Cell G3 based on selection on Cell F3?

    Please Help.
    Accrual.xls

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Dependent Data Validation Using Unsorted List

    http://www.contextures.com/xlDataVal02.html gives the best explanation
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    09-03-2012
    Location
    Jakarta
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Dependent Data Validation Using Unsorted List

    Quote Originally Posted by martindwilson View Post
    Thanks so much. The "Using Dynamic List" part seems to (partly) solved the problem. Just need to deal with duplicate entries on the first drop down list.

  4. #4
    Registered User
    Join Date
    09-03-2012
    Location
    Jakarta
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Dependent Data Validation Using Unsorted List

    Quote Originally Posted by aelgadi View Post
    >>> If satisfied with a solution, don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Yes, will do once I've solved the whole things.

    Thanks.

  5. #5
    Registered User
    Join Date
    09-03-2012
    Location
    Jakarta
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Dependent Data Validation Using Unsorted List

    I'm sorry, after playing with it further, it seems that it's not the solution I'm looking for. See, the contextures' approach is to have separate column (the dependent list) for each unique value in column A (the independent list), which is not possible in my case. Instead of:
    Column A (category) Column B (fruit list) Column C (vegetable list) Column D (etc.)
    Fruit Apple Carrot ...
    Vegetable Orange Celery ...
    Lemon Beet ...

    I'd like to do:
    Column A (category) Column B (list)
    Fruit Apple
    Fruit Orange
    Vegetable Carrot
    Vegetable Celery
    Fruit Lemon
    Vegetable Beet

    The contextures' approach is the first table. What I'd like to do is on the second one. It's doable if the list is sorted, but in my case, that's not the option. Anyone can help with that?

  6. #6
    Registered User
    Join Date
    12-13-2012
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Dependent Data Validation Using Unsorted List

    Hi Artronnie, this is exactly what I need too. Did you ever get a resolution?

    Thanks

    Jon

  7. #7
    Registered User
    Join Date
    09-03-2012
    Location
    Jakarta
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Dependent Data Validation Using Unsorted List

    Nope can't do it the way I want it. My temporary solution is to use macro to automatically sort the list by using worksheet event.

  8. #8
    Valued Forum Contributor
    Join Date
    10-14-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2019
    Posts
    353

    Re: Dependent Data Validation Using Unsorted List

    This works when the ID's are numbers (not text)
    When ID's are text then it can be solved with VBA
    Attached Files Attached Files
    Kind regards,
    Piet Bom

  9. #9
    Valued Forum Contributor
    Join Date
    10-14-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2019
    Posts
    353

    Re: Dependent Data Validation Using Unsorted List

    @artronnie,

    Did my solution work out for you ?

+ 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