+ Reply to Thread
Results 1 to 3 of 3

Countifs - Start of Number & Wildcard to find remainder

  1. #1
    Registered User
    Join Date
    02-23-2015
    Location
    UK
    MS-Off Ver
    2010
    Posts
    39

    Countifs - Start of Number & Wildcard to find remainder

    Hi there

    I have a several background data sheets consisting of various bits of key data (always in the same format).

    I also have a summary sheet where I will be grouping key data from the background sheet via indirect (and specifying the sheet name on the summary).

    The background data consists of account numbers that starts with a set number, which is relative to the type of account, followed by a piece of core data in the cells next to it..

    Account Dummy data example:
    30000 > 39999 would be Account type 1
    40000 > 49999 would be account type 2
    80000 > 89999 would be account type 3

    However, some accounts could have multiple accounts and have a letter on the end to seperate them, i.e.

    31111A and 31111B (would belong to the same person).


    For Account Type 1, I have managed to achieve the correct result of a count if the account type falls between (for example) 30000 and 39999, but I run into problems if the account has a letter at the end.

    I'm absolutely stumped and can't seem to get wildcards to work with this method?

    Thanks in advance!

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Countifs - Start of Number & Wildcard to find remainder

    As an example

    =SUM(COUNTIFS(A:A,{">=30000",">=30000*"},A:A,{"<=39999","<=39999*"}))

    If the criteria are in cells then you would need to nest the CHOOSE function as well.

  3. #3
    Registered User
    Join Date
    02-23-2015
    Location
    UK
    MS-Off Ver
    2010
    Posts
    39

    Re: Countifs - Start of Number & Wildcard to find remainder

    Thank you so much! Worked perfectly.

+ 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. Countifs with wildcard
    By JulieKT in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-17-2015, 01:31 AM
  2. Find Wildcard, return that Wildcard value?
    By help_me_im_lost in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-08-2014, 01:20 PM
  3. [SOLVED] Wildcard not working in my COUNTIFS
    By dtrimble in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-11-2013, 09:12 PM
  4. [SOLVED] Find: Using wildcard, but don't replace with wildcard
    By JimDandy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-06-2013, 05:39 PM
  5. [SOLVED] Countifs with dynamic criteria and wildcard characters
    By aamehta24 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-16-2013, 08:39 PM
  6. [SOLVED] Find number between start and End.
    By visha_1984 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-13-2013, 05:52 AM
  7. Replies: 2
    Last Post: 11-15-2006, 11:04 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