+ Reply to Thread
Results 1 to 4 of 4

Using COUNTIF to find similar keywords then count numbers

  1. #1
    Registered User
    Join Date
    02-17-2017
    Location
    New York
    MS-Off Ver
    Excel 2013
    Posts
    30

    Using COUNTIF to find similar keywords then count numbers

    Good morning!

    I have an issue with COUNTIF. Here’s the code:

    =Countifs(c3:c132,”*4O*”, D3:D132,””<>”&””)

    What im trying to accomplish is to count each number IF the name next to the code contains the characters “4O”

    Also im trying to create a different code that counts the amount of days that row C column C was updated. The only issue is the dynamic portion where the code changes each time the next block has a newer date. This code is driven By date format and changes each time. For example:

    =COUNTIFS(d3:d3,”Date()”)

    Or

    Amount of days passed during update: 21
    11/2/2018. |. 11/31/2018
    CONT.
    12/3/2018 | 12/23/2018
    Amount of days on that persons desk: 20

    Simply put, to track the amount of days something was sitting on your desk. And the next persons desk and so forth.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Using COUNTIF to find similar keywords then count numbers

    Quote Originally Posted by randy2012 View Post
    I have an issue with COUNTIF. Here’s the code:

    =Countifs(c3:c132,”*4O*”, D3:D132,””<>”&””)

    What im trying to accomplish is to count each number IF the name next to the code contains the characters “4O”
    I'm not sure what you are trying to do with column D or that last expression, which is illegal because the quotes don't match. This formula does what you stated here:

    =COUNTIF(C3:C132,"*4O*")

    Also im trying to create a different code that counts the amount of days that row C column C was updated. The only issue is the dynamic portion where the code changes each time the next block has a newer date. This code is driven By date format and changes each time. For example:

    =COUNTIFS(d3:d3,”Date()”)
    You have not given nearly enough information for us to understand what you are doing. You refer to dates but don't tell us where they are. What does "next block" mean? What is "the code"? You showed a formula that refers only to a single cell (D3). And what are you trying to do with "Date()"? It is just a string. Do you really want the current date there?

    I recommend you attach your file. If data is private then replace with fake data.
    Jeff
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    02-17-2017
    Location
    New York
    MS-Off Ver
    Excel 2013
    Posts
    30

    Re: Using COUNTIF to find similar keywords then count numbers

    Good point.

    See attached example.
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Using COUNTIF to find similar keywords then count numbers

    Guessing that you want the first formula placed in B28 on the 'Counting Characters...' sheet, try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Also guessing that the second formula should populate column F on the 'Counting Days...' sheet, try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Note: some of the entries in G6:L10 are text as opposed to dates so those will have to be changed to dates before the second formula will work.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Find similar numbers within multiple ranges?
    By mcbride in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-10-2015, 11:55 PM
  2. COUNTIF formula: count all positive numbers until..
    By camilla.searle in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-16-2012, 09:44 AM
  3. Finding similar but not identical values using COUNT and COUNTIF
    By krixtoffer in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-25-2011, 05:44 AM
  4. How to count numbers with function COUNTIF?
    By toplisek in forum Excel General
    Replies: 7
    Last Post: 02-02-2008, 12:18 PM
  5. find similar numbers
    By dune in forum Excel General
    Replies: 1
    Last Post: 03-03-2006, 08:15 PM
  6. Find similar numbers from two columns of numbers
    By Dennis Andrews in forum Excel General
    Replies: 1
    Last Post: 11-30-2005, 04:00 AM
  7. How do i count numbers and letters to find a total count of all
    By Linda in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-10-2005, 12:55 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