+ Reply to Thread
Results 1 to 8 of 8

Data validation Multiple IF statements (with ANDs) referenced to different sheets

  1. #1
    Forum Contributor
    Join Date
    02-23-2015
    Location
    united kingdom
    MS-Off Ver
    14.0.7143.5000 (32-bit)
    Posts
    124

    Data validation Multiple IF statements (with ANDs) referenced to different sheets

    Please Login or Register  to view this content.


    I am gtting this error message "You may not use reference operatos (such as unions, intersections, and ranges) or array constants for Data Validation criteria"

  2. #2
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Data validation Multiple IF statements (with ANDs) referenced to different sheets

    Would this one work?

    =IF(AND($D$12="Mk6e-i2",$F$12="Unmachined",$H$12="CA"),'Mk6e-i2 CA'!$F$9:$G$200,IF(AND($D$12="Mk6e-i2",$F$12="Machined",$H$12="CA"),'Mk6e-i2 CA Machined'!$F$9:$G$200,$A$1))

  3. #3
    Forum Contributor
    Join Date
    02-23-2015
    Location
    united kingdom
    MS-Off Ver
    14.0.7143.5000 (32-bit)
    Posts
    124

    Re: Data validation Multiple IF statements (with ANDs) referenced to different sheets

    Quote Originally Posted by berlan View Post
    Would this one work?

    =IF(AND($D$12="Mk6e-i2",$F$12="Unmachined",$H$12="CA"),'Mk6e-i2 CA'!$F$9:$G$200,IF(AND($D$12="Mk6e-i2",$F$12="Machined",$H$12="CA"),'Mk6e-i2 CA Machined'!$F$9:$G$200,$A$1))
    It wont allow this
    "The list source must be a deimited list, or a reference to single row or column."

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Data validation Multiple IF statements (with ANDs) referenced to different sheets

    Hi,

    Probably because you're not returning a single column list, but please upload the workbook so that we can see in context.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,509

    Re: Data validation Multiple IF statements (with ANDs) referenced to different sheets

    The first problem is that the references are for F9:G200 in both cases. It needs to be a single column reference, so maybe F9:F200.

    Second problem is that it probably won't allow you to refer to another sheet for the criteria. To get around that, you'd have to define Name Ranges to refer to the range on each of the sheets.

    Not sure if you'll be able to get it to work but, if you can, there may be a performance issue if you extend this over a long list of data entry cells.

    As Richard says, can we see the workbook?


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  6. #6
    Forum Contributor
    Join Date
    09-11-2009
    Location
    Paris
    MS-Off Ver
    Excel 2003
    Posts
    102

    Re: Data validation Multiple IF statements (with ANDs) referenced to different sheets

    Try this:
    =IF(AND($D$12="Mk6e-i2",$F$12="Unmachined",$H$12="CA"),'Mk6e-i2 CA'!$F$9:$G$200,IF(AND($D$12="Mk6e-i2",$F$12="Machined",$H$12="CA"),'Mk6e-i2 CA Machined'!$F$9:$G$200,$A$1))

  7. #7
    Forum Contributor
    Join Date
    02-23-2015
    Location
    united kingdom
    MS-Off Ver
    14.0.7143.5000 (32-bit)
    Posts
    124

    Re: Data validation Multiple IF statements (with ANDs) referenced to different sheets

    Quote Originally Posted by Richard Buttrey View Post
    Hi,

    Probably because you're not returning a single column list, but please upload the workbook so that we can see in context.
    Yes, You are all right,

    Thanks you very much!

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Data validation Multiple IF statements (with ANDs) referenced to different sheets

    Glad to have helped and thanks for the rep.

+ 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] add or change data validation for multiple sheets in one go
    By rohit43 in forum Excel General
    Replies: 9
    Last Post: 02-24-2020, 11:34 PM
  2. Lookup Across Multiple Sheets Using Data Validation
    By tig08ger in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-27-2014, 11:42 AM
  3. Data validation on multiple sheets.
    By emilyloz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-01-2013, 09:58 AM
  4. [SOLVED] Data Validation - replace choices for multiple sheets of source data
    By mshaw1970 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-20-2013, 07:34 AM
  5. [SOLVED] Data Validation Lists Across Multiple Sheets
    By mosswood17 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-29-2013, 08:49 PM
  6. Replies: 0
    Last Post: 04-19-2013, 05:50 PM
  7. Replies: 8
    Last Post: 06-14-2011, 06:09 PM
  8. Extend Data Validation to Multiple Sheets
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-06-2010, 07:13 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