+ Reply to Thread
Results 1 to 8 of 8

How to count the total visit times?

  1. #1
    Registered User
    Join Date
    03-07-2021
    Location
    Hong Kong
    MS-Off Ver
    2019
    Posts
    5

    How to count the total visit times?

    I need a formula to count the total visit times in January 2021 when the name is J.

    Name 1st visit 2nd visit
    J 30/11/2020 15/1/2021
    S 15/1/2021
    J 29/11/2020 30/11/2020
    S 25/1/2021 3/2/2021



    Thank you very much!!!!!!!

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: How to count the total visit times?

    On the assumption that the expected answer is 4 (you didn't specify expected answers... or attach a sample sheet):

    =SUMPRODUCT(($A$3:$A$6="J")*($B$3:$C$6>0))
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    03-07-2021
    Location
    Hong Kong
    MS-Off Ver
    2019
    Posts
    5

    Re: How to count the total visit times?

    Thank you for your help.

    If I only want to count the visit times in January 2021, how could the formula be?

  4. #4
    Registered User
    Join Date
    03-07-2021
    Location
    Hong Kong
    MS-Off Ver
    2019
    Posts
    5

    Re: How to count the total visit times?

    The answer should be 1.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: How to count the total visit times?

    Then:

    =SUMPRODUCT(($A$3:$A$6="J")*(MONTH($B$3:$C$6)=1))

    where 1 defines January, 2 would define Feb, etc, etc.

  6. #6
    Registered User
    Join Date
    03-07-2021
    Location
    Hong Kong
    MS-Off Ver
    2019
    Posts
    5

    Re: How to count the total visit times?

    Thank you very much!!!

    One more question, how about the range of date is very big, i.e., from 2009 to 2025? How can I solve the problem?

  7. #7
    Registered User
    Join Date
    03-07-2021
    Location
    Hong Kong
    MS-Off Ver
    2019
    Posts
    5

    Re: How to count the total visit times?

    I have solved the problem. Thank you for your help again)))

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: How to count the total visit times?

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, 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. Count ids within a timescale - duplicate ids with multiple visit dates
    By esther26 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-12-2021, 11:27 AM
  2. How can I count per year and per week the total number of times a code occurs
    By Stefan Deckers in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-27-2020, 12:37 PM
  3. [SOLVED] count the no. of visit
    By amarjeet.it in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 04-24-2019, 09:30 AM
  4. [SOLVED] need a total count of number of times a value is entered in a cell
    By 2Sassy in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-24-2015, 04:31 PM
  5. [SOLVED] Count the number of visits by visit types.
    By Marvin85 in forum Excel General
    Replies: 8
    Last Post: 10-02-2014, 05:19 PM
  6. [SOLVED] Count the number of times a value appears across multiple sheets displaying a total
    By Philbe in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-02-2014, 11:31 PM
  7. [SOLVED] Count the total number of times several numbers appear on each row
    By dwontheweb in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-28-2012, 12:11 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