formula for calculating cycles

abound1

Board Regular
Joined
Aug 8, 2005
Messages
84
I need some help with a simple calculation - calculating the number of 'cycles' btwn 2 dates – ie. the number of 14-day cycles plus the number of days transpired (into the next incompleted cycle).

As dates are entered into Col E, the number of cycles (plus days transpired) will show up in Col F as “cycle# / days”.

Example:
(today’s date :11/20/05)
date entered in Col E: 10/01/05
result in Col F: 3/9
3 (14-day) cycles + 9 days transpired

I tried “
Code:
=DATEDIF(E2,NOW(),"d")/14
”, but it returns a decimal value of the cycles rather than the cycle PLUS the actual number of transpired days.

Thanks in advance for your help
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Hi,

Try:

=INT((TODAY()-E2)/14)&"/"&MOD(TODAY()-E2,14)

or maybe you need:

=INT((TODAY()-E2+1)/14)&"/"&MOD(TODAY()-E2+1,14)
 
Upvote 0
try this

=INT(DATEDIF(E2,NOW(),"d")/14)&"/"&MOD(DATEDIF(E2,NOW(),"d"),14)

it seems to work with modulo giving the remainder of your cycle.

John
 
Upvote 0
Thanks a lot Fairwinds and John!

Fairwinds, your second formula works perfectly:

=INT((TODAY()-E2+1)/23)&"/"&MOD(TODAY()-E2+1,23)

the others seemed to come up short by 1 day.

Thanks again for your help, much appreciated :)
 
Upvote 0

Forum statistics

Threads
1,224,878
Messages
6,181,527
Members
453,053
Latest member
DavidKele

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