I have attached an example spreadsheet for reference:
I am essentially trying to create a gantt chart within the cells where table 1 corresponds to row 3 and table 2 to row 4. I want the conditional formatting to reference all rows in a table instead of just the first. My conditional formatting formula is currently:
=AND($AP3="Greenbrier",AND(B$2>=$AN3,B$2<=$AO3))
where it is searching for "Greenbirier" text in the AP column, and coloring the range defined by columns AN and AO appropriately.
As of now, creating the chart would require me to have way too many rules (12 areas*14 rows in table)
ex)
=AND($AP3="Greenbrier",AND(B$2>=$AN3,B$2<=$AO3))
=AND($AP4="Greenbrier",AND(B$2>=$AN4,B$2<=$AO4))
=AND($AP5="Greenbrier",AND(B$2>=$AN5,B$2<=$AO5)) ....etc
I have been trying to create a formula that would reference the entire table, something like:
=AND($AP$3:$AP$16="Ohio",AND(B$2>=$AN$3:$AN$16,B$2<=$AO$3:$AO$16))
which would enable me to have 12 rules per table, but have had no luck.
I welcome any ideas regarding ways to re-write my formula to make this happen.
Thanks!
Bookmarks