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
Solved

Conditional Formatting... but not the usual scenario

Posted on 2013-12-18
7
196 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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

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…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

840 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