Conditional Formatting Based on Quarterly Data that is Text Not Related to Actual Dates

muleevp

New Member
Joined
Jun 9, 2021
Messages
3
Office Version
  1. 2016
Platform
  1. Windows
Hello, I am trying to use conditional formatting to make a Gantt chart. I need to color the number of quarters in each row based on the StartQtr and NbrQtrs. I know how to do one column based on the starting quarter, but I don't know how to do multiple columns based on the number of quarters. Any suggestions?
StartQtrEndQtrQtrDiffYrDiffNbrQtrs1Q232Q233Q234Q231Q242Q243Q244Q24
1Q231Q23
0​
0​
1​
2Q234Q23
2​
0​
3​
1Q244Q24
3​
0​
4​
1Q234Q24
3​
1​
8​
3Q233Q24
0​
1​
5​
4Q242Q25
-2​
1​
3​
4Q241Q25
-3​
1​
2​
4Q233Q26
-1​
3​
12​
3Q232Q27
-1​
4​
16​
4Q232Q26
-2​
3​
11​
4Q231Q25
-3​
2​
6​
4Q234Q26
0​
3​
13​
4Q233Q24
-1​
1​
4​
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Hi & welcome to MrExcel.
How about
+Fluff 1.xlsm
ABCDEFGHIJKLM
1StartQtrEndQtrQtrDiffYrDiffNbrQtrs1Q232Q233Q234Q231Q242Q243Q244Q24
21Q231Q23001
32Q234Q23203
41Q244Q24304
51Q234Q24318
63Q233Q24015
74Q242Q25-213
84Q241Q25-312
94Q233Q26-1312
103Q232Q27-1416
114Q232Q26-2311
124Q231Q25-326
134Q234Q260313
144Q233Q24-114
Main
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F2:M14Expression=AND(COLUMNS($F1:F1)>=MATCH($A2,$F$1:$M$1,0),COLUMNS($F1:F1)<=MATCH($A2,$F$1:$M$1,0)+$E2-1)textNO
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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