Formula to calculate after a set amount of days

whatdoido

New Member
Joined
May 8, 2024
Messages
6
Office Version
  1. 365
Platform
  1. MacOS
Afternoon!

I've been tearing my hair out over this, and I hoping for some enlightenment from everyone here!

I would like a formula that will calculate the number of days after a certain date.

Basically we offer a storage service, which has an incentive of a number of days (different for each customer) free storage per item, the number of days free is presented in a cell for the formula to reference (so it can be changed easily later down the line). We bill monthly, so I was hoping for a formula that will take into consideration the free period, but will not keep deducting those seven days each billing period?

I hope I have explained that enough to make some sense

I have attached a screen shot below to help.

Column 'K' is where the formula will be placed (the formula there doesn't work, so those values are incorrect)
Cell 'I4' is the free period
Column 'I' is the date of the last bill sent to client or if after that date the date the item arrived in depot

I added column 'R' as a work around, which I don't know if it will help or not, it is a basic formula "=IF(B9<>"",B9+$I$4,"")"


Any advice or criticism is welcome!!
Thank you
 

Attachments

  • Screenshot 2024-05-08 at 11.46.52.png
    Screenshot 2024-05-08 at 11.46.52.png
    200.6 KB · Views: 29

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
what do you want the formula in column K to calculate? What number of days after what date?
 
Upvote 0
Sorry!

The difference between the dates in columns I + J, but only after the free period.
not sure what you mean? dates are "date" and a free period is not a date.

Examples help.

do you mean if the "END of the free period" is in the billing cycle to use that as the days calcuation? So, if free period is 7 days, and it ended on 5/1 and the billing (assuming monthly billing) day is the 15 that you only bill from 5/2 to 5/15 instead of 4/16 to 5/15.?
 
Upvote 0
not sure what you mean? dates are "date" and a free period is not a date.

Examples help.

do you mean if the "END of the free period" is in the billing cycle to use that as the days calcuation? So, if free period is 7 days, and it ended on 5/1 and the billing (assuming monthly billing) day is the 15 that you only bill from 5/2 to 5/15 instead of 4/16 to 5/15.?
I am sorry that I have not been clear enough!

What you have said is what I was thinking.
Would this then, going forward, use the difference between the the "last bill date" (I) and the "End date" (J) to calculate the no. of days, until the item left our depot?

Thank you for deciphering my madness!
 
Upvote 0
I'm not sure if this is what you want or not. I am just giving relevant calculations here. I hope you can figure out what to do with them.
And, I'm not sure I have understood completely. But, as I said examples would have helped.

Book1
ABCDE
1Current Date:2024-05-10
2
3
4In/Start DateFree DaysBilling DayBilling DateDays To Bill
52024-02-158152024-05-1530
62024-04-258252024-05-2522
72024-04-05852024-05-0522
Sheet1
Cell Formulas
RangeFormula
C5:C7C5=DAY(A5)
D5:D7D5=DATE(YEAR($D$1),MONTH($D$1),DAY($A5))
E5:E7E5=MIN($D5-($A5+$B5),$D5-EDATE($D5,-1))
 
Upvote 0
Thank you!

The formula in E5 seems to work, however if the date difference is less than the free days it produces a minus value.
Could an if function be added to produce a '0' if number of days to bill is less than the free period?

Many thanks
 
Upvote 0
Thank you!

The formula in E5 seems to work, however if the date difference is less than the free days it produces a minus value.
Could an if function be added to produce a '0' if number of days to bill is less than the free period?

Many thanks
Sorry, just noticed if there are no values in the DATE IN or the END DATE it throws an error, are we able to make it stay blank until there are values in all the columns referenced?
 
Upvote 0
I've added some values to this for example

Once again thank you for your help!
 

Attachments

  • Screenshot 2024-05-10 at 16.37.56.png
    Screenshot 2024-05-10 at 16.37.56.png
    88 KB · Views: 9
Upvote 0

Forum statistics

Threads
1,223,855
Messages
6,175,023
Members
452,603
Latest member
bendarasdavide

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