• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Conditional format, can you make one look to another higher in the order?|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / Conditional format, can you make one look to another higher in the order?|General Excel Questions & Answers|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumGeneral Excel Questions & Answe…Conditional format, can you make on…
sp_PrintTopic sp_TopicIcon
Conditional format, can you make one look to another higher in the order?
Avatar
Dixon Peer

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
January 17, 2021
sp_UserOfflineSmall Offline
1
February 15, 2021 - 2:09 am
sp_Permalink sp_Print

I am building a Gannt chart following the instructions of a YouTube video posted not long ago.  I have posted a link to it intercepting the appropriate time that instructions on the feature I'm having difficulty with occur: https://youtu.be/30lGSyZL3DM?t=4041

Basically, what it is supposed to do is inject a line of code that is duplicated in three conditions.

 

=NOT(AND(date,>=task_start, date<=task_end)) is placed above the three that contain the clause AND(date>=task_start,date<=task_end).  The idea is that one can then delete that clause from the three following conditions that contain it.  If you watch the brief part of the video you will see what I'm trying to convey here.  The problem seems to come in with the last condition where it is supposed to be changed to simply =TRUE.  That is the conditional that determines the starting and end point of the task in the bar chart.  How does it work that the following conditional formats can use a clause from one above them???

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4446
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
2
February 15, 2021 - 5:29 pm
sp_Permalink sp_Print

Hi Dixon,

Welcome to our forum!

It's not so much that the format is using the clause from the format above, but rather the conditional format that has 'Stop if True' checked acts as a gatekeeper for the remaining formats. 

In other words, if the gatekeeper formatting rule, which actually has no format, evaluates to TRUE then none of the other formats get applied. If however, it's FALSE then the other formatting rules get evaluated. The last rule has no formula to evaluate, it simply gets applied if the gatekeeper formula is FALSE.

While this is a clever trick, I personally don't like it because it requires you to have a detailed understanding of the conditional formatting rule set up and remember the rule contained in the gatekeeper format. It's very difficult to audit rules like this and they can create a lot of confusion to anyone inheriting the file. 

I would avoid this type of trick unless you're the only one who will ever use the file.

Mynda

Avatar
Dixon Peer

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
January 17, 2021
sp_UserOfflineSmall Offline
3
February 16, 2021 - 2:37 am
sp_Permalink sp_Print

Thank you Mynda.  I get the gatekeeper thing.  But how does that work with deleting lines of code in the following conditions?  It seems that the thing that messed up my chart was the last condition where the code was deleted and the substitutuion was simpy "True".  Flumoxly your, Dixon

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4446
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
4
February 16, 2021 - 8:51 am
sp_Permalink sp_Print

The lines of code that are deleted are simply evaluated by the gatekeeper and therefore don't need to be evaluated again in the following conditional formatting rules. 

Without seeing your file I can't tell what has gone wrong for you. Are you able to share it here?

Mynda

Avatar
Dixon Peer

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
January 17, 2021
sp_UserOfflineSmall Offline
5
February 17, 2021 - 9:22 am
sp_Permalink sp_Print

Ahh.  Somehow a condition got deleted at some point that was throwing things off.  It was =task_end=""  without format and then the check box for "stop if true" checked.  That solves the problem, which was self imposed as with so many in coding.

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Richard West, Shanna Henseler, Lawrence Smith, Nada Perovic
Guest(s) 11
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
John Chisholm
vexokeb sdfg
John Jack
Malcolm Toy
Ray-Yu Yang
George Shihadeh
Naomi Rumble
Uwe von Gostomski
Jonathan Jones
drsven
Forum Stats:
Groups: 3
Forums: 24
Topics: 6212
Posts: 27236

 

Member Stats:
Guest Posters: 49
Members: 31889
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.