showing number of days apart from today

Enzo_Matrix

Board Regular
Joined
Jan 9, 2018
Messages
113
I am updating a table for a production schedule and I want to automatically tell how many days away an order is due from today without looking at the dates and counting.
Is there something that can do this while still keeping the date as well?

Jan 1, 2018 - 9
Jan 10, 2018 - Today
Jan 12, 2018 +2
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
You can just subtract them.


Excel 2010
AB
11/1/2018-9
21/10/2018
31/12/2018+2
Sheet1
Cell Formulas
RangeFormula
B1=A1-$A$2
B3=A3-$A$2


Format the cells as:
+0;-0;0
 
Last edited:
Upvote 0
Let's suppose your dates are in column B, on each row. In column C you could have this code
Code:
=b1-today()

Drag down the formula

Format column C as general or number. It will give you how many days you have until the date in column B.
 
Upvote 0
Are you actually subtracting from TODAY() or from the cell in A2 as in your example?
 
Upvote 0
I do have the dates listed in Column 'G' and in column 'H' I want to show a difference, numerically, from the listed date to today's.

I manually input the formula and it does work, but not as cleanly as I'd like
Code:
=$G2-Today()
 
Upvote 0
This will put the value in H2 downward for every value in column G:

Code:
Sub TodayDifference()
With Range("H2:H" & Range("G" & Rows.Count).End(xlUp).Row)
    .Formula = "=G2-Today()"
    .Value = .Value
    .NumberFormat = "+0;-0;0"
End With
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,165
Members
453,021
Latest member
Justyna P

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