Solved

Conditional Formatting... but not the usual scenario

Posted on 2013-12-18
7
166 Views
Last Modified: 2013-12-20
Experts:

I've used conditional formatting before (e.g., if cell value = X then green; if cell value = Y then red).

Instead, in this case, based on a cell value, I would like to "hide" (meaning white background, white font color, no borders, etc.) a record from displaying in the XLS.  

Some of record's column, however, already have conditional formatting applied... so it somehow needs to be "overwritten".

All details are included in the attached XLS.  

Does anyone know how to accomplish this (in Excel 2003).

Thanks,
EEH
NotTypicalCondictionFormatting.xls
0
Comment
Question by:ExpExchHelp
  • 4
  • 3
7 Comments
 
LVL 50

Expert Comment

by:barry houdini
ID: 39728197
I selected the range A1:H24 and added this condition in conditional formatting

=$A1="Don't show record"

So if the column A cell contains that text the conditional formatting will be applied to the whole of the selected row. The new condition takes precedence over other conditions and the formatting is white font, white background etc.

Try changing B1 dropdown and see how it changes - note: I'm working in Excel 2007 so it might look slightly different but it should still work in Excel 2003 (You are limited to 3 conditions per cell but you're within that still)

regards, barry
disappearing-rows.xls
0
 

Author Comment

by:ExpExchHelp
ID: 39728304
barryhoudini:

Works great!!   The only thing that's missing is that I need to also hide cells in column H.

That might be the tricky one given that it's already using conditional formatting.

Right now, if a record show be displayed and cell value in H = "Reached steady state", then background = green (white font); alternatively, is value = "System not steady", then cell background = white.

However, regardless of the "state", if a record should be shown, then cell background should be white.

Can this be accommodated?

EEH
0
 
LVL 50

Expert Comment

by:barry houdini
ID: 39729272
On my version the column H cells are hidden - what do you see?

As it stands surely the green background is never required, the conditions that would lead to having green formatting would also lead to the row being hidden - isn't that right?

regards, barry
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 

Author Comment

by:ExpExchHelp
ID: 39729320
Barry -- thanks, please see attached JPG indicating that column H is ignored in XLS 2003.

Here's the conditional formatting hierarchy:

1. Rows should be all white (columns A:H) if value = "Don't show record"
2. If values = "Show record", then green should be shown if = "Reached steady state"... otherwise, I should see column H records in red.

Makes sense?

EEH
Snapshot.jpg
0
 
LVL 50

Accepted Solution

by:
barry houdini earned 500 total points
ID: 39730816
OK, it's a while since I used Excel 2003 - I didn't even have it on my PC - re-installed now and when I looked at my document in Excel 2003, yes, I saw that it didn't work for column H - the condition was applied but after the other two conditions - it needs to be first so I swapped the order

Check out this version

regards, barry
disappearing-rowsV2.xls
0
 

Author Comment

by:ExpExchHelp
ID: 39731518
Barry:

Thanks, works like a charm!

EEH
0
 

Author Closing Comment

by:ExpExchHelp
ID: 39731519
Most excellent solution.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now