# Date issue

#### txoxmxaxsx

##### New Member
Hi

Im trying to set a few KPIs and need help with dates.

I have a cell with a value that represents the days left in a contract. I need this value to get updated everyday.

For example if a contract has 30 days left I want the cell to show 30 today, 29 tomorrow and so on and so forth.

Thanks in advance for the help guys.

### Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

#### bobsan42

##### Well-known Member
if the date the project ends is in cell A1 then the cell with days left should be:

=A1 - TODAY()

and formatted as a number

#### VoG

##### Legend
With an end date in A1 try

=A1-TODAY()

and format as Number.

#### txoxmxaxsx

##### New Member
A1 is not a day but a number, as I explained on the example. I need that number to decrease 1 by day.

Thanks

#### bobsan42

##### Well-known Member

read the 2 posts above carefully
if the date the project ends is in cell A1 then the cell with days left should be:
=A1 - TODAY()
and formatted as a number
With an end date in A1 try
=A1-TODAY()
and format as Number.
i will try again:
where is the end date of the project?
if it is in cell C1:
then put in A1 this formula:
=C1 - TODAY()
and format cell A1 as a number.

if the end date is not in C1 but in other cell replace C1 in the formula above with the address of the cell where the end date is.
did i manage to explain and be understood?

#### txoxmxaxsx

##### New Member
Days left on a given contract has little to do with time. It actually depends on a money pool that gets depleted month after month. So my days left cell is formula based. I need that number to get refreshed every day so I know when a contract is about to end and take action.

Thanks

#### bobsan42

##### Well-known Member

i don't think you will find the answer if don't succeed to explain clearly what you're after.

#### txoxmxaxsx

##### New Member
Column C2 has a number which represents days till a contract is over.
This number is calculated by dividing the contract amount left by the monthly fee(may vary each month). This way I get days left till contract amount is 0.
I need that number to get refreshed every day.

For example.
Contract x has \$1000. Each month we bill \$200. Assuming that number soesnt change the contract will last 5 months(150 days). I need that number(150) to get updated every day so I know much time I have before the contract runs out.

Hope this clears things up

#### bobsan42

##### Well-known Member
yes, this makes it clear.
you only need to define one more parameter: the date of the last payment
when this is done the formula must be something like:
DaysLeft= contract amount left/monthly fee - (Today()-date of the last payment)

now you should replace the italic text with the necessary cell references and you're good to go.
hope this is it what you're looking for.

#### txoxmxaxsx

##### New Member
Thanks, works great

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,164,520
Messages
5,837,825
Members
430,517
Latest member
chessypack86

### 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