Spreadsheet: 887776d1738104694-formula-to-count-cells-with-specific-text-value-in-a-dynamic-range-excel-lookup-example_v1
Sheet: Sheet1

Input
Output
 |  |  |  | DATA >>> |  | Cars | Trucks | Cranes | Planes | Trains
 |  |  |  |  | 2024-01-01 00:00:00 | Yes | Yes | Yes | No | No
 | Start | 2024-01-01 00:00:00 |  |  | 2024-01-02 00:00:00 | Yes | Yes | Yes | No | No
 | End | 2024-01-31 00:00:00 |  |  | 2024-01-03 00:00:00 | Yes | Yes | Yes | No | No
 |  |  |  |  | 2024-01-04 00:00:00 | Yes | Yes | No | No | No
 |  |  |  |  | 2024-01-05 00:00:00 | Yes | Yes | Yes | No | No
 |  |  |  |  | 2024-01-06 00:00:00 | Yes | Yes | Yes | No | No
 | Summary |  |  |  | 2024-01-07 00:00:00 | Yes | Yes | Yes | No | No
 |  |  |  |  | 2024-01-08 00:00:00 | Yes | Yes | No | No | No
 | Cars |  |  |  | 2024-01-09 00:00:00 | Yes | Yes | Yes | No | No
 | Trucks |  |  |  | 2024-01-10 00:00:00 | Yes | Yes | Yes | No | No
 | Cranes |  |  |  | 2024-01-11 00:00:00 | Yes | Yes | No | No | No
 | Planes |  |  |  | 2024-01-12 00:00:00 | Yes | Yes | Yes | No | No
 | Trains |  |  |  | 2024-01-13 00:00:00 | Yes | Yes | Yes | Yes | Yes
 |  |  |  |  | 2024-01-14 00:00:00 | Yes | Yes | No | No | No
 |  |  |  |  | 2024-01-15 00:00:00 | Yes | Yes | Yes | No | No
 |  |  |  |  | 2024-01-16 00:00:00 | Yes | Yes | Yes | Yes | Yes
 | ^Summary gives the % of "Yes" responses for a given category based on the date range in C5 and C6… |  |  |  | 2024-01-17 00:00:00 | Yes | Yes | Yes | No | No
 |  |  |  |  | 2024-01-18 00:00:00 | Yes | Yes | Yes | No | No
 |  |  |  |  | 2024-01-19 00:00:00 | Yes | Yes | Yes | No | No
 |  |  |  |  | 2024-01-20 00:00:00 | Yes | Yes | Yes | No | No
 |  |  |  |  | 2024-01-21 00:00:00 | Yes | Yes | No | No | No
 |  |  |  |  | 2024-01-22 00:00:00 | Yes | Yes | Yes | No | No
 |  |  |  |  | 2024-01-23 00:00:00 | Yes | Yes | Yes | No | No
 |  |  |  |  | 2024-01-24 00:00:00 | Yes | Yes | Yes | No | No
 |  |  |  |  | 2024-01-25 00:00:00 | Yes | Yes | No | No | No
 |  |  |  |  | 2024-01-26 00:00:00 | Yes | Yes | No | No | No
 |  |  |  |  | 2024-01-27 00:00:00 | Yes | Yes | Yes | No | No
 |  |  |  |  | 2024-01-28 00:00:00 | Yes | Yes | No | No | No
 |  |  |  |  | 2024-01-29 00:00:00 | Yes | Yes | No | No | No
 |  |  |  |  | 2024-01-30 00:00:00 | Yes | Yes | Yes | No | No
 |  |  |  |  | 2024-01-31 00:00:00 | Yes | Yes | Yes | No | No
 |  |  |  |  | 2024-02-01 00:00:00 | Yes | Yes | Yes | No | No
 |  |  |  |  | 2024-02-02 00:00:00 | Yes | Yes | No | No | No
 |  |  |  |  | 2024-02-03 00:00:00 | Yes | Yes | No | No | No
 |  |  |  |  | 2024-02-04 00:00:00 | Yes | Yes | No | No | No
 |  |  |  |  | 2024-02-05 00:00:00 | Yes | Yes | Yes | No | No
 |  |  |  |  | 2024-02-06 00:00:00 | Yes | Yes | Yes | No | No
 |  |  |  |  | 2024-02-07 00:00:00 | Yes | Yes | Yes | No | No
 |  |  |  |  | 2024-02-08 00:00:00 | Yes | Yes | Yes | No | No
 |  |  |  |  | 2024-02-09 00:00:00 | Yes | Yes | Yes | No | No
 |  |  |  |  | 2024-02-10 00:00:00 | Yes | Yes | Yes | No | No
 |  |  |  |  | 2024-02-11 00:00:00 | Yes | Yes | No | No | No
 |  |  |  |  | 2024-02-12 00:00:00 | Yes | Yes | No | No | No
 |  |  |  |  | 2024-02-13 00:00:00 | Yes | Yes | Yes | No | No
 |  |  |  |  | 2024-02-14 00:00:00 | Yes | Yes | Yes | No | No
 |  |  |  |  | 2024-02-15 00:00:00 | Yes | Yes | No | No | No
 |  |  |  |  | 2024-02-16 00:00:00 | Yes | Yes | No | No | No
 |  |  |  |  | 2024-02-17 00:00:00 | Yes | Yes | No | No | No
 |  |  |  |  | 2024-02-18 00:00:00 | Yes | Yes | No | No | No
 |  |  |  |  | 2024-02-19 00:00:00 | Yes | Yes | No | No | No
 |  |  |  |  | 2024-02-20 00:00:00 | Yes | Yes | Yes | No | No
 |  |  |  |  | 2024-02-21 00:00:00 | Yes | Yes | Yes | No | No
 |  |  |  |  | 2024-02-22 00:00:00 | Yes | Yes | Yes | No | No
 |  |  |  |  | 2024-02-23 00:00:00 | Yes | Yes | No | No | No
 |  |  |  |  | 2024-02-24 00:00:00 | Yes | Yes | No | No | No
 |  |  |  |  | 2024-02-25 00:00:00 | Yes | Yes | No | No | No
 |  |  |  |  | 2024-02-26 00:00:00 | Yes | Yes | Yes | No | No
 |  |  |  |  | 2024-02-27 00:00:00 | Yes | Yes | No | No | No
 |  |  |  |  | 2024-02-28 00:00:00 | Yes | Yes | Yes | No | No
 |  |  |  |  | 2024-02-29 00:00:00 | Yes | Yes | Yes | No | No
 |  |  |  |  | 2024-03-01 00:00:00 | Yes | Yes | No | No | No
 |  |  |  |  | 2024-03-02 00:00:00 | Yes | Yes | No | No | No
 |  |  |  |  | 2024-03-03 00:00:00 | Yes | Yes | Yes | No | No
 |  |  |  |  | 2024-03-04 00:00:00 | Yes | Yes | No | No | No
 |  |  |  |  | 2024-03-05 00:00:00 | Yes | Yes | Yes | No | No
 |  |  |  |  | 2024-03-06 00:00:00 | Yes | Yes | Yes | No | No
 |  |  |  |  | 2024-03-07 00:00:00 | Yes | Yes | Yes | No | No
 |  |  |  |  | 2024-03-08 00:00:00 | Yes | Yes | Yes | No | No
 |  |  |  |  | 2024-03-09 00:00:00 | Yes | Yes | Yes | No | No
 |  |  |  |  | 2024-03-10 00:00:00 | Yes | Yes | Yes | No | No
 |  |  |  |  | 2024-03-11 00:00:00 | Yes | Yes | Yes | No | No
 |  |  |  |  | 2024-03-12 00:00:00 | Yes | Yes | Yes | No | No
 |  |  |  |  | 2024-03-13 00:00:00 | Yes | Yes | Yes | No | No
 |  |  |  |  | 2024-03-14 00:00:00 | Yes | Yes | Yes | No | No
 |  |  |  |  | 2024-03-15 00:00:00 | Yes | Yes | Yes | No | No
 |  |  |  |  | 2024-03-16 00:00:00 | Yes | Yes | Yes | No | No
 |  |  |  |  | 2024-03-17 00:00:00 | Yes | Yes | No | No | No
 |  |  |  |  | 2024-03-18 00:00:00 | Yes | Yes | No | No | No
 |  |  |  |  | 2024-03-19 00:00:00 | Yes | Yes | Yes | No | No
 |  |  |  |  | 2024-03-20 00:00:00
 |  |  |  |  | 2024-03-21 00:00:00
 |  |  |  |  | 2024-03-22 00:00:00
 |  |  |  |  | 2024-03-23 00:00:00
 |  |  |  |  | 2024-03-24 00:00:00
 |  |  |  |  | 2024-03-25 00:00:00
 |  |  |  |  | 2024-03-26 00:00:00
 |  |  |  |  | 2024-03-27 00:00:00
 |  |  |  |  | 2024-03-28 00:00:00
 |  |  |  |  | 2024-03-29 00:00:00
 |  |  |  |  | 2024-03-30 00:00:00
 |  |  |  |  | 2024-03-31 00:00:00