Solved

Conditional Formatting... but not the usual scenario

Posted on 2013-12-18
7
177 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

943 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

10 Experts available now in Live!

Get 1:1 Help Now