Mar 09 2023 09:22 AM - edited Mar 09 2023 10:01 AM
Hi All,
I have a rate spread sheet (below) that has 7 columns:
A | B | C | D | E | F | G | |
1 | Cost Descr | Cost Amount | Rate Applied | Rate Factor | Current Rate (light green) | Live Rate (light golden) | Hist. Rate (light blue) |
2 | Material | 79,132 | 26,013 | 33% | 33% | 30% | 32% |
3 | Labor | 20,306 | 5,784 | 28% | 28% | 29% | 29% |
4 | Equipment | 78,164 | 15,016 | 19% | 19% | 21% | 27% |
5 | Subcontract | 9,783 | 2,944 | 30% | 30% | 22% | 22% |
6 | Miscellaneous | 61,167 | 16,921 | 28% | 28% | 25% | 28% |
I want to be able to set conditional formatting on column D where it changes the fill color based on its reference: if I reference D2 to the live rate (F2), its fill color will change to light golden, the rest goes respectively or reference D3 to the current rate (E3), the fill color of cell D3 should become light green. I use different rates for different costs. I want the user to visually see what rate is applied to certain cost.
Please note that the condition must be based on the actual reference and not the values because sometimes the values of multiple rates may be identical.
I tried to come up with a formula that compares the cell contents in cell D2 to the address of cell F2 but couldn't get it to work.
Expected result - column D
Any idea?
Thanks in advance.
Mar 09 2023 10:12 AM
Mar 09 2023 10:36 AM
@ricardojose here you go. Thanks
Mar 09 2023 11:11 AM
@alex_n , here you go!
Best
Mar 09 2023 11:20 AM
Mar 09 2023 11:28 AM - edited Mar 09 2023 11:28 AM
The pseudo example would be as follows:
if (the content of D2 is "=E2", then format D2 cell fill to light green color)
D2: Rate Factor
E2: Current Rate (light green color column)
I tried to use Indirect() function with combination of Address() function but could not get it to the level it would work. I may be doing something wrong here.
Mar 09 2023 11:56 AM
Mar 09 2023 12:30 PM
See the attached version.
Mar 09 2023 12:48 PM
Mar 09 2023 01:50 PM
SolutionOK, try this.
Mar 09 2023 01:56 PM