DixiePiper
New Member
- Joined
- Oct 19, 2015
- Messages
- 41
- Office Version
- 365
- Platform
- Windows
I have searched and searched on this and if there is an answer, I've either not found the magic combination of words to conjure the solution from the depths of the internet or cannot understand my own search result. As such, apologies for any redundancies.
I have a dynamic table in which I want to include some basic data analysis. The number of rows is variable based on data imported via VBA. I have a script to copy the conditional formatting so I only need a solution applicable to a single row.
I need to be able to highlight the closest over/under values to a given number. My table is set up as follows:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C
[/TD]
[TD="align: center"]D
[/TD]
[TD="align: center"]E
[/TD]
[TD="align: center"]F[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"]Ref. Value[/TD]
[TD="align: center"]LOW[/TD]
[TD="align: center"][/TD]
[TD="align: center"]MID[/TD]
[TD="align: center"][/TD]
[TD="align: center"]HIGH[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"]$135[/TD]
[TD="align: right"]$111[/TD]
[TD="align: right"]$124[/TD]
[TD="align: right"]$139[/TD]
[TD="align: right"]$157[/TD]
[TD="align: right"]$173[/TD]
[/TR]
</tbody>[/TABLE]
The end result for the above example would be highlighting applied to C2 and D2, representing the closest under (C2) and the closest over (D2).
Caveats and Assumptions:
Advance thanks for any help.
I have a dynamic table in which I want to include some basic data analysis. The number of rows is variable based on data imported via VBA. I have a script to copy the conditional formatting so I only need a solution applicable to a single row.
I need to be able to highlight the closest over/under values to a given number. My table is set up as follows:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C
[/TD]
[TD="align: center"]D
[/TD]
[TD="align: center"]E
[/TD]
[TD="align: center"]F[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"]Ref. Value[/TD]
[TD="align: center"]LOW[/TD]
[TD="align: center"][/TD]
[TD="align: center"]MID[/TD]
[TD="align: center"][/TD]
[TD="align: center"]HIGH[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"]$135[/TD]
[TD="align: right"]$111[/TD]
[TD="align: right"]$124[/TD]
[TD="align: right"]$139[/TD]
[TD="align: right"]$157[/TD]
[TD="align: right"]$173[/TD]
[/TR]
</tbody>[/TABLE]
The end result for the above example would be highlighting applied to C2 and D2, representing the closest under (C2) and the closest over (D2).
Caveats and Assumptions:
- my initial read is I should be able to accomplish this with two separate conditional formatting rules
- there will be instances where the reference value is outside the parameters of the range; no formatting here is acceptable as I can identify that elsewhere
- my goal is a visual "at a glance" idea of where the reference value falls on the scale.
Advance thanks for any help.