Conditional Formatting on Sum of Two Columns in Excel - excel

I have two conditional formatting rules. One highlights the minimum value of the column and works correctly (Column B). I want to also highlight the adjacent columns within the same row (Columns D and E). Columns D and E in the same row will always add up to the value in columns B.
Essentially, I need equivalent code to be put into the conditional formatting field that resembles this:
=($B$175=($D$175+$E$175)) AND $B$175=MIN($B$175:$B$190)
=SMALL($B$175:$B190,1)
This will incorrectly fill any item in column D that matches the minimum of column B.
=SMALL($D$175:$E$190,COUNTIF($D$175:$E$190,0)+1)<br>
This will incorrectly fill the minimum of column between columns D and E.
=$B$175=($D$175+$E$175) or <br>
=SMALL(($D$175:$D$190)+($E$175:$E$190), 1)
This will incorrectly fill all rows of columns D and E.
=$B$175=MIN(($D$175:$D$190)+($E$175:$E$190), 1)<br>
This will not fill any rows column between columns D and E.
I know I'm close, but can't seem to figure it out!

You just need to check that the value in B is the SMALL of $B$175:$B$190. You don't need to consider the sum of E and F.
=$B175=SMALL($B$175:$B190,1)

Related

Search the Alphanumeric values from column C's each cell in column D's each cell if found mark/highlight in column D or column E

Search alphanumeric serial numbers from column C's every row in column D, which is having a string in each row and after finding give some mark to that row(eg. highlight with color)
Give some type of highlight to column D where serial number matched with column C.
Column C has more than 8000 entries and column D has around 2500 entries.
EXAMPLE
Using Conditional Formatting I'm using the following formula
=IFERROR(FIND($C1,$D1),-1)>0
and formatted it to fill with a colour if True
or even better you can use the formula from #Plutian below which will ignore where both cells in columns C and D are blank
=SUMPRODUCT(--ISNUMBER(SEARCH($C1,$D1)))>0
I've then applied it to the range I want it to work on
Giving the following results
Update after comments:
For column C use the following conditional formatting formula
=IFNA(MATCH("*"&C1&"*",$D$1:$D$3,0),-1)>0
and for column D use
=SUMPRODUCT(COUNTIF(D1,"*"&$C$1:$C$3&"*"))>0
Giving:

Conditional formatting on pivot table that will compare one column (column C) with previous column (Column B)

Trying to do conditional formatting on pivot table that will compare one column (column C) with previous column (Column B) and if Column C is a percent higher/lower than Column B then the cell should turn Green or Red. Would like this to work across pivot (each column is weeks)."
I have tried using a formula =$C2>=$B2, but this will only work on the 2 columns selected and also only based on the numbers not a percentage
One approach could be this:
I calculate the difference between the two values.
Then I check if that difference is larger than 1%.
I make it to a TRUE/FALSE statement as conditional formatting only accept this kind of return value.
So for green values:
=IF($C4<>"",OR((($C4/$B4)-1)>=0.01,$C4=$B4),FALSE)
To deal with empty values in column B, as 1/0 is not possible.
=IF(AND(ISBLANK($B4),$C4<>""),OR((($C4/0.01)-1)>=0.01,$C4=$B4),FALSE)
And then for the Red Values
=AND((($C4/$B4)-1)<0.01,$C4<>"",$B4<>"")
See example below:

Excel Conditional Formating: Comparing columns of data?

Background:
I have two columns D and J which are supposed to contain the same value.
Column D is a Calculation (e.g. =ROUND(1.704 * 1.989437,2)
Column J is a VLOOKUP of the static value, that should match D (e.g. 3.39)
Question:
How do I compare the 2500+ rows to see if the values match in the corresponding cells, or that D = J, with formatting? (I have another column P that contains whether they are the same, but I want the value in D to be highlighted.)
Create a conditional formatting rule =$D2=$J2 in while D2 being highlighted, and change the "applies to" from D2 to D2:D2502, assmuming you have values starting in row 2.
Or =$D2<>$J2 if you want to show them not matching.

Excel - keep common dates

Column A has a set of dates, column B has an exchange rate for every cell in column A.
Similarly, column C has a set of dates while column D has an exchange rate for every cell in column C.
However, the set of dates in A and C is not the same.
I want to keep the common dates in both rows and their corresponding rates in the other two rows.
How can I do this?
Use the vlookup function in column E where the key is the date in column C, and the lookup range is columns A and B, use a column index of 2 (so it displayes the rate from column B) and make sure that the final argument is false so that it finds the exact value. This will return a #N/A for dates that are not also in column A.
Next, copy column C, and paste values. This will hardcode the values that the formula displays. Now you can delete all rows that have #N/A in column E, and you are left the data you want in columns C to E.

If "x" is in column A and "y" is in column B, I want column C to be 5. I have a list of about 190 values. What is the most efficient way to do this?

I have a list of 190 column c values that correspond to specific column a and column b values. I created a huge if statement, but excel says it's too large and I keep messing up parentheses. What is a more efficient way to solve this problem? For example, if column A is "United" and column B is "Brain", I want column C to be 150. All for the first value. Thank you.
If your data is in column A and B. Use concatenate in column C:
Concatenate(A1, B1)
Then in your sheet with the values, insert a column between the values column and the two criteria columns. Use concatenate in that column as well (sane formula as above).
Then on the first sheet in column D use the formula:
vlookup(C1, Sheet2!C1:D190, 2, false)
This is assuming your second sheet is sheet 2 yadda yadda.
Let me know if you run into an issue!

Resources