Calculate Expired Date with T in Date Format

Vgabond

Board Regular
Joined
Jul 22, 2008
Messages
197
Hi MrExcel Guru

Seeking for your assistance as I have more than 100 csv files in a folder that I need to do the following :
1. Count row that have Expired Date. Date format is YYYY-MM-DDTHH:MM:SS. Then write the count of rows ( expired date) in a new sheet : Summary Expired Date
2. Write the file name in sheet: Summary Expired Date

Any assistance is appreciated
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Hi MrExcel Guru

Seeking for your assistance as I have more than 100 csv files in a folder that I need to do the following :
1. Count row that have Expired Date. Date format is YYYY-MM-DDTHH:MM:SS. Then write the count of rows ( expired date) in a new sheet : Summary Expired Date
2. Write the file name in sheet: Summary Expired Date

Any assistance is appreciated
To add on. The expired date is in Column O. Any help is appreciated
 
Upvote 0
I'd suggest you use Power Query as it was built for this kind of thing.
 
Upvote 0
Upvote 0
If there's a value for every row, does that mean that all the data is expired and you basically just want a row count from each file?
 
Upvote 0
If there's a value for every row, does that mean that all the data is expired and you basically just want a row count from each file?
It should count the rows with expired dates and then list the file name and the count of expired rows on the 'Summary Expired Date' sheet.
 
Upvote 0
By 'expired date' do you just mean any date in that column that is less than the day the query is run?
 
Upvote 0

Forum statistics

Threads
1,221,417
Messages
6,159,789
Members
451,589
Latest member
Harold14

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