Days Aged Formula

bwlytkr

Board Regular
Joined
Jun 8, 2012
Messages
175
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Need help with a Days Aged Formula. I would like to enter a formula in my access query to convert 01/01/2020 to days aged to current date. Anyone know a formula that I can enter to calculate that? The date Column is labeled NextToGoStartDate. Thanks John
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
If you wanted to check how many days have elapsed since the date shown in A1, for example, you could enter the following formula in a different cell:

= DATEDIF(A1,TODAY(),"d")
 
Upvote 0
Since this was an Access question, the syntax is DateDiff ( interval, date1, date2, [firstdayofweek], [firstweekofyear])
so your calculated query field would be something like

NextToGoStartDate: DateDiff ("d", #01/01/2020#, Date())
 
Upvote 0
Since this was an Access question, the syntax is DateDiff ( interval, date1, date2, [firstdayofweek], [firstweekofyear])
so your calculated query field would be something like

NextToGoStartDate: DateDiff ("d", #01/01/2020#, Date())
Thanks. There are various dates in the nexttogostartdate column so would I put something else in where you have the 01/01/2020 date in the formula? Some dates go back as far as 4 or 5 years
 
Upvote 0
I thought that name was for the query calculated field name. If not then I guess you'd substitute that date with that field name and use something else for the name of the calculated field. I'm only going on the info you provide, and you specified that date in your first post, which is why I went with it. If that still isn't correct then I suggest you past a small table of sample data that includes field names.
 
Upvote 0
I thought that name was for the query calculated field name. If not then I guess you'd substitute that date with that field name and use something else for the name of the calculated field. I'm only going on the info you provide, and you specified that date in your first post, which is why I went with it. If that still isn't correct then I suggest you past a small table of sample data that includes field names.
Thanks for the info. I'l give that a try and let you know and send you a sample of the query if it doesn't work. Thanks again.
 
Upvote 0
Thanks for the info. I'l give that a try and let you know and send you a sample of the query if it doesn't work. Thanks again.
I couldn't seem to get the Access formula to work for me. Below is a sample from excel of what I am trying to achieve when I run the query. I would like Days Aged formula to run in my query so I don't have to copy it in excel each time I run my reports. Hopefully there is a way to do this. I also added a sample of the nexttogostartdate column from the Access query as well. Any help would be greatly appreciated. Thanks Again.

NextToGoStartDateDays Aged
5/24/202111
8/12/2020296
9/22/2020255
5/24/202111
5/24/202111
5/24/202111
5/25/202110
5/25/202110
3/1/2019826
5/25/202110

Query Column

NextToGoStartDate
PXFR02 NTG
 
Upvote 0
I couldn't seem to get the Access formula to work for me. Below is a sample from excel of what I am trying to achieve when I run the query. I would like Days Aged formula to run in my query so I don't have to copy it in excel each time I run my reports. Hopefully there is a way to do this. I also added a sample of the nexttogostartdate column from the Access query as well. Any help would be greatly appreciated. Thanks Again.

NextToGoStartDateDays Aged
5/24/202111
8/12/2020296
9/22/2020255
5/24/202111
5/24/202111
5/24/202111
5/25/202110
5/25/202110
3/1/2019826
5/25/202110

Query Column

NextToGoStartDate
PXFR02 NTG

No need to reply. I got it to work. Must have had something spelled wrong previously. Thanks for your help. It will be a great time saver for me.
 
Upvote 0

Forum statistics

Threads
1,214,391
Messages
6,119,249
Members
448,879
Latest member
oksanana

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