+ Reply to Thread
Results 1 to 16 of 16

Sorted and unique validation list

  1. #1
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Sorted and unique validation list

    Hello everyone
    I have two columns one for Items and the other column for types
    In sheet2 I need in cell C4 a data validation list (sorted and unique) for the items in sheet1.range("C6:C41")
    And after selecting specific item to have appropriate data validation list in D4
    For example if I select the item B from cell C4 then in D4 I need to have a validation list of (B1 - B2 - ...... B15)
    I appreciate any help
    Thanks advacned for help
    Attached Files Attached Files
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Sorted and unique validation list

    Hello YasserKhalil,

    I know that there are many members on this forum who are against the phrase "See the attached sample workbook"

    I am not inclined to enter into lengthy explanations of how I have thrown something together for you to have a look at, and try as and when you have time.

    So yes, here it comes!!! *** Try the attached Workbook ***

    Regards.
    Attached Files Attached Files
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: Sorted and unique validation list

    this should do the dropdowns (but does not do any sorting).
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Sorted and unique validation list

    Thank you very much for both of you
    It worked like charm. Thanks a lot foe this great help
    Kind Regards

  5. #5
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Sorted and unique validation list

    Sorry for disturbing you again..
    Can it be done using formulas and named ranges ?

  6. #6
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Sorted and unique validation list

    Hello YasserKhalil,

    Can it be done using formulas and named ranges ?
    Does this mean you would want it without any VBA code?

    If that is so, it could turn out to be very difficult if at all possible.

    Cant you make do with this revised sample Workbook which contains some VBA?
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Sorted and unique validation list

    Thanks a lot Mr. Winon
    In fact I need to use formulas in my case as I would intend to create validation list in range(C4:C50) and I need formulas to be more flexible in using them
    Another point I need to get rid of blanks in these lists ..and if possible to be sorted
    Thanks a lot for great help

  8. #8
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Sorted and unique validation list

    Hi YasserKhalil,

    ...In fact I need to use formulas in my case as I would intend to create validation list in range(C4:C50) and I need formulas to be more flexible in using them
    Another point I need to get rid of blanks in these lists ..and if possible to be sorted
    Ouch!, the above clarification is very different from your original requirement as per Post#1.

    I will be consulting with a couple of companies on several other issues until at least Thursday - maybe until Friday.

    As soon as I have time after that, I promise to look at you issue again.

    Kind regards.

  9. #9
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Sorted and unique validation list

    Thanks Mr. Winon for reply
    In fact there is no difference .. I just needed to simplify my request and concentrate on the essence of the issue
    I thought it would be easy include more cells to apply the solution on them but it seems that it is complicated ..
    Regards

  10. #10
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Sorted and unique validation list

    Hello YasserKhalil,

    As promised, I had a look at your Posts again and it seems we are not exactly on "the same page", regarding your issue.

    In fact I need to use formulas in my case as I would intend to create validation list in range(C4:C50) and I need formulas to be more flexible in using them
    Another point I need to get rid of blanks in these lists ..and if possible to be sorted.
    Does the above quote refer to Sheet 2, or did you actually mean Range C6 to C50 on Sheet 1?

    Please could you attach a new sample workbook for clarification of your precise requirements.

    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 use the paperclip icon to open the upload window.

    View Pic

    Regards.

  11. #11
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Sorted and unique validation list

    Thanks Mr. Winon for reply
    As for the attachment the source for the lists in Sheet1
    And in sheet2 I need the validation lists as solved in previous solutions ...
    Just need the solution by formulas to be able to apply the lists to sheet2.range("C4:D50")
    Hope it is clear now
    Thanks for all great help provided

  12. #12
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Sorted and unique validation list

    As solution is already provided.
    In case of using formulas see the attachment
    The way your sheet is set up is perfect, sorted already both on items and type.

    Your item column is needed to be sorted in that case. Sorting can also be done using formula but may require use of helper columns

    find attached and check is this you are looking for
    Attached Files Attached Files
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  13. #13
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Sorted and unique validation list

    Mr. YasserKhalil,

    Do you need each row in sheet2.range("C4:D50") to be unique?

    In other words, if you selected a Dropdown in sheet2.range("C10"), will it be o.k. to clear all other Dropdowns in that Column, or do you want to still have any other previous selections in that column still to be visible?

    Regards.

  14. #14
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Sorted and unique validation list

    Thanks again for reply
    I need to keep the previous entries ...
    Kind Regards

  15. #15
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Sorted and unique validation list

    Quote Originally Posted by hemesh View Post
    As solution is already provided.
    In case of using formulas see the attachment
    The way your sheet is set up is perfect, sorted already both on items and type.

    Your item column is needed to be sorted in that case. Sorting can also be done using formula but may require use of helper columns

    find attached and check is this you are looking for
    Very wonderful. Thank you very much for this perfect solution ...it is very very good
    Best Regards

  16. #16
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Sorted and unique validation list

    @ Yasser! you are welcome and Thanks for the feedback and appreciation.

    I am glad, I could be a part of providing something.

+ 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] How to deal with blank cells to get unique distinct alphabetically sorted list?
    By keyantkarthi in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-28-2015, 09:13 AM
  2. Replies: 8
    Last Post: 11-05-2014, 10:27 PM
  3. [SOLVED] Extract Unique Values from Long list and Put in Sorted Order
    By snapfade in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 04-08-2013, 09:10 PM
  4. Extract a sorted and ranked unique list of items
    By bruno_ in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-11-2013, 09:52 PM
  5. [SOLVED] Unique distinct alphabetically sorted list
    By atlant15 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-06-2013, 10:03 AM
  6. Sorted List of all Unique strings
    By ElmerS in forum Excel General
    Replies: 2
    Last Post: 04-30-2009, 02:40 PM
  7. Need sorted validation list
    By [email protected] in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-23-2005, 02:05 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