Would you please supply me with the extra bit of code to add into the formula.
Regards
Keith
">
Hi Jeovany
The database is not adding the records up correctly. I believe the problem lies in the fact that the code is not using the column Count which can have numbers more than one in there. For instance when you type in AW in cell E2 the result is 2 short in cell D91 because two records have a two in the cell in sheet pre1950. The same applies to the Records sheet.
=COUNTIFS(pre1950tb[BTO],Specific_Species,pre1950tb[Progress],"OK",pre1950tb[CountyCode],$A59,pre1950tb[Year],"<1950")
Would you please supply me with the extra bit of code to add into the formula.
Regards
Keith
Hi Keith
The formulas are correct, and here is the reason:
On the pre-1950 sheet, in rows 93 and 94, in the Progress column, was entered "OK same" shown in the highlighted yellow cells. The formula only counts the "OK" values, these 2 lines of data are missing in the count.


The "To be Revised " sheet has nothing to do with the formulas, and is not used in any calculations.
The sheet was added simply, to alert you about the many mistakes/typos/alterations entered in the Progress column that could affect the accuracy of the calculations, exactly as pointed in the above comments and pictures.
I explained that in a previous post.
Here is the list of the many OK types entered in the Progress column, repeated multiple times, and surely not counted in the Stats sheet (shown in the "To be Revised " sheet)
| OK (maybe) |
| OK (nothing to change) |
| OK ?SAME |
| OK Agg |
| OK as alb sp |
| OK AS GP |
| OK as group |
| OK as intergrade |
| OK as pair |
| OK as pr |
| OK as sp |
| OK CAT E |
| OK group |
| OK returing bird |
| OK Return |
| OK return/same |
| OK returnee |
| OK same |
| OK same |
| OK Same as 2021 |
| OK same as highland |
| ok same as J Mccullum birds |
| OK same as nmb |
| OK Same as scilly |
| OK same prev published |
| OK same-at BOURC |
| OK, same as 10701 |
| OK-at BOURC |
| OK-Cat D |
| OK-Cat D same |
| OK-Cat E |
| OK-Cat E same |
| OK-Channel Isles |
| OK-Channel Isles same |
| OK-ex BBRC |
| OK-Irish |
| OK-not British Waters |
The formula I previously used follows the basis of your original file.
If you want to include/count all the ones that contain the word OK in the Progress column, then
We need to replace in all the formulas the "OK" with "*OK*"

You may download the file with the correction here Archived Database-BBRC (Jeovany Fix 16-03-2025).xlsx
Regards
Jeovany