+ Reply to Thread
Results 1 to 4 of 4

Work-around for COUNTIFs 255-character limit?

  1. #1
    Registered User
    Join Date
    03-22-2011
    Location
    Missouri, USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Work-around for COUNTIFs 255-character limit?

    I am trying to find a work around to the 255-character limit for the COUNTIF function.

    Background: I work at a school and I am developing a spreadsheet that the teachers can use as a substitute for their paper lesson plan books.

    For each class period, the teacher enters relevant information on one worksheet (worksheet.Q4 in the sample file). This information includes the state Standards that are taught for each lesson. The cells where teachers identify the standards are highlighted yellow in the sample file. To identify the Standards, the teacher clicks the drop-down list once to choose the area of emphasis (“Strand”), then clicks again to choose from the list of relevant standards.

    The other worksheet (worksheet.Standards) provides the Strands and Standards used in the drop-downs/data validation lists. I want to show which Standards have been taught and which remain. I used the COUNTIF function to find the number of times each Standard appears on the Q4 worksheet by grade level.

    This works perfectly for Standards that are less than 255 characters. My problem is that there are a number of Standards that are longer.

    I have tried various combinations of SUBSTITUTE, RIGHT, SEARCH, etc., within the COUNTIF function without success. The discriminating text between similar standards will be at the end of the text string, thus the RIGHT function.

    I need a cross-application/cross-platform solution, because I have teachers who use Excel 2003 and Excel for Macs 2004. I would prefer to stay away from using a macro because macros are usually blocked by our workstation permissions. I don’t want to use a pivot table because I want to limit user intervention. I also do not want to edit the text of the Standards because those are verbatim from the state. I am sure that there is a formula solution that I am just not seeing.

    Thanks for your ideas and help!
    Attached Files Attached Files
    Last edited by talley; 03-24-2011 at 10:38 AM. Reason: Solved

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Work-around for COUNTIFs 255-character limit?

    Perhaps try:

    =SUMPRODUCT(--('Q4'!B$2:B$269=$I2))

    copied down
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    03-22-2011
    Location
    Missouri, USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Work-around for COUNTIFs 255-character limit?

    Many thanks, NBVC! It took you less time to identify and post the solution than it took for me to compose my original post. I obviously will have to experiment with SUMPRODUCT to see what else it is capable of doing.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Work-around for COUNTIFs 255-character limit?

    Here is a good start: Sumproduct

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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