+ Reply to Thread
Results 1 to 7 of 7

Writing a rule for a range of cells

  1. #1
    Registered User
    Join Date
    10-23-2015
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    3

    Writing a rule for a range of cells

    I am trying to write a rule for a range of 5 cells B9:B13. I want rule read something like this......
    IF there are no "X's" a score of 1 is shown in B15.
    IF there is 1 "X", or 2 "X's", a score of 2 will show in B15.
    IF there is 3, 4, or 5 "X's" a score of 3 will show in B15.


    Does anyone know how to write this formula?

    Thanks,
    Jason
    Last edited by jlebar; 10-23-2015 at 05:36 PM.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Writing a rule for a range of cells

    Try

    =MATCH(COUNTIF(B9:B13,"X"),{0,1,3})

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Writing a rule for a range of cells

    =if(countif(b9:b13,"x")<1, 1, if(countif(b9:b13,"x")< 3, 2, 3))
    Last edited by ChemistB; 10-23-2015 at 04:02 PM.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    10-23-2015
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Writing a rule for a range of cells

    Skill Assessment.xlsx

    Here is 6 different examples of what the sheet would look like, now I just need the formula. The rubric is up top and each assessment follows those rules with the outcomes . The two formulas you gave me didn't work, but I think it's close. I've tried to play with them and still cant get them to work.

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Writing a rule for a range of cells

    Not sure what you did wrong but I pasted Jonmo1 and my formulas directly into your worksheet (made a copy for each of us) and they worked fine. Can you point me to which cell is not working?
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    10-23-2015
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Writing a rule for a range of cells

    Yeah, not sure what I did either, because now it is working. Thank you both very much. This is going to be a huge time saver for me.

    Jason

  7. #7
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Writing a rule for a range of cells

    You're welcome

+ 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: 12-19-2014, 06:50 PM
  2. Writing an Integral Midpoint,Trapezoidal,Simpson Rule
    By roumieh2000 in forum Excel General
    Replies: 3
    Last Post: 07-09-2013, 11:03 AM
  3. [SOLVED] Counting a range of stats if another range rule is met
    By robmc in forum Excel General
    Replies: 2
    Last Post: 07-23-2012, 09:03 PM
  4. Can I use more than 1 range of cells when writing a VBA Macro
    By dandavis1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-18-2008, 06:02 AM
  5. Writing cells using Range() slows down with successive writes
    By ChucksFriend in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-04-2008, 09:25 AM
  6. Writing '0' to a particular range of cells
    By modest_16081982 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-09-2007, 03:28 AM
  7. Writing to a range of cells
    By BlockNinja in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-10-2006, 04:20 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