+ Reply to Thread
Results 1 to 4 of 4

match two words between two date range and count

  1. #1
    Registered User
    Join Date
    01-29-2019
    Location
    London
    MS-Off Ver
    2013
    Posts
    10

    match two words between two date range and count

    Hi,

    This is my demo data:
    28/02/2019 12:07:51 1726443 53 136763 User1 Operation1
    28/02/2019 12:07:52 1726448 51 136764 User2 Operation2
    28/02/2019 12:08:30 1726444 53 136765 User1 Operation1

    What I'm trying to do is to

    lookup for User1 and Operation 1 between 28/02/2019 00:00:00 and 28/02/2019 18:00:00 and count how many times operation1 exist for the user 1.

    I have a similar formula =COUNTIFS('RAW Data'!$I:$I,Stats!G238,'RAW Data'!$AB:$AB,">="&Stats!$Z$3,'RAW Data'!$AB:$AB,"<="&Stats!$AA$3,'RAW Data'!$A:$A,Stats!$I$237)

    which works fine but in this case I have time on my date column.

    Is anyone here who can help with that?

    I'm looking to see between a date and time range how many times an operation was completed by a user.

    Thank you for help.
    Attached Files Attached Files

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: match two words between two date range and count

    here are your problems...
    1) you refer to col A:A when you point toward cell E2 (Operation 1), you need to repoint to F:F instead.
    2) your "Operation 1" in stats is not the same as "Operation1" in Data, you need to add a space to the data sheet Operation1 or remove it from the data Operation 1.
    this should work if you make those changes...
    =COUNTIFS(Data!$E:$E,$D3,Data!$A:$A,">="&$E$1,Data!$A:$A,"<="&$F$1,Data!$F:$F,E$2)
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: match two words between two date range and count

    Please try at E3 drag across and down

    =COUNTIFS(Data!$E:$E,$D3,Data!$A:$A,">="&$E$1,Data!$A:$A,"<"&$F$1,Data!$F:$F,E$2)

    and remove space between Operation and number => Operation1
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    01-29-2019
    Location
    London
    MS-Off Ver
    2013
    Posts
    10

    Re: match two words between two date range and count

    Thank you,

    Works 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 to count rows with a date which match a range of dates
    By pharmerjoe7 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-07-2013, 06:19 AM
  2. Help! Count how many words in a sentence match a dictionary of words
    By sonyaelis in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-06-2013, 05:31 AM
  3. Replies: 8
    Last Post: 05-14-2012, 02:44 PM
  4. match and count words
    By Max in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 09-06-2005, 12:05 PM
  5. match and count words
    By David in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  6. [SOLVED] match and count words
    By David in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  7. [SOLVED] match and count words
    By David in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  8. [SOLVED] match and count words
    By David in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 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