Excel - Conditionally format one table based on another table - excel

I have a database, where in one column I have the information about if the data was revised or not.
I then have a table that I have built using index/match, to have the data presented as desired.
However, I have tried unsuccessfully to conditionally format the data on the table, so that in case the column "Was revised?" is "Yes", it would show the value in red, as shown below.
Have you ever done anything similar? Did you use a formula in conditional formatting on VBA?
Thank you!

I will suggest converting your data into Excel Tables first. The easiest thing would be using Conditional Formatting in Excel.
However, if you convert your data into Tables, you can write a Macro to highlighted the cells red when the update column says "Yes"

Related

Excel conditional format by finding text in column

I would like to format some data in excel only if the text "hello" appears anywhere in the same column. That is, there should be at least one cell in the same column whose entire content is the text "hello".
In the "format values if this formula is true" box when conditional formatting, I have pasted this:
="COUNTIF(INDIRECT(""C"",FALSE),""hello"")>0"
I have checked it works as a formula in the sheet, but it does not work as the formula for conditional formatting
Is there a way to achieve this?
The background is I am formatting a pivot table, and don't have any control over where the data will sit on my sheet, and no option to use VBA.
Thank you
The formula should be this, and then it works
=COUNTIF(INDIRECT("C",FALSE),"hello")>0

Excel condtional formatting - multipile conditions and search references

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)

Excel conditional formatting for linked cells

I have a an Excel spread sheet which has external links to csv files with some vlookups of other csv files. I want to conditional format cells based on the value but it's not working. I'm assuming because it's checking the field and seeing the formula not the value the formula gives you...
For example:- A field has =MySheet.csv!$A$1:$A$700 I'd like to look up "wibble" and make the box yellow".
Another one has =IFERROR(VLOOKUP(A:A,MySheet.csv!$B:$D,3,FALSE),"") I'd like to look up "wobble" and make the box orange.
Do you have to make it complicated and refer back to the original source for it to work?

Excel Pivot Table Remnants - VBA Solution?

When a pivot table is updated and the number of rows/columns is reduced (the table is contracted), how can I keep the formatting of the previously occupied cells the same as the pivot table background color. Now when the table is contracted the empty cells are blank.
i.e. When the table contracts, I want the cells that used to have data in them to be filled with a certain color.
I'm sure I could use a VBA solution for this with the "Range.Area" method but I would prefer to not use VBA.
Thanks,
Use Conditional Format.
1st select the area to set background
2nd, SetUp the Conditional Format, new rule.
then "Format Only Cells that Contains" (sorry my excel is in spanish lol),
And Select "Blanks"
Set the format you want:
and Aceept!
now you have a nice format:
and if you change options in the pivotTable the format keep looking good. and no VBA is used
hope help you, bye!

Excel: How to do conditional formatting based on two cell values?

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

Resources