+ Reply to Thread
Results 1 to 8 of 8

Data Validation Error

  1. #1
    Registered User
    Join Date
    02-20-2019
    Location
    Sonora
    MS-Off Ver
    2013
    Posts
    3

    Data Validation Error

    I am attempting to do a data validation given three potential outcomes for a cell, either "2", "3", or "4". Depending on the value of the first cell, the value ranges available to me in the second cell change. I am attempting to use the formula:

    =IF($D$6=2,$C$20:$C$33,IF($D$6=3,$C$35:$C$52,IF($D$6=4,$C$54:$C$74)))

    as a List data validation. Sometimes the formula works, but other times I receive a message "The list source must be a delimited list, or a reference to a single row or column." I don't see why it is giving me that error.

    Does anyone have any suggestions?

    Thank you

  2. #2
    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
    81,238

    Re: Data Validation Error

    Welcome to the forum!

    Under what circumstances do you get the error message?

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    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.

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,097

    Re: Data Validation Error

    At a guess, when you get the error D6 doesn't equal 2,3 or 4.

  4. #4
    Registered User
    Join Date
    02-20-2019
    Location
    Sonora
    MS-Off Ver
    2013
    Posts
    3

    Re: Data Validation Error

    I believe I attached my file properly. You can see in cells E4 and E6 the formula works properly. In cell E5 however, when I attempt to enter the same formula and switch it from custom to a list data validation, it gives me the error message.
    Attached Files Attached Files

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,097

    Re: Data Validation Error

    As per post#3 it's because D6 is empty, try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    02-20-2019
    Location
    Sonora
    MS-Off Ver
    2013
    Posts
    3

    Re: Data Validation Error

    Awesome, thanks guys. I assumed that the formula should work even when the prior cells were blank still, I didn't realize it would want to validate D6 has 2,3,4 before allowing the formula to work. I can use my formula and then tell it to ignore blanks to ensure that E6 can't be filled until D6 is. Thank you both very much.

  7. #7
    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
    81,238

    Re: Data Validation Error

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

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,097

    Re: Data Validation Error

    Glad we could help & thanks for the feedback

+ 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. Data Validation Error
    By Bradleypike in forum Excel General
    Replies: 5
    Last Post: 09-28-2017, 12:45 AM
  2. Error 400 and Data Validation
    By dreicer_Jarr in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-25-2016, 04:50 PM
  3. Error on VBA for Data Validation
    By phpolicylady in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-15-2015, 08:47 PM
  4. Getting around a Data Validation Error
    By GordonPSmith in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-03-2011, 09:25 PM
  5. Data Validation Error
    By zayn in forum Excel General
    Replies: 4
    Last Post: 01-18-2010, 09:33 AM
  6. Data Validation error
    By dsrt16 in forum Excel General
    Replies: 2
    Last Post: 12-19-2009, 04:09 PM
  7. [SOLVED] Data Validation error ??
    By Anthony in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-10-2005, 12:06 PM

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