+ Reply to Thread
Results 1 to 8 of 8

Problem with the Source in the Dropdown list Validation

  1. #1
    Registered User
    Join Date
    10-06-2012
    Location
    Singapore
    MS-Off Ver
    Excel 365
    Posts
    50

    Problem with the Source in the Dropdown list Validation

    Hi experts:

    I've a list of data. If I want to delete a record, I select it from a dropdown list and then using macro to delete it.
    However, I discovered that if I delete the first record of the list, the dropdown list will no longer function when I want to delete another record.
    This will not happen if I delete other records from the list other than the first one!

    I also noticed that there is a change to the source of the dropdown validation:
    from =Offset($B$6,0,0,CountA($B:$B)-1,1) to
    =Offset(#REF!,0,0,CountA($B:$B)-1,1).

    I could not figure out what causes this change whenever the first record is deleted.

    I hope some Excel experts can help me solve this problem. I have attached a sample Excel file having this problem.

    Thank you.
    Chan K.S.
    Attached Files Attached Files

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Problem with the Source in the Dropdown list Validation

    Try changing the validation formula to:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    BSB

  3. #3
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Problem with the Source in the Dropdown list Validation

    You can do a couple of things!
    1. Have row 6 blank - you could even hide the row. You will get a blank at the top of your delete list, but that is probably not an issue since you are using a dynamic formula to create your list.
    2. Change your OFFSET formula to start at B5. This way you would have Name at the top of your list.
    3. Same as 1 above, but have something like "Delete choice below>>" in the name field. HIDE the row.

    See what you think.

    I hope this helps, please let me know!

    Regards,

    David

    If this has been helpful
    - Please click on the *Add Reputation button at the bottom left.

    Please mark your thread as SOLVED:
    - Click Thread Tools above your first post, select "Mark your thread as Solved".


  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Problem with the Source in the Dropdown list Validation

    Quote Originally Posted by David A Coop View Post
    2. Change your OFFSET formula to start at B5. This way you would have Name at the top of your list.
    Change the second parameter to 1 (rather than 0), as in post #2, and you won't have "Name" in the list

    BSB

  5. #5
    Registered User
    Join Date
    10-06-2012
    Location
    Singapore
    MS-Off Ver
    Excel 365
    Posts
    50

    Re: Problem with the Source in the Dropdown list Validation

    Thank you, both BSB and David.
    I changed the it to =Offset($B$5,1,0,CountA($B:$B)-1,1) and now it's working fine.

    Chan K.S.

  6. #6
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Problem with the Source in the Dropdown list Validation

    Happy to help. Thanks for the rep

    BSB

  7. #7
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Problem with the Source in the Dropdown list Validation

    Just saw BSB's suggestion - MUCH BETTER idea!

  8. #8
    Registered User
    Join Date
    07-24-2018
    Location
    USA
    MS-Off Ver
    Microsoft Office 2016
    Posts
    5

    Re: Problem with the Source in the Dropdown list Validation

    It is described beautifully. It really works for me.

+ 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. Replies: 5
    Last Post: 07-29-2015, 08:36 AM
  2. Data Validation List Source Problem
    By gillerz960 in forum Excel General
    Replies: 3
    Last Post: 03-17-2014, 09:53 AM
  3. Replies: 0
    Last Post: 01-09-2013, 11:44 AM
  4. Replies: 0
    Last Post: 08-22-2012, 03:52 PM
  5. Replies: 3
    Last Post: 07-20-2012, 09:52 AM
  6. Replies: 2
    Last Post: 03-08-2012, 05:52 PM
  7. Replies: 1
    Last Post: 08-09-2006, 05:29 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