I have a defined name, "todayrow" that, on most days, moves forward by one row. I am trying to reference the "todayrow" row within a table.
When i create a formula on the sheet, it looks like this.
=INDEX(rng_data[Al7dA],TodayRow,1)<=5 (formula 1)
When i create the same formula in a conditional format (using "use a formula to determine which cells to format"), it will not reference the table, and so it deconstructs to an A1C1 type reference, and looks like this.
=INDEX(data!$X$2:$X$1280,TodayRow,1)<=5
But the problem with the conditional formula reference is that it does not update as rows are added to the table. Eventually it becomes outdated and evaluates to #REF when "todayrow" gets higher than the number of rows in the table. But in reality, the table itself has expanded so that todayrow is validly within the range of the table. Is there a workaround, within conditional formats, for this?
Now, i have thought of a workaround, simply to put the formula (formula 1) somewhere in a sheet cell, and then reference the conditional format to the value of that cell.
But, what i am looking for is "a more natural/clean" workaround, to put a formula in the conditional format formula itself that will suffice and not cause me to have to set a part of a worksheet aside just for this purpose. That way the entire conditional format condition is within the conditional format definition (as it usually is) and does not require visibility on a sheet cell.
Any thoughts? Thanks!
When i create a formula on the sheet, it looks like this.
=INDEX(rng_data[Al7dA],TodayRow,1)<=5 (formula 1)
When i create the same formula in a conditional format (using "use a formula to determine which cells to format"), it will not reference the table, and so it deconstructs to an A1C1 type reference, and looks like this.
=INDEX(data!$X$2:$X$1280,TodayRow,1)<=5
But the problem with the conditional formula reference is that it does not update as rows are added to the table. Eventually it becomes outdated and evaluates to #REF when "todayrow" gets higher than the number of rows in the table. But in reality, the table itself has expanded so that todayrow is validly within the range of the table. Is there a workaround, within conditional formats, for this?
Now, i have thought of a workaround, simply to put the formula (formula 1) somewhere in a sheet cell, and then reference the conditional format to the value of that cell.
But, what i am looking for is "a more natural/clean" workaround, to put a formula in the conditional format formula itself that will suffice and not cause me to have to set a part of a worksheet aside just for this purpose. That way the entire conditional format condition is within the conditional format definition (as it usually is) and does not require visibility on a sheet cell.
Any thoughts? Thanks!