I have a long list of schools that I would like to conditionally format. I would like each school to have a heavy border around and different color bands per school to set if apart. Can this be done in Excel? If so, how? Thank you.
Assuming your data is sorted (it will look pretty ugly if it isn't) select the columns you want to format. Go to conditional formatting > New Rule > Use a formula to determine which cells to format. In the formula field type =IF($B2<>$B1,TRUE,FALSE) and set your format to set the border beneath each school. As for the alternating row colors, depending on how many schools you have do the same steps as above but use =IF($B1="AB Elementary",mod(row(),2),FALSE) in the formula. Repeat for each unique school name.
Related
I don't know much about conditional formatting in Excel. I'd like to be able to use the background color of rows to indicate "groups" of rows. One of the cells (all the same column) determines which "group" the row belongs to. I don't want to associate 1 color per group; instead, I'd like to alternate between 2 (or more?) colors. So, I am content to say, "switch colors when the value of this column changes". (I realize that will only work if I'm sorting on that column, but I am sorting on that column.)
This feels like it should be dead simple, but I haven't been able to figure it out, or even figure out how to google for it.
Here's a solution which doesn't use a helper column:
Rule 1: =MOD(SUMPRODUCT(1/COUNTIF($O$1:$O1,$O$1:$O1)),2)=1
Rule 2: =MOD(SUMPRODUCT(1/COUNTIF($O$1:$O1,$O$1:$O1)),2)=0
Important: This assumes that all instances of account numbers are always grouped together - for example it will fail if O7 is changed to "Account 1". I assume this is not an issue since you are sorting on Column O.
I have a table report in Power BI. I need to change/Set background color of a Cell based on another cell value as follows.
Eg: Row1 - Individual Cell's background color changes to green if corresponding Expected val is reached[85>70].
I found Conditional formatting in tables has this ability. I'm not able to get value of cell and make comparison to achieve color coding.
Please suggest on how to extract value of cell in Power BI to set/change background color.
Currently, PowerBI supports only column based formatting through option Conditional Formatting
https://learn.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting
Row-Based formatting option is not yet available. This feature can be suggested in POWERBI IDEAS forum.
https://ideas.powerbi.com/forums/265200-power-bi-ideas
PowerBI community to connect:
https://community.powerbi.com/
You're in luck! This feature was just added in the May Power BI Desktop update.
Scroll down to the conditional formatting section and it explains how you can format based on a different field.
Here's how you can use the feature I referenced.
First, create new calculated columns that take the difference between the expected value and the actual value. For example,
Diff3 = Marks[Mark3] - Marks[Expected Val]
(You'll need one of these columns for each mark column.)
Now use that column as the value to conditionally format the Mark3 column:
The other columns need to be formatted analogously.
Since they don't currently allow formulas in the rules, I don't think you can simplify this process much further just yet.
Edit
Note that if you unpivot the MarkX columns and the Expected column so the data is shaped like this:
Then you only need a single Diff column:
Diff = Marks[Value] - LOOKUPVALUE(Marks[Value],
Marks[Name], Marks[Name],
Marks[Attribute], "Expected")
This also means you only need to conditionally format the single Value column instead of each MarkX column.
You can also not include the Expected column in the unpivot and get a table like this:
This makes the Diff column simpler:
Diff = Marks[Value] - Marks[Expected]
But then it's difficult to include the Expected column in the matrix visual.
I am attempting to make a calendar in excel that will show when people are out of the office that will highlight the calendar based off the inputs each person makes to the corresponding table. The problem I am running into is how to highlight a cell in the calendar when two or more people are out of the office on that day, the closest I can get is only showing the highlighting for one person or the other, not both.
For example, if person A and person C are both out of the office on 6/1/2019, I would like for that date to show up in a different color than either of the headers for person A or C.
Also, this calendar will be stored in a shared location that automatically disables the use of macros, so I am only able to use formulas and conditional formatting. Thanks for any suggestions!
One thing you can do is to have a separate list in which you have a list of dates and the number of occurrence of each date. Then you should add a conditional-formatting that colors dates with count of more than 1 and change the conditional-formatting of each person and check this count, if it is 1, then you apply the format.
You can use conditional formating with the following formula:
=COUNTIF($AJ$2:$AS$31,AJ2)>1
and apply it to AJ2:AS31
I have an excel file that contains 6 different sheets and every sheet contains some cells that there's text value inside them.
Now, I want to draw a chart that shows how many times a string was revealed in a larger string.
As much as I could find in google search, excel will draw charts based on numeric values,
So, I need to know is there a way that draw a chart based on text with my criteria?
Thanks in advance
UPDATE :
Assume that I have values like this:
And I need to know how many times a string appeared in B cells for every program.
And What if program name was in another sheet and string col was in someone else.?
No, Excel cannot chart anything based on text. You need numbers. In order to get these numbers you can apply different techniques, like formulas or VBA to analyse the text and produce the respective numbers. If you need more detail, provide more detail about your data.
Edit after question update: Consider this screenshot
the formula in C2 is
=ISNUMBER(SEARCH($G$1,B2))*1
The table in columns F and G is a pivot table with "Program" dragged to the rows area and "found" dragged to the values area and set to sum. This table can be used for charting.
If the program and the string are in two different sheets, you can still use formulas to construct a data source for the pivot table.
I have numbers stored in cells D5:S19. Each row of this array represents a specific product, the number in each column represents the cost of this item in a given financial quarter (if the product is not available in a given quarter then the cell is blank):
I'm struggling with setting up a conditional format which will highlight the cells which are adjacent and equal on a row by row basis (excluding the blank cells). I have tried using a formula based around the EXACT function (EXACT($D5,$E5)) for the entire array but this doesn't seem to work at all.
Any pointers here would be greatly appreciated. Thank you.
The way I see it, your highlighted data is going to be in one of three states. It is either:
The first entry of several consecutive entries
The last entry of several consecutive entries
Somewhere in the middle.
This lends itself to three distinct conditional formatting rules, to make sure that the use can distinguish between different sets of consecutive values. These come through as follows:
Notice the borders specified for each rule. We then order the rules in reverse order, and set rule 3 to "Stop if True". This means that left and right borders aren't added to our middle cells, like so:
This results in the following conditional formatting (I have only used a subset of your data)
Here's a text version of each of the rules for you to copy:
=AND(D5<>"",D5=E5)
=AND(D5<>"",D5=C5)
=AND(D5<>"",D5=E5,D5=C5)
Hope this helps!