+ Reply to Thread
Results 1 to 3 of 3

count sessions then restart 365 days after - help

  1. #1
    Registered User
    Join Date
    06-29-2011
    Location
    Engalnd
    MS-Off Ver
    Excel 2007
    Posts
    1

    count sessions then restart 365 days after - help

    Hi Guys,

    I have a spreadsheet like the example attached that counts the number of sessions that a person has (personal project I'm working on). I want to be able to count the number of sessions a person has had then input a 1,2,3 etc then after 365 days has passed from the first session restart the count - even saying it makes me lose it. I don't know where to begin and if someone could help I would be extremely grateful.


    Thanks

    I'm a singing coach by the way and building this for myself - not a masseuse
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: count sessions then restart 365 days after - help

    Assuming you have grouped the names together, and the dates are chronological for each group, then try:

    =IF(A2<>A1,1,IF(LOOKUP(2,1/((A1:A$2=A2)*(C1:C$2=1)),B1:B$2)<=B2-365,1,C1+1))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: count sessions then restart 365 days after - help

    Another couple of possibilities.
    In D2
    Please Login or Register  to view this content.

    Or as in Sheet2 use SUBTOTAL() then filter by Name and Year or any combination you might need.
    In E1
    Please Login or Register  to view this content.
    Hope this helps
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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