Conditional formatting based on validation errors - validation

I have a drop down box and old data in the sheet that doesn't match up to the drop down box list needs to be added to my conditional formatting so the cell stands out a bit better.
Is it possible to set the conditional formatting of a cell based on whether or not the cell has a validation error?

It is impossible to do that the way you want, but there is a workaround.
You can use conditional formatting with a custom formula.
If you data validation is from a range, use that range. If it is from a list, create a range with that list.
For example a range on Sheet2 A1:A10 has the values that are used in data validation. You want to format the range Sheet1 B:B based on values found in that range.
First, select the column in your table(or the whole table) and colour it Red. Then use Conditional Formatting with the following custom formula to colour everything that matches White
=COUNTIF(INDIRECT("Sheet2!$A$1:$A$10"),"="&B1)
You can also add another conditional formatting to colour all the empty cells as white if you have empty space after your table

Good stuff! It took me a while but I found that this formula works and will color the cells that are not in the range AND do not have a blank cell at the first column. This is good to spot data validation errors and works better than looking for a little tiny triangle at the top right of each cell.
=AND(NOT(COUNTIF($M$3:$M$40, H3)),A3<>"")

This worked for me.
Under conditional formatting, new rule, use formula.
=IF(OR(A2="valid data 1",A2="valid data 2"),"FALSE","TRUE")
Then set error condition.

Related

Oracle Apex 5 how to change cell color in classic report based on cell value

I have a classic report in my APEX app. I need to do something like conditional formatting in Excel - to change background color of cells in one column, based on the value of the cells. I found some tutorials, but all for interactive reports, which didn't work with the classic report. Can anybody help me with that issue?
If you're trying to conditionally color entire rows, you'll probably want the built-in alternative row templates with conditions. It's part of the report template.
But if you want to format individual cells, the usual way of doing it is to calculate the background color you want in a new SQL column, hide the column, then get the color value using a #COLUMN_NAME# substitution variable. See this article for a simple example, but there are a lot of other examples if you just search for apex conditional cell formatting.

Displaying rectangle based on presence or lack of values in arbitrary column in SSRS

I have a report with multiple sets of data, but only one dataset. I've accomplished this by setting up multiple different columns in my table that SSRS uses. I set up a rectangle that contains a text box header and a tablix; the tablix is filtered on an identification column in the table so it only shows its own data. What I'd like to do is to only show each rectangle if there is applicable data.
I know that I can solve this problem by adding another row in my tablix and moving the text box title into it, and then showing or hiding the tablix based on whether or not it has data. That's probably the smart move. But before I did that, I wondered if there was a way to assign visibility to the rectangle based on the presence or lack of values in an arbitrary column in SSRS. First doesn't work, because everything other than the first rectangle has NULL in the relevant columns on the first row. Count doesn't work because the rectangle isn't actually hooked to data. What I'm looking for is something like a WHERE clause (=Count() where type = "ab" or something). Like I said, I can go with the tablix route. But the broader scope of this is the ability to control the presence on the report of various items based on the results that have been returned.

Neat block-collapse - how to use - what's its purpose

I'm kind of confused how the neat grid works when using block-collapse - assuming a 3 column grid, the first two column result in a width of something like 34....% and the third column is around 31...% so I'm not getting three equal columns next to each other.
am I missing something here?
block-collapse removes the margin gutter, and adds it to the block. This works across the row until the end, when the final block just takes up the remaining space. This is why you are seeing a smaller last column.
If you have a row, and set that to $display: table, then children of it will be displayed as table cells, which will give you an even distribution across the row which I think is what you are after.
Pen is here:
http://codepen.io/mikehdesign/full/jPmWza/
Here is an image showing a standard set of columns, block-collapse and a table display:

How do I combine four countif and add them all in one cell?

Hi guys I'm trying to combine different things together then I want to add them all together in one cell. Right now there all in separate cells.I tried just about everything I know, but nothing. i haven't done this kind complex formulas since 2007. How would I combine these?
=countif(b5:b32,"*")*5
=countif(c5:c32,"*")*5
=countif(d5:d32,"*")*10
=countif(f5:f32,"*")*20
=sum(b33,c33,d33,f33)
(Ps everything in the cells have dates I formatted the cells to text and formatted the cell that adds all of them to currency (g33). Also I formatted the cells that do the countif function to general just so it adds the cells and not date. My dates are in this format dd/mm/yyyy)
Just replace the cells references in the SUM formula with the formula in each cell. Use this formula:
=SUM(
COUNTIF(B5:B32,"*")*5,
COUNTIF(C5:C32,"*")*5,
COUNTIF(D5:D32,"*")*10,
COUNTIF(F5:F32,"*")*20)

Row Labels for SlickGrid

Is there a way to add row labels to slick grid?
I guess worst case, I could make a static first column but I was thinking there might be something built-in?
Basically what you need is just a column which you can style and format as you wish with your label content, but the functionality that is currently missing from SlickGrid is support for fixed/frozen columns. There are some forks that have attempted to implement it, but the implementation is incomplete.

Resources