Hi there
I like your suggestion and I totally agree with Nothing LTL.
Nevertheless,
If the output you of that new between formula would like the one in column F or G then means you want to filter the data in column A by the criteria in columns C and D.
If so,
With no intention to deter you from getting a new formula goals
I humbly suggest you try the following
Formula option
The relative new FILTER and SORT functions might do the job.
Also a combination of the AGGREGATE AND INDEX functions for Excel desktop versions will give you similar output.
Built in Features option
A Pivot Table
And ultimately Power Query
Will give you the solution you want.
Regards
Jeovany