Consulting

Results 1 to 6 of 6

Thread: How many characters can countif handle?

  1. #1

    How many characters can countif handle?

    I think I've reached the character limit that excel can handle. Both in the size of the string I'm looking for and the size of the strings I'm looking within.

    What are the limits?

    Any workarounds?

  2. #2
    VBAX Tutor
    Joined
    Dec 2008
    Posts
    244
    Location
    xld just help me with this last week.

    you can use find but find is case sensitive.

    you can also use search, search is case insensitive.

  3. #3
    Maybe I'm approaching the problem incorrectly.

    I have a worksheet with lots of shopping basket data.

    Rows are unique transactions and I have 4 columns that identify which (up to 4) products they purchased. Products are identified by unique product codes.

    I wanted to find out how many times each combination of product occurred. I thought I would concatenate the 4 product codes and then run a countif against the concatenated codes. Unfortunately, I appear to have exceeded countif's limits.

    Any other possible approaches?

  4. #4
    Moderator VBAX Master georgiboy's Avatar
    Joined
    Mar 2008
    Location
    Kent, England
    Posts
    1,199
    Location
    How long is your concatenated string?

    I believe the limit is 255. Someone correct me if im wrong.
    Click here for a guide on how to add code tags
    Click here for a guide on how to mark a thread as solved
    Click here for a guide on how to upload a file with your post

    Excel 365, Version 2403, Build 17425.20146

  5. #5
    At most 60 numbers

  6. #6
    Moderator VBAX Master georgiboy's Avatar
    Joined
    Mar 2008
    Location
    Kent, England
    Posts
    1,199
    Location
    Works for me on strings of 200+ see below...
    Click here for a guide on how to add code tags
    Click here for a guide on how to mark a thread as solved
    Click here for a guide on how to upload a file with your post

    Excel 365, Version 2403, Build 17425.20146

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •