Excel conditional format by finding text in column - excel

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

Related

Excel / VBA: How to set a conditional number formatting based on another cell value?

I have an excel sheet that I am integrating some VBA code to it, but I am not been able to figure the following out.
On Cell G8 I have a drop-down list where I have the a description of the values on cells G9:G12, which are the following: Percentage, Discount, Premium. And on cells G9:G12 I have empty cells where I input my numbers.
Is it possible when I select for example, Percentage on cell G8, the number formating on cells G9:G12 change to "Percent"? And when I select Discount or Premium, the number formating changes to "Currency"?
Thank you!
Although Bigben is close in this comment (using conditional formatting with a formula like =$G$8="Percentage", it did not work in my case: I needed to put the value of the corresponding text ("Percentage"=1, "Discount"=2 and "Premium"=3), which changes the formula into:
=$G$8=1

How to get Formula Behind Conditional Formatting in Excel

How can I get formula applied behind conditional Formatting for highlighting Cells?
Conditional Formatting is applied based on text in each cell of Test Result column(third column).
Formulas List:
Purpose is to reuse (copy paste) the formula in other sheets.
The formula is shown in your first screenshot. The dialog has the formula in the column "Rule applied (in order shown)". These rules use the out of the box settings to format cells based on their values, so the "formula" is not accessible for editing.
But the format can be copied to other cells very easily.
Here are the steps:
Select the cell with the conditional format and copy it
click the cell where you want to apply the same format
use Paste Special > Format to paste just the format to the selected cell
Edit: If you don't use the built-in conditional formats but instead select "Use a formula to determine ...", you can construct the formulas manually.
There is no automated way to convert the existing out-of-the-box rules to fomulas. You will need to use your human understanding of the logic and appy this to formulas. So, for example, if the selected cell is H3, you can us this formula
=H3="Fail"
and format the cell with red font and light red background. Note that there are no $ signs in the reference to the cell H3. If you copy that format to another cell, it will apply to that other current cell.

How to fill/complete null/zero cells with a fixed number in an Excel table?

I have a table with some null/zero cells of a column.
I would like to replace the null/zero value with a fixed number such as 9999. Is there an automated way to do this in Excel?
If its all about Zero and Null then Try following formula
=IFERROR(1/(1/(E2)),"9999")
You can use any other formula by replacing E2 with your formula
Or you can use Custom Formatting, Select your Table Column, Press CTRL+1 Or Go to Custom Formatting and Click on Custom at the bottom of appeared window and in the custom bar put this format
0;-0;9999;"9999"
Hope it works for you

Excel conditional formatting of adjacent cells from a drop down list

I've been searching around here but I can't find anything quite like what I'm after.
In excel I have one column with a drop down list of a dozen different initials, with conditional formatting on those cells. I would also like to format another column based on those initials, but don't want to set up a dozen rules on each cell, one by one. If I set up the top cell with the correct rules I cannot fill the formatting in because the formula is not updated on a row by row basis, but en bloc for the range.
I have no real experience with VBA or macro's, is there a way to do this more elegantly than brute force?
Thank you very much in advance. This forum has always been a great help, hopefully you can help this, too!
I hope I'm not misunderstanding your question. You can copy the formatting to the other columns if you have set up the format as a formula. For example, if A is your column with initials, and you have a data cell in B2, then you can set a formula in B2 as A2="ER", for example, with the formatting you want, and do the same for the rest of your matches on A2. Then, you can copy the format down column B (unfiltered) using Paste Special Format. You can copy the conditional formats across as long as you make sure that your format in the conditional formatting rule is anchored on column A (i.e., $A2="ER").

Using VBA for Excel i want to make the text bold

I want a macro to find all the words written a column in another excel & make them bold.
For EX: I have Words like new, grow, etc written in a column B of Excel an the macro has to Find theses words individually in another excel & make them bold and change the Background of the cell to Red Color.
Thanks in Advance.
You may want to have a look into conditionnal formatting.
Assume for example you have the values you want to look for in column B, and you want to highlight all values in a range, say, D4:F15.
Select the range D4:F15, make a new formatting rule and choose "Use a formula to determine which cells to format". Enter =ISNUMBER(MATCH(D4;$B:$B)) as formula, and make the format as you wish. Note that D4 in the formula has to be the first cell of the range.
If you don't need more than that, the benefit is that you don't need a macro at all, and the formatting can be done in real time too.

Resources