Hi, welcome to the forum
Have you looked at using Conditional Formatting for this?
1. highlight the range you want to apply the conditional formatting to (the range in column D)
2. on the home tab, styles, select CF
3. select new rule, select use formula
4. enter =A2<30 format as required
Bookmarks