This particular question is regarding highlighting dates on a pre-made calendar.
Please see screenshot below:
I need to highlight the cell in the calendar that matches both the task and the date in the data table. For example- see L3 and P4. In the screenshot they are highlighted manually for demonstration.
Can someone please help me out with this. I've been using AND, but screwing up somewhere with the $.
If you aren't entering any data and using this as a visual tool you can spoof the spreadsheet by placing a period into the cell that matches the values you need, and then conditional format based on specific text and enter the period as the text.
This image demonstrates it as two separate tables; One with only the formula used to look for the values, and the second one formatting the background and font to be the same color (effectively hiding the period)
It its definitely a workaround and will only work if this is a visual tool.
Assuming your Data Table goes down to row 7, try entering this Conditional Formatting formula with cell B3 selected:
=COUNTIFS($AI$4:$AI$7,$B3,$AJ$4:$AJ$7,C$2)>0
Related
I've got a bit of an oddball question, and I looked pretty hard to find an answer to no success so apologies in advance if this has already been answered.
Anyways, I have an excel spreadsheet that has every column manually set to a specific color. Now I want to alternate the hues between rows while maintaining the manually-set color. So for example, let's say column A is red and column B is blue. I would want A1 to be dark-red, B1 to be dark-blue. A2 would be light-red, B2 would be light-blue. And so on and so forth alternating until the end of the sheet.
I've thought about sampling the previous cells color and setting the next cells color based on that, but I don't know of any functions that would get me there.
I've looked at macros, and while I can sample a cell's color I cannot figure out how to set it.
I'm currently building the sheet in excel and would like to import it to google sheets when I am complete, so having the spreadsheet formulas or macros be compatible would be great. That being said, I can keep it in excel if I have to so that isn't a must.
Any help would be much appreciated!
you need to set up 4 conditional formatting rules with:
=ISODD(ROW())
=ISEVEN(ROW())
Also, I would suggest you to check this addon with which you can control colors easily just by hex code (#ffda56) https://chrome.google.com/webstore/detail/team-color
TeamColor is a Google Spreadsheet add-on for color management. Type a color code in Hex into a cell. Its background color will change to that color code. This is very useful for sharing color palette with teammates in developing apps, websites and anything else colorful.
You can do it with conditional formatting by selecting the column and then use a custom formula conditional format and enter =isodd(row()) then select your dark hue. Add another conditonal format and enter =iseven(row()) and select your lighter colour.
This method breaksdown when using a filter but you can create a column to count visible rows and then base your conditional formatting formula on that column. Bit more complicated but useful if you need to filter.
Another Sheets option is to apply Alternating colours... (under Format) but this would mean setting the two (or three if including a header of a different hue) colours separately for each column.
I'm trying to highlight rows created within the past 7 day period (since the last time checked). The table is tied to an external source that formats the column based on NOW (i.e., m/d/yyyy h:mm). So far, I found that conditional formatting is quite finicky when using functions.
First, I'll give the two formulas, which are working now. These are both based on a TODAY() format (i.e., mm/dd/yyyy)
1. =today()>$g2 --- this highlights past due items
2. =DATEDIF(TODAY(),$G2,"d")<30 --- this highlights items due within the next 30 days.
Now I need to reference another column (M), which is based on the NOW format mentioned above. I want the whole row formatted, so I can't use the built in functionality. I've used variations of the above, interchanging NOW() and TODAY(). Additionally, I cannot seem to get AND() to work in conditional formatting of an entire row. Any assistance would be greatly appreciated.
Select the entire sheet first, as conditional formatting only works on selected cells.
Make sure all rows in your sheet are selected.
On the Home tab, in the Styles group, click the arrow next to Conditional Formatting > New rule.
In the New Formatting Rule dialog box, click "Use a formula to determine which cells to format".
Under Format values where this formula is true, type the formula: =$M1>TODAY() . (example provided as your required formula was not provided).
The formula uses the TODAY function to see if the dates in column M are greater than today (in the future). If so, the cells are formatted.
Click Format.
In the Color box, select your colour. Use other formatting commands as required.
Click OK until the dialog boxes are closed.
The formatting is applied to column M when the condition is met.
I would be very grateful for help with this conditional formatting problem as I'm terrible with excel but learning.
I have a large data set which I want to count specific OPCS codes (Classification of Interventions and Procedures). The issue is, that in some rows there are multiple OPCS codes that I am searching for and I need to find these rows and then manually decide which is most appropriate so figured highlighting the offending rows would be best.
I previously did this manually by using a simple conditional formatting formula to highlight all the OPCS codes I was interested in, then just scrolled down and made changes. However now I have ~8000 rows which makes this prone to error.
Is it possible for a conditional formatting formula to highlight rows which contains multiple OPCS codes that I am searching for? For reference columns I-U contain the OPCS codes and my lookup OPCS codes I am searching for are in a separate table.
It may be that conditional formatting can't be used for this so alternatives solutions would be much appreciated.
Many thanks!
Spreadsheet image example
I would say this is too complicated to do with a single formula. However, if you are willing to additional 13 columns to your table, can you get the info you need. Let's say you put the first formula in AI2 and fill it across to AU2 and then down to all rows:
=IF(ISERROR(MATCH(I2,$H2:H2,0)),IFERROR(MATCH(I2,TableOfInterestedCodes[OPCS Code Field Name],0),""),"")
This will display only the unique values of any OPCS codes that you are interested in. Now you can apply the conditional formatting formula as follows:
=COUNT($AI2:$AU2)>1
Select the area to be formatted and use the formula shown below (suitably adjusted to your actual layout)
This is what I have created on Excel:
I am trying to publish it on Power BI. I am struggling to find a setting to color specific cells according to what I have created in Excel.
The conditional formatting guide (https://powerbi.microsoft.com/en-us/documentation/powerbi-desktop-conditional-table-formatting/) suggests coloring the cells based on the value, but I want the colors to be static regardless of the values.
Question: How can I choose to color the cells according to my specific requirement?
What you're looking for is called Column Formatting in Power BI. You can find it in the format pane in Table or Matrix visualizations.
However, the best you can do is formatting per column level (and header / total), for font color and background color. Per cell level is not available in Power BI yet. You may consider submit a feature request to Power BI if you want to.
How can I choose to color the cells according to my
specific requirement?
There is an option to develop a custom visual with this behaviour.
There's a table visual template you can use as a start.
Thank you Foxan and user5226582. I am not sure if this answer is appropriate to SO's requirement for an answer, but in the end I did a hacky way of taking a screenshot of the colour without the values from Excel and inserted it as a background image to the table on PowerBI.
For each cell you need to do the following:
extract
column name, and
value in 1st column (HI/CoF ($)) of current row,
take the last symbol from both,
convert it to number and
check resulting values in conditional formatting to determine color.
As an option, you may add both numbers and assign color according to the sum: 2 is green, 14 is red, other colors between. However, it probably wouldn't result in exactly same color matrix as is in your example.
I have a spreadsheet that is used to track the last date a set of logs was downloaded.
We need to take logs at around the 7 day mark if possible (not critical)..
We have approximately 170 assets that we do this to.
The way the spreadsheet is set up the new date is added to an ever expanding list (rather than just overwriting) i have used conditional formatting to show that a date is less than 7 days old but that cell can be 20 columns accross and is still hard to cross reference to the asset number. I want to highlight column A if any other cell in the same row is highlighted (unless you have a less clunky way of doing it, having the date highlighted really is unimportant it is simply as far as i can get on my own.
I even tried doing a sort by cell colour but that seems to require that i pick one coulmn only.
Thanks for your help.
Conditional formatting will do this for you. I used this example:Column A has dates, Columns B and C have miscellaneous gibberish. (click the link to view the image)
Select the entire range of cells you want to follow these rules (possibly just "select all" to be sure you are getting future additions as well, then choose Conditional Formatting from the ribbon.
Conditional Formatting > Use a formula to determine...
Then enter the following code. =TODAY()-$A2<7 Update $A2 with whatever cell contains your first date value, and be sure to put a $ in front of its column reference so that the formula references only your date column and doesn't wander.Code: =TODAY()-$A2<7
Click the "Format" button to set whatever format you like (I chose yellow fill).