+ Reply to Thread
Results 1 to 6 of 6

Table cells data validation with formula and list

  1. #1
    Forum Contributor
    Join Date
    04-14-2013
    Location
    Ky
    MS-Off Ver
    Excel 2013
    Posts
    344

    Table cells data validation with formula and list

    I have a table with 10 questions that require a yes/no answer, and I'm fine abbreviating with a "y" or an "n". My initial version has data validation with a list which has a lookup with a 'y' or an 'n' (blank cells not allowed as all 10 must be answered). But I expect many to be answered by the end users with ALL 10 questions with a 'y' - so to ease data entry, I created another column ( [All Correct?] ) and placed it prior to these questions which ask if all answers are yes, and put a y/n data validation list (y/n) in that cell as well. In my '10 questions' cells, I placed the following formula:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Of course, now the problem is the questions cells return an error with the formula in them. Even when [AllCorrect?] is 'y', the question cells return on error because they display 'y' but they still contain the formula. So I need some sort of formula (in the cell itself and not through data validation?) to allow only a 'y' or an 'n' OR the formula to make them all 'y' when the [AllCorrect?] cell is y. VBA is not an option for this workbook.
    Last edited by HeyInKy; 03-02-2017 at 04:10 PM.

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Table cells data validation with formula and list

    Change your table to structured table and try this one: =IF([@[All correct]]="yes","yes","")

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

    Re: Table cells data validation with formula and list

    A cell can contain either a value or a formula, but not both. Any attempt to make that happen will probably wind up with a circular reference. VB is the only solution.
    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.

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Table cells data validation with formula and list


    Maybe I should type some details
    A column - Questions
    B column - Answers
    C column - All Correct? (formula) C2: =IF([@[Answers]]="yes","yes","")

    Questions, Answers, All Correct? are headers

  5. #5
    Forum Contributor
    Join Date
    04-14-2013
    Location
    Ky
    MS-Off Ver
    Excel 2013
    Posts
    344

    Re: Table cells data validation with formula and list

    @sandy666 - I think I get it, but I don't think that's solving my problem. Thank...

  6. #6
    Forum Contributor
    Join Date
    04-14-2013
    Location
    Ky
    MS-Off Ver
    Excel 2013
    Posts
    344

    Re: Table cells data validation with formula and list

    Quote Originally Posted by dflak View Post
    A cell can contain either a value or a formula, but not both. Any attempt to make that happen will probably wind up with a circular reference. VB is the only solution.
    That's what I was afraid of... thanks!

+ 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-03-2014, 02:37 AM
  2. Auto-Generate List from reference cells based on data validation list selection
    By BoundCustomDesign in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-13-2014, 11:06 AM
  3. Adding Date Data Validation to cells with List Data Validation
    By biggtyme in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-03-2013, 09:47 AM
  4. Replies: 7
    Last Post: 07-04-2013, 06:27 PM
  5. Replies: 0
    Last Post: 01-09-2013, 11:44 AM
  6. Replies: 3
    Last Post: 07-20-2012, 09:52 AM
  7. Filter a data validation list from a table
    By JackyJ in forum Excel General
    Replies: 1
    Last Post: 08-19-2010, 06:47 AM

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