+ Reply to Thread
Results 1 to 8 of 8

Need formula to Populate Results of Dropdown "Check" Boxes

  1. #1
    Registered User
    Join Date
    01-15-2014
    Location
    Louisiana
    MS-Off Ver
    Excel 2010
    Posts
    5

    Need formula to Populate Results of Dropdown "Check" Boxes

    Hello- First time posting here and I am very much a novice at excel formula writing but I am creating an automated form that consists of a series of dropdown boxes that can be "checked". If one primary indicator box is checked than it meets overall criteria as "Yes". I have a working formula for the yes or no to populate based on the primary indicator checks. However, I have a list of secondary indicators that must have two or more check boxes to qualify as a "Yes". I am trying to find the correct way to write this formula and integrate it with the existing primary check box formula.

    My results box has the existing formula that looks like this:

    =IF(OR(A23="X", A24="X", A25="X", A26="X", A27="X", A28="X"),"Yes","No")

    I am just looking to add another column of boxes (cells AB23 through AB31) but need the "Yes" or "No" to be contingent upon two or more of only that once specific column of check boxes being checked.

    I hope my problem is clear and I greatly appreciate any help I can get!!

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Need formula to Populate Results of Dropdown "Check" Boxes

    Your existing formula could be simplified to

    =IF(COUNTIF(A23:A28,"X"),"Yes","No")

    Adding your secondary indicator would mean

    =IF(AND(COUNTIF(A23:A28,"X"),COUNTIF(AB23:AB32,"X")>=2)"Yes","No")
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Need formula to Populate Results of Dropdown "Check" Boxes

    Maybe something like this...

    =IF(AND(COUNTIF(A23:A28,"X"),COUNTIF(AB23:AB31,"X")>1),"Yes","No")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    01-15-2014
    Location
    Louisiana
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Need formula to Populate Results of Dropdown "Check" Boxes

    Thanks both of you for help. I think I'm getting closer but for some reason whenever I type the formula to contain a range and use a colon, I get some kind of error message or it will work but select multiple cells/boxes at once. I have uploaded the page I am working on and I have highlighted the box with the formula I am working on. Right now it shows a listing of all the cells that it is dependent on instead of the range.

    I tried both the >1 and the >=2 formula additions for my secondary indicators and was given an error message about too many functions at once. Maybe a look at the form will help illustrate the issue a little better. Again, I really appreciate your time!!
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-15-2014
    Location
    Louisiana
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Need formula to Populate Results of Dropdown "Check" Boxes

    The error message appearing says "Value entered not valid" when I input formulas shown above in replies. I changed the data validation to custom to accept the Yes and No as written but still no success. Any idea what the problem could be here. Again, spreadsheet with highlighted area of concern is attached. Thanks!!

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Need formula to Populate Results of Dropdown "Check" Boxes

    Are you looking for a formula to be entered in a cell on the worksheet or a formula to be used to define a data validation rule?

    Sorry, I can't look at your file, it's to big. I have a 50kb size limit.

  7. #7
    Registered User
    Join Date
    01-15-2014
    Location
    Louisiana
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Need formula to Populate Results of Dropdown "Check" Boxes

    I am looking for a formula to be entered in the cell on the worksheet. I toyed with the Data Validation tab since it was reading something about it in the error message and thought it might have to do with the drop-down option.

    Here's the sheet again in a smaller document. The highlighted cell is the one where I am trying to write the correct formula. The cell locations have changed from what I typed earlier because it was cut from another page but the first two columns of blank boxes are the primary fields and the last column is the secondary field. At least one primary or two secondary fields need to contain an "X" for the highlighted cell to ="YesUpload question_reduced.xlsx"

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Need formula to Populate Results of Dropdown "Check" Boxes

    Try this...

    =IF(OR(COUNTIF(C8:C17,"X")+COUNTIF(J8:J17,"X"),COUNTIF(P8:P16,"X")>1),"Yes","No")

+ 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: 5
    Last Post: 01-23-2014, 11:02 AM
  2. Replies: 2
    Last Post: 02-21-2008, 04:24 PM
  3. Working with "Check" Boxes
    By cheiss8078 in forum Excel General
    Replies: 2
    Last Post: 08-23-2007, 02:07 PM
  4. List Box-Populate the 2 list boxes with the data in "Filter"
    By blurtoad in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-01-2007, 07:10 PM
  5. [SOLVED] create links to check boxes marked "good" fair"and "bad"
    By pjb in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-19-2006, 09:25 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