+ Reply to Thread
Results 1 to 6 of 6

Data validation drop list not highlighting previously entered time value

  1. #1
    Registered User
    Join Date
    08-09-2019
    Location
    Melbourne, Australia
    MS-Off Ver
    Office 365
    Posts
    3

    Data validation drop list not highlighting previously entered time value

    Hi all,

    Please refer to the attached file.

    I have a cell with a data validation rule set based on a list of predefined time values. When a value is already entered into that cell and then I re-open the list, I expect that the droplist will highlight and be focused on that previously entered value. Instead, it is always focused back on the first entry in the list. This is very annoying when I want to adjust the selection up or down by one interval.

    The normal behaviour, as shown in the droplist based on string values, is that the droplist will highlight and focus on the previous entry.

    I have played around with potential issues such as time values not matching because of rounding of the underlying number. I have tried forcing the time values in the list to be rounded to 6 places to ensure a match, but this hasn't helped.

    I am using Windows Excel 365 for enterprise. Build version 2307.

    Any advice much appreciated.
    Attached Files Attached Files

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Data validation drop list not highlighting previously entered time value

    I do not have a solution but I can confirm this problem. I have experimented and the only case where this happens is when the source data is formatted as date or time. If you format the same data as General and they are displayed as decimal numbers, it works as expected.

    As a workaround I suggest a Forms combobox, see attached.
    Attached Files Attached Files
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    08-09-2019
    Location
    Melbourne, Australia
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Data validation drop list not highlighting previously entered time value

    Thanks Jeff. Can't use the forms idea as the cell in question appears on many rows in a worksheet.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Data validation drop list not highlighting previously entered time value

    It's because it's not text, I think.

    There is a workaround, but I don't know if it will work for you.

    In an empty cell (could be on a hidden sheet) type:

    =TEXT(Time_Intervals_Table[Time Intervals],"hh:mm AM/PM")

    I have done this in N2, then used this for the DV list:

    =$N$2#

    Any subsequent reference to the cell that requires its value can be done like this:

    =--D15

    or this:

    =VALUE(D15)
    Attached Files Attached Files
    Last edited by AliGW; 08-22-2023 at 03:10 AM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    08-09-2019
    Location
    Melbourne, Australia
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Data validation drop list not highlighting previously entered time value

    That's it Ali! It took a bit of reworking but that has sorted the problem. Many thanks!

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Data validation drop list not highlighting previously entered time value

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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: 4
    Last Post: 07-20-2023, 07:01 PM
  2. IF formula impacted by previously entered data
    By Jess0121 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-29-2022, 10:59 PM
  3. Replies: 6
    Last Post: 04-03-2018, 02:18 PM
  4. [SOLVED] Data validation only returns data from the drop down list but not when entered!
    By carlandtina02 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-23-2013, 08:04 AM
  5. Highlighting inserted data not in a validation list
    By Jordan.bartow in forum Excel General
    Replies: 5
    Last Post: 06-13-2012, 02:08 PM
  6. Data Validation hide previously used dropdown list
    By Fred Tan in forum Excel General
    Replies: 0
    Last Post: 10-01-2010, 07:44 AM
  7. Replies: 2
    Last Post: 04-25-2009, 04:19 AM

Tags for this Thread

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