TabletWise.com
 

Conditional Formatting: Formula Based w. AND() - 2-way Input Coloring

5 minutes
Share the link to this page
Copied
  Completed
You need to purchase the class to view this lesson.
One-time Purchase
$99.99
List Price:  $139.99
You save:  $40
د.إ367.26
List Price:  د.إ514.18
You save:  د.إ146.92
A$139.71
List Price:  A$195.60
You save:  A$55.89
৳8,480.01
List Price:  ৳11,872.36
You save:  ৳3,392.34
CA$133.83
List Price:  CA$187.37
You save:  CA$53.54
CHF 91.26
List Price:  CHF 127.77
You save:  CHF 36.51
kr631.94
List Price:  kr884.75
You save:  kr252.80
€84.81
List Price:  €118.74
You save:  €33.93
£76.62
List Price:  £107.27
You save:  £30.65
HK$774.97
List Price:  HK$1,084.99
You save:  HK$310.02
₹7,501.82
List Price:  ₹10,502.85
You save:  ₹3,001.03
RM418.70
List Price:  RM586.20
You save:  RM167.50
₦37,846.21
List Price:  ₦52,986.21
You save:  ₦15,140
kr904.14
List Price:  kr1,265.84
You save:  kr361.69
NZ$151.39
List Price:  NZ$211.96
You save:  NZ$60.56
₱4,907.19
List Price:  ₱6,870.27
You save:  ₱1,963.07
₨16,788.32
List Price:  ₨23,504.32
You save:  ₨6,716
S$137.26
List Price:  S$192.17
You save:  S$54.91
฿3,121.96
List Price:  ฿4,370.86
You save:  ฿1,248.90
₺729.33
List Price:  ₺1,021.10
You save:  ₺291.76
R1,763.59
List Price:  R2,469.09
You save:  R705.50
Already have an account? Log In

Transcript

Hi, I'm going to share an amazing ninja trick with respect to conditional formatting, and that will make your colleagues envy. We will see how a particular formula based Conditional Formatting can help us prepare this dashboard. We have a data in the vertically placed information in gummy, and that talks about branch one till 10 and four quarters and numbers how have they performed in terms of profitability. Now, they are two sales. The first one allows you to choose the branch the second one allows you to choose the quarter. Now we had seen in one of our earlier videos how v lookup match how we look up match helps you populate this answer with says branch eight quarter 306.

So if you want to know how the formula is built, what is the logic behind it, please refer our earlier videos. But right now my objective is that whenever you are choosing a certain selection from the drop down, it not only gives you the number using the lookup match, but also highlights that cell. Now, there are two strategies. Now one strategy that I follow if I choose branch one, and it says quarter 406 all the answer is 992. But the erroneous technique highlights all these two cells which contain 992. So, we will see what not to do and what to do, how to prepare this dashboard.

Let me go to exercise sheet one. Let me make sure the view of the screen is perfect. Now, once having done so, let me choose the entire block. First let me show you what not to do. After having chosen the data. I go to Conditional Formatting new rule and the second option in which I I specify the format only cells with cell value cell value equal to equal to what equal to the cell which two we look up match is giving you that answer.

Let me give a format color Okay. Now the logic means that amongst the given set of values, variable T 63 appears it will color the cells. And that's where the problem lies. You do not want to color all the instances of 363 you only want to color the ones which are falling under branch three quarter 206. This is something what we will not do. So first I will clear all the rules from the entire sheet and then guide you what to do next.

Let me choose the data again. This time we'll be applying formula based conditional formatting. Let us go to conditional formatting, new rule. And the last option which allows you to post a formula the formula should be such that the answer must be arrived in terms of true and false. Now since there are two condition conditions based on two input values, which helps decide what is the location of the cell that needs to be colored, I will be using the formula and starting with the first question, question number one. Since I choose seven through onwards, I will choose branch one cell Now you would want that this should be compared, all these values should be compared with the first input.

So the column should not shift, but rows can move down. So that branch 1234567, all of them can be combined. So take a few seconds and think, what dollar combination Should I apply here dollar a seven $8, seven or dollar $1? Seven. Keep in mind that you have to move this selection down internally for conditional formatting to be able to apply and compare this particular format for conditional formatting to be able to work correctly. Yep, you would have guessed correctly by now.

So I press f4 f4. Ensuring dollar f7 is that equal to ensure that you put the equal sign equal equal what the first input cell that has to be fully fixed, I don't want the cell to move anywhere around the user input with respect to branch name is only to be entered here. That was my first condition. Let me put a comma and this time Let me choose the first quarter, why am I choosing the first quarter? Because your selection in terms of column had started from column B. And hence, I'm not choosing some other columns, quarter name, quarter 106.

How would I fix this so that this moves sideways, but not down, the selection of the first blank cell, or 106 is able to move sideways. So b2c, when will that happen? If you keep this B dollar six, this is one of the most crucial points of the entire exercise B dollar six is that equal to equal to the second input cell which I keep is fixed, I close the bracket, I could format and apply my desired column. Okay. And I press OK. Instantly, you see the result which you had wanted, so it's not any 363 that is getting highlighted. It's only that 363 or the sell getting highlighted, which falls into quarter 206 and branch number three If you want to do a post mortem analysis then please go back to conditional formatting, Manage Rules.

First you need to tell Excel that you want to show formatting rules for this particular worksheet. And then after having found so, then you can say, edit rule. So there you go. This was Conditional Formatting using formula

Sign Up