+ Reply to Thread
Results 1 to 6 of 6

Data Validation formulas works but not for all cells

  1. #1
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Data Validation formulas works but not for all cells

    Hi All,

    I have the following issue. I have 3 column with data validation from 3 different sheets. My problem is that sometimes this works and sometimes they don't. I also have some formulas between them. Please see attached.

    Thank you in advance,
    Paul
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Data Validation formulas works but not for all cells

    See if either of these methods work for you.
    http://www.utteraccess.com/wiki/Casc..._%28Non-VBA%29
    http://www.utteraccess.com/wiki/Casc...ists_%28VBA%29
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,228

    Re: Data Validation formulas works but not for all cells

    Try

    =OFFSET(City!$B$1,MATCH($B1,City!$J$1:$J$100,0)-1,0,COUNTIF(City!$J$1:$J$100,$B1))

  4. #4
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Data Validation formulas works but not for all cells

    Hi both,

    First of all, thank you.

    @dflak, I cannot change my file to pivot tables and VBA is above my current Excel skills

    @John, your formula work, but so do mine, in my main file, column C. The one that is problematic is the one found in column E

    To be more precise, I have 28 selections in column A, a little bit more in column C, and each one found in column C(the one for City), has one or multiple choices in Column E that stands for region.
    Out of this 28 found in column A, 3 of them have building, 4 values, but my formula does not work for those.

    In the file attached in my previous post, for AUS, CAN and CHIN the formula works in column E, but not for ROM, MAR, SOU and I cannot comprehend why,

    I also have the error **The Source curently evaluates to an error**.

    Do you have any ideas why?
    Thanks

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,228

    Re: Data Validation formulas works but not for all cells

    The problem is trailing blanks on data.
    Attached Files Attached Files

  6. #6
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Data Validation formulas works but not for all cells

    It was so obvious, but not for me. Thank you John, you've saved 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. [SOLVED] Why this statement works in a cell but it doesn't as data validation?
    By gerotutu in forum Excel General
    Replies: 6
    Last Post: 04-17-2017, 11:49 PM
  2. Using Data Validation to protect formats/formulas in cells
    By cheddarthief in forum Excel General
    Replies: 1
    Last Post: 06-22-2016, 02:51 AM
  3. [SOLVED] Data Validation no longer works after save
    By Maltese Falcon in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-13-2014, 01:53 AM
  4. Data Validation on SelectionChange - Works but slow!
    By JFangExcel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-08-2014, 12:12 PM
  5. [SOLVED] Data Validation reset only works one row at a time
    By Stphne38 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-12-2013, 09:35 AM
  6. Problem with entering formulas in data validation cells
    By ianpwilliams in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-12-2013, 05:10 PM
  7. Replies: 3
    Last Post: 12-30-2008, 12:36 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