Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Conditional Formatting based on date and other cell with multiple options

$
0
0

I'm having trouble with conditional formatting. I would like a cell with a date to be highlighted after a certain amount of time has passed. That amount of time depends upon another cell. For instance, A1 says "Monthly" and I want A2 to highlight after a month has passed. B1 says "Weekly" and I want B2 to highlight after a week has passed.

These work:

=AND(TODAY() - $H7 > 7, $G7 = "Weekly")

=AND(TODAY() - $H7 > 14, $G7 = "Bi-weekly")

=AND(TODAY() - $H7 > 28, $G7 = "Monthly")

=AND(TODAY() - $H7 > 56, $G7 = "Bi-monthly")

I basically want to be able to change G7 from "Weekly" to "Monthly" and it change H7 to the proper amount of time passed.

Thank you!


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>