Forum Discussion
Conditional Formatting
- Jan 17, 2019
Hi, I have changed it so that ALL records less than today (+ optional n) shows as RED.
Kind regards
Hi, I have changed it so that ALL records less than today (+ optional n) shows as RED.
Kind regards
You are a legend!
Thanks for your help.
- NauthstarJan 17, 2019Iron Contributor
No problem, it's much easier to fix when the actual file (or example file) is included.
;-)
- johnc47Aug 14, 2019Copper Contributor
I was hoping you could assist me with a similar problem? My spread sheet has membership dates in one column and expiry dates in the adjoining, I had it set up so if the exoiry dates were exceeded, the cells high lighted with a red fill. This no longer seems to be working, could you help me please? Nauthstar
- NauthstarAug 15, 2019Iron Contributor
Hi johnc47
I don't think there was anything really wrong with your spreadsheet. The conditional formatting was not showing because you had updated the memberships with new dates for this year.
I have however made a few adjustments. I've made your list a table so you won't need to update formulas when you add a new person to the bottom - all the conditional formatting will also coy down.
I've modified the print so that the header appears on every printed page and I've also added a column which tells you the Student's age.
At the top I've also included a couple of equations to tell you how many students you have and their average age. These rows along with the bubbles can be deleted without it affecting your print range.
Hope this helps and good luck with the classes.
Kind regards
Nauthstar
- MJS-BJan 26, 2019Copper Contributor
I have a similar problem I think. Ultimately, I want a cell to be yellow UNLESS a set of complex conditions occur (complex in how I have to strip out certain data from one column and compare to data in another column). I initially used conditional formatting looking for some data in a row to apply simple formatting (border, yellow fill). Then I added another rule with the complex conditions above hoping that it would override the yellow fill with the red fill. I played with adjusting the order in which the rules would run but that does not seem to have any effect. Each rule works (tested) but the rule I added last will not override the first rule. In other words, once the rule to apply the yellow fill, the rule that conducts the additional testing will not then change the fill to red. So the complex rule also checks for some data in a row, then further evaluates data in a particular column in the row (does some date comparisons which determines if the current date is 30 days after a date pulled from another cell AND there is no currency data yet provided in that cell). This rule needs to be applied to every row in the worksheet (applied to multiple columns). Although I haven't yet added an additional criteria since I have to confirm the business rule that would trigger the condition, but there will have to be a trigger in a (different) cell that checks the same thing but ALSO checks to see if a particular value has been entered in that cell.
Keep in mind this is a spreadsheet used by users that are not Excel "experts" and I do try to use the simplest method of achieving something (to try to prevent someone from deleting data, a column, using an invalid value that is being tested, etc.).
What are my options? I know I could do this easily in VB but the owner of the spreadsheet would not be comfortable owning a spreadsheet with VB in it. Also, I work for the government and I do run into security issues trying to implement VB even though it would not be used outside my team (theoretically).
Same spreadsheet, different question. Is there a "simple" way to dynamically add a formula to a column in a row when data is added to a different column (without manually copying the formula to the target column in the new row)? Again, I could do this with VB but same concern as above.
- NauthstarJan 28, 2019Iron Contributor
Hi, Your first question isn't easy to answer without seeing your equations however, I'm guessing your formulas (although working individually) don't make sense together. For example, if you have A1=3, B1=1 and C1=2 then the Conditional Formulas written separately would work...
IF A1 > B1 then BLUE (&) IF A1 > C1 then RED. However, put together, they wouldn't work if you had them as...
IF A1 > B1 then BLUE followed by IF A1 > C1 then RED. That's because the first criteria has been met. You would need to change the order of the formulas to make sense...
IF A1 > C1 then RED followed by IF A1 > B1 then BLUE.
As for your second question. The easiest way to extend your formulas and formatting down -automatically, when someone adds a new row- is by changing your area into a TABLE (see attached picture). The only other way, without using VBA, is to nest (wrap) your formula inside an equation that gives a blank result unless someone enters data onto that row.
For example, say your table is only down to 20 rows, then you could put your formula inside something like... =IF(A1="","",[your formula goes here]) and copy it down to say row 100. That way, if column A row 21 is empty then the formula would result in a blank result. As soon as information is placed in the relevant columns in row 21, then the formula would give a result.
Hope that helps.