# Stop count once date is met

#### bearbags

##### New Member
Hi all,

I'm seeking some help with a formula. Tried a number of methods but I can't seem to get the formula to stop rolling after it has hit a certain date.

Currently, my staff are given a 4 month period to reach 90 customers or more. The total number of customers are calculated and added into column C at every end month, e.g. 31 July, 30 Sep, etc.
I am trying to track which staff hit the criteria within the 4 month period, however the issue is that when i change the end month date, the formula continues counting. I am looking for it to cut off once it has reached the 4 month mark so I know whether my staff hit their different targets at the deadline.

Example scenario:

• Jim starts working on 30 Mar 2020, he is given 4 months to reach 90 customers.
• Using his commencement date, he must reach 90 customers or more by 28 Jul 2020 (n+120, or 4 months later) to meet the criteria.
• Hence, as of 28 Jul, he should reach at least a minimum of 90 customers.
Cell values
A1 = date Jim started working
B1 = number of clients
C1 = end month date

The current formula I have is this:
=IF(AND(A1+120,B>=90)),"YES","NO")

The formula works at the start. It shows me whether Jim hits 90 customers by the 4th month. However, as cell C1 is continuously changing to the next end month date and the customer count keeps increasing, the cell continues to count.
Is there a way to get the cell to stop counting once it has reached 28 July?

### Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},\$Z\$1:\$Z\$99,\$Y\$1:\$Y\$99),2,False) to lookup Y values to left of Z values.

#### jasonb75

##### Well-known Member
If you have a formula in B1 that is counting the number of clients in a database / list then you could possibly do something with a formula like
Excel Formula:
``=COUNTIFS(name,"JIM",date,"<="&EDATE(A1,4))``
Where name refers to a column of names in the database and date refers to a column of dates where the customer was added to the database.

However if you are updating the number of clients in B1 manually then what you are asking would not be possible with a formula (at least not based on the current information that you have provided).

Replies
1
Views
88
Replies
2
Views
189
Replies
5
Views
179
Replies
1
Views
255
Replies
1
Views
155

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,152,277
Messages
5,769,194
Members
425,525
Latest member
syedn07

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back