Counting through a large table

viettest

New Member
Joined
Mar 11, 2019
Messages
4
Hi I have a project with about 240,000 rows of data and 23 columns. There are two columns that I need to compare dates to that are; Date Logged and Date Resolved. The date I compare them to are usually the first of each month from 2017 to present day. I need to track whether or not that case was solved by the start of that month by checking to see if it was even logged by that date and if it was resolved yet. I found that doing a countif in excel for the table was taking about 14 seconds to do the whole sheet which was not so bad so I attempted to do it in VBA to speed up the process. After writing a few lines using For and if statements I'm finding it to be very slow and takes about 14 seconds just for one column of data. What approach should I take to tackle this issue.

I should add that I load that huge table into an array and loop the For loop through it Counting all the ones that meet the requirements for the table below. There are more columns too but this is the gist of it.

PeriodBacklogVolume Receive that monthCompleted during the month
3/31/2017 0:00
4/1/2017 0:00
5/1/2017 0:00
6/1/2017 0:00
7/1/2017 0:00
8/1/2017 0:00
9/1/2017 0:00
10/1/2017 0:00
11/1/2017 0:00
12/1/2017 0:00
1/1/2018 0:00
2/1/2018 0:00
3/1/2018 0:00
4/1/2018 0:00
5/1/2018 0:00
6/1/2018 0:00
7/1/2018 0:00
8/1/2018 0:00
9/1/2018 0:00
10/1/2018 0:00
11/1/2018 0:00
12/1/2018 0:00
1/1/2019 0:00
2/1/2019 0:00
3/1/2019 0:00

<tbody>
</tbody>

<tbody>
</tbody>
 
Last edited by a moderator:

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
I used to manage a large audit data base and every row had audit date, issue, action needed, target completion date, date completed. So in the last column to the right I checked if open and in date, or open out of date, or closed on time, or closed late, or open and well out of date etc. A summary table gave us the big picture.
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,692
Members
449,117
Latest member
Aaagu

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