?
Solved

Conditional Formatting... but not the usual scenario

Posted on 2013-12-18
7
Medium Priority
?
214 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
This article describes a serious pitfall that can happen when deleting shapes using VBA.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

765 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