+ Reply to Thread
Results 1 to 4 of 4

Countifs function

  1. #1
    Registered User
    Join Date
    05-16-2019
    Location
    Usa
    MS-Off Ver
    I don't know
    Posts
    4

    Countifs function

    I need to be able to count cells that end in specific digits. I have a lot of data that looks like, P1-1507,P3-602 etc. That are hotel room numbers. What I need is to count all the rooms that end in a 1,4, or 7 and to count the rooms that end in 2, 3,5,6,8,9. Maybe I'm not using countifs right, or that's not what I need, but it doesn't count the cells correctly.

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Countifs function

    Hello and welcome to the forum.

    Try something like this:
    =SUM(COUNTIFS(A2:A100,{"*1","*4","*7"}))

  3. #3
    Registered User
    Join Date
    05-16-2019
    Location
    Usa
    MS-Off Ver
    I don't know
    Posts
    4
    Quote Originally Posted by 63falcondude View Post
    Hello and welcome to the forum.

    Try something like this:
    =SUM(COUNTIFS(A2:A100,{"*1","*4","*7"}))
    You are a life saver! Thanks man

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Countifs function

    You're welcome. Happy to help.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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. adding a Frequency function to a CountIFS function
    By Plucky_ in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-12-2017, 08:13 PM
  2. COUNTIF/COUNTIFS function + nested user-defined function
    By shamjamali in forum Excel General
    Replies: 1
    Last Post: 05-12-2015, 09:12 PM
  3. Use COUNTIFS function on results of DATEVALUE function?
    By Si902 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-16-2015, 08:13 PM
  4. [SOLVED] Help with Countifs function
    By HDeuce in forum Excel General
    Replies: 3
    Last Post: 11-26-2014, 09:37 AM
  5. Help with a countifs function
    By GREYWOLF77 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-24-2014, 11:06 AM
  6. Replies: 0
    Last Post: 12-16-2011, 09:01 AM
  7. Must use COUNTIFS function......
    By Paarlite2 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-13-2008, 12:18 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