+ Reply to Thread
Results 1 to 7 of 7

Reset "countif" after specific date is reached

  1. #1
    Registered User
    Join Date
    11-28-2021
    Location
    Zürich
    MS-Off Ver
    Pro plus 2016 (v2110)
    Posts
    4

    Reset "countif" after specific date is reached

    Hello all, hope all well.

    Below is a little project I am working on as I have not been able to find an app that can solve my problem; I have a small dance school that charges 80 money for 8 classes, on an ongoing basis. Students attend same class, same time, each week (e.g. every Friday at 6PM). There are 2-3 classes given on any given day of the week, so each sheet will be related to a specific day and time.

    The students pay for 8 classes in advance (marked in the sheet as “yes”), but if they let me know in advance that they cannot attend the class, then they do not need to pay for that class (excused). If it is a no-show, it counts as class was taken (noted as “no”). They can also chose to take the class on another day, which is noted as “comp” and counts. All of this is being easily counted in the sheet. I get a colour notification of when payment is due based on their pay date, =today, and sum of “=countif yes/no/comp”. So far all good and easy.

    Here is what I have not been able to solve in an elegant way;

    1. All is good and fine for the first 8 classes, the calculation lets me know when next payment is due based on simple formulas. But for next set of 8 classes (e.g. after first payment), it counts also the first “excused” that were linked to the first payment (formula counts the full line). How can I make it only count “excused” from the last “paid on” date (marked red), e.g. how can I “reset” “countif,21:21:”Excused”” to last payment date (cell Q20)? I would manually change the “paid on” date to (in this case to 13 Feb 2022), however how to I make the formula automatically exclude the two “excused” prior to that date (I do not want to delete them, I need to keep them, just in case asked in the future for attendance list)? I want all formula based as I cannot update the formula manually for each student, which also leads me into next question;

    2. How do I duplicate this for 50 students in a smart way? At the moment it simply looks at the date and if any of the dates on line 20 = E20 then red, but I rather need the cell on the student line to turn red (e.g. student 2 should pay after 8 “yes”, so 30 Jan 2022 should turn red)

    While I find it super fun working in excel and solving small problems like this, I have not been able to tackle these two yet.

    Thanks in advance,
    Roz
    Attached Files Attached Files

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Reset "countif" after specific date is reached

    Hi, welcome to the forum.
    Looks like a nice challenge, I've downloaded the file and will take a look at it, am a little busy right now, but will let you know asap
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Reset "countif" after specific date is reached

    Quote Originally Posted by Rooz View Post
    2. How do I duplicate this for 50 students in a smart way? At the moment it simply looks at the date and if any of the dates on line 20 = E20 then red, but I rather need the cell on the student line to turn red (e.g. student 2 should pay after 8 “yes”, so 30 Jan 2022 should turn red)
    My proposal for rearrange your workbook.
    Attached Files Attached Files
    Last edited by DJunqueira; 11-29-2021 at 06:07 AM.

  4. #4
    Registered User
    Join Date
    11-28-2021
    Location
    Zürich
    MS-Off Ver
    Pro plus 2016 (v2110)
    Posts
    4

    Re: Reset "countif" after specific date is reached

    DJunqueira - Yeah, much easier to read going vertically than horizontally, that I must admit. Will certainly do for final version, thx!

    Keebellah - Thanks, seems I have founda a new forum to spend far too much time on But at least here you'll learn something, that's a plus!
    Looking forward hearing about good ideas (and new formulas to use!)

  5. #5
    Registered User
    Join Date
    11-28-2021
    Location
    Zürich
    MS-Off Ver
    Pro plus 2016 (v2110)
    Posts
    4

    Re: Reset "countif" after specific date is reached

    Funny, could not write (at) NAME as forum thinks I am linking a picture or so to the message?

  6. #6
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Reset "countif" after specific date is reached

    Some times it happens, another day I couldn't upload a formula because of some combination of signs.

  7. #7
    Registered User
    Join Date
    11-28-2021
    Location
    Zürich
    MS-Off Ver
    Pro plus 2016 (v2110)
    Posts
    4

    Re: Reset "countif" after specific date is reached

    Just wanted to share my solution, not ****, not elegant, but easy...
    Instead of having the =countif from 1-8 (which I still cannot manage), I will just put a number in when students attend. As soon as nr 1 is in, cell turns red. If they pay, there is another 1 (paid) that can be selected.

    Not very cool, but kind of solves the problem.

    Cheers,
    Roz
    Attached Files Attached Files

+ 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. [SOLVED] Identify specific numeric values in a cell such as "1" without counting "11" as two "1"s
    By MHanna39 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-03-2019, 01:35 PM
  2. Replies: 35
    Last Post: 01-13-2016, 02:16 AM
  3. [SOLVED] :confused: Auto pick "specific data" and put it in "specific cells" with date
    By pipsmultan in forum Excel Formulas & Functions
    Replies: 29
    Last Post: 08-27-2014, 03:31 AM
  4. Auto Pick Only "Specific Day & Date" & put in "specific cells" Vertically
    By pipsmultan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-25-2014, 01:24 AM
  5. [SOLVED] CountIf Date Equals Specific "Month" Across Multiple Columns
    By molson1973 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-31-2014, 01:12 PM
  6. Using DMIN to evaluate "less than" or "greater than" a specific date
    By williams485 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-01-2012, 12:45 PM
  7. Replies: 3
    Last Post: 04-24-2006, 01:35 PM

Tags for this Thread

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