Formula to calculate the number of weeks, but to stop when the target is reached

alicemil

New Member
Joined
Dec 12, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi,

I am creating a client tracking spreadsheet, for those who join my programme. I would like for the tracker to calculate the current week the client is on, but would like the formula to stop counting when it reaches 12 (or whatever value I add in column M).

This is what my spreadsheet currently looks like, :
1734018411965.png


As you can see in column P, the week tracker has exceeded the 12 weeks/final date of the programme. Is there a formula to use that will stop counting when the value in Column N is reached?

The formulas I have are:
Column N: =L5+(M5*7)
Column O: =TODAY()
Column P: =(DATEDIF(L5,O5,"D")/7)

Happy to amend the current columns as required.
Many thanks :)
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Welcome to the Board!

If you want to cap it at 12, just change the formula in column P from:
Excel Formula:
=(DATEDIF(L5,O5,"D")/7)
to this:
Excel Formula:
=MIN(DATEDIF(L5,O5,"D")/7,12)
 
Upvote 0
Welcome to the Board!

If you want to cap it at 12, just change the formula in column P from:
Excel Formula:
=(DATEDIF(L5,O5,"D")/7)
to this:
Excel Formula:
=MIN(DATEDIF(L5,O5,"D")/7,12)
Thanks so much!
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,716
Members
452,939
Latest member
WCrawford

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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Back
Top