A few things you may do to speed up calculations.
Column D and E use the same COUNTIF (or in @JohnTopley formula the same inner IF):
Instead use a helper column with that formula and then reference that cell from columns D and E
IE: new column K3 would be:
or
Then in columns D and E:
or
This way you are evaluating that condition 1 time for both columns, half the calculations.
I also agree that the formula given is better, presuming your dates are in order like in your sample. Otherwise stick to COUNTIF if your dates are mixed up and you dont want to sort.
Also column F is a bit redundant. The value already exists in C:E and looking at the sample I presume only 1 column per row will have a value. Ill come back to this...
Column G should be (likely a minimal gain but should work a bit faster):
Columns H, I, J are all pretty complex for dealing with only 3 characters of which we know the positions of. In your actual data are the numbers from C/D/E and/or F always 3 digits and you break them down to 1st, 2nd, 3rd digit in H:J?
If so:
H
I
J
So going back to Column F. You could eliminate it and instead update the H:J formulas to simply evaluate C:E and grab the number. something simple like:
H
This should work as only 1 of the 3 columns has a number and any number plus nothing is the same number. In this fashion you dont even need to locate the column. You could update I and J in a similar fashion.
However it would be even better to convert column F to the SUM(D3:E3) and this way for the columns H:J we only calculate the sum 1 time instead of 3!
As mentioned, I would set the data set to be a table. If you stick with COUNTIF I would then set it to look at the whole column instead of a growing range (instead of absolute:relative) as this will simplify the calc chain.
Also, in your actual file how many columns/rows are we talking about roughly? Whats the file size (KB/MB)? Is it just one big sheet or many sheets?
If its one sheet, click in cell A1, press CTRL+END. If it takes you to the bottom right corner of your data, great...if it zips past you last row and column actually used on that sheet you have excess content you should clear as it may be impacting performance.
Bookmarks