Coloring cells based on a date range

crtk09

New Member
Joined
Dec 17, 2021
Messages
16
Office Version
  1. 365
Platform
  1. Windows
Hey all,

I asked a question similar to this the other day, but have changed my approach and wanted to get some input.

Based on the date ranges in the table below, is it possible to use conditional formatting, or VBA, to color cells a solid color. Even better, if possible, can I use a gradient color?

Book4
ABCDEFGHIJKLMNOPQR
1ProjectProject Start DateCommissioningUATShadowingTarget Project Completion DateFeb-2022Mar-2022Apr-2022May-2022Jun-2022Jul-2022Aug-2022Sep-2022Oct-2022Nov-2022Dec-2022Jan-2023
2Software Enhancement1/1/20222/1/20223/1/20223/15/20223/29/2022
Sheet1


Thank you!! :)
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Still trying desperately to figure this one. Have also tinkered with PowerBI but to no avail :(
 
Upvote 0

Forum statistics

Threads
1,223,237
Messages
6,170,930
Members
452,367
Latest member
TePunaBloke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top