Javatpoint Logo
Javatpoint Logo

GOOGLE SHEETS CONDITIONAL FORMATTING ON ANOTHER CELL

Introduction:

Excel restrictive organizing in view of another cell esteem

Excel's predefined restrictive organizing, for example, Information Bars, Variety Scales and Symbol Sets, are chiefly purposed to arrange cells in light of their own qualities. To apply restrictive designing in view of one more cell or configuration a whole line in light of a solitary cell's worth, then you should utilize recipes.

In this way, we should perceive how you can make a standard utilizing an equation and after examine recipe models for explicit undertakings.

How to create a conditional formatting rule based on formula:

To set up a restrictive designing principle in light of an equation in any variant of Succeed 2010 through Succeed 365, do these means:

  • Select the cells you need to organize. You can choose one segment, a few sections or the whole table to apply your contingent configuration to lines.
  • Assuming that you intend to add more information later on and you need the contingent arranging rule to get applied to new passages naturally, you can all things considered:
  • Convert a scope of cells to a table (Supplement tab > Table). For this situation, the restrictive arranging will be naturally applied to every single new line.
  • Select a few void columns beneath your information, say 100 clear lines.
  • On the Home tab, in the Styles bunch, click Restrictive arranging > New Rule
    GOOGLE SHEETS CONDITIONAL FORMATTING ON ANOTHER CELL
  • In the New Designing Guideline window, select Utilize a recipe to figure out which cells to organize.
  • Enter the equation in the relating box.
  • Click the Configuration… button to pick your custom organization.
    GOOGLE SHEETS CONDITIONAL FORMATTING ON ANOTHER CELL
  • Switch between the Text style, Boundary and Fill tabs and play with various choices, for example, textual style, design tone and fill impacts to set up the configuration that turns out best for you.
  • In the event that the standard range doesn't do the trick, click More tones… and pick any RGB or HSL tone as you would prefer. When done, click the alright button.
    GOOGLE SHEETS CONDITIONAL FORMATTING ON ANOTHER CELL
  • Ensure the Review segment shows the configuration you need and in the event that it does, click the alright button to save the standard. On the off chance that you are not exactly content with the organization see, click the Configuration… button once more and make the alters.
  • Ensure the Review segment shows the configuration you need and save the standard.
    GOOGLE SHEETS CONDITIONAL FORMATTING ON ANOTHER CELL

NOTE: Whenever you really want to alter a contingent designing equation, press F2 and afterward move to the required spot inside the recipe utilizing the bolt keys. In the event that you have a go at arrowing without squeezing F2, a reach will be embedded into the recipe as opposed to simply moving the addition pointer. To add a specific cell reference to the equation, press F2 a subsequent time and afterward click that cell.

Excel contingent designing recipe models:

Since it is now so obvious how to make and apply Excel contingent organizing in light of another cell, how about we continue on and perceive how to utilize different Succeed recipes by and by.

  • For your Succeed restrictive organizing equation to work accurately, kindly consistently keep these straightforward guidelines.

Equations to look at values (numbers and text)

As you most likely are aware Microsoft Excel gives a small bunch of prepared to-utilize rules to design cells with values more prominent than, not exactly or equivalent to the worth you determine (Restrictive Organizing >Highlight Cells Rules). Be that as it may, these standards don't work if you need to restrictively design specific segments or whole lines in light of a cell's worth in another section. For this situation, you utilize comparable to recipes:

Condition Formula example
Equal to =$B2=10
Not equal to =$B2<>10
Greater than =$B2>10
Greater than or equal to =$B2>=10
Less than =$B2<10
Less than or equal to =$B2<=10
Between =AND($B2>5, $B2<10)

The screen capture beneath shows an illustration of the More prominent than recipe that features item names in segment An if the quantity of things in stock (section C) is more prominent than 0. If it's not too much trouble, focus that the equation applies to section A main ($A$2:$A$8). However, assuming you select the entire table (for our situation, $A$2:$E$8), this will feature whole lines in view of the worth in section C.

GOOGLE SHEETS CONDITIONAL FORMATTING ON ANOTHER CELL

Likewise, you can make a contingent designing standard to look at upsides of two cells. For instance:

  • =$A2<$B2 - design cells or lines if a worth in section An is not exactly the relating esteem in segment B.
  • =$A2=$B2 - design cells or lines if values in segments An and B are something very similar.
  • =$A2<>$B2 - design cells or lines in the event that a worth in section An isn't equivalent to in segment B.

As you can find in the screen capture underneath, these recipes work for text values as well with respect to numbers.

GOOGLE SHEETS CONDITIONAL FORMATTING ON ANOTHER CELL

What's more, as well as recipes

If you have any desire to arrange your Succeed table in light of at least 2 circumstances, then use either =AND or =OR capability:

Condition Formula Description
If both conditions are met =AND($B2<$C2, $C2<$D2) Formats cells if the value in column B is less than in column C, and if the value in column C is less than in column D.
If one of the conditions is met =OR($B2<$C2, $C2<$D2) Formats cells if the value in column B is less than in column C, or if the value in column C is less than in column D.

In the screen capture underneath, we utilize the recipe =AND($C2>0, $D2="Worldwide") to change the foundation shade of lines if the quantity of things in stock (Segment C) is more prominent than 0 and assuming the item sends around the world (Section D). If it's not too much trouble, focus that the equation works with text values as well similarly as with numbers.

Normally, you can utilize two, three or more circumstances in your AND as well as equations. To perceive how this functions practically speaking, watch Video: Restrictive organizing in view of another phone.

These are the essential restrictive arranging equations you use in Succeed. Presently we should think about somewhat more complicated yet undeniably additional fascinating models.

Restrictive organizing for void and non-void cells

I think everybody knows how to design vacant and not unfilled cells in Succeed - you just make another standard of the "Arrangement just cells that contain" type and pick Spaces or No Spaces.

A standard to organize clear and non-clear cells in Excel

GOOGLE SHEETS CONDITIONAL FORMATTING ON ANOTHER CELL

However, imagine a scenario where you need to design cells in a specific section in the event that a relating cell in another segment is unfilled or not vacant. For this situation, you should use Excel equations once more:

Equation for spaces: =$B2="" - design chosen cells/lines in the event that a comparing cell in Segment B is clear.

Recipe for non-spaces: =$B2<>"" - design chosen cells/lines in the event that a comparing cell in Segment B isn't clear.

NOTE: The recipes above will work for cells that are "outwardly" unfilled or not vacant. Assuming you utilize some Succeed capability that profits a vacant string, for example =if(false,"OK", ""), and you don't maintain that such cells should be treated as spaces, utilize the accompanying equations rather =isblank(A1)=true or =isblank(A1)=false to design clear and non-clear cells, separately.

Example:

Also, here is an illustration of how you can involve the above equations practically speaking. Assume, you have a section (B) which is "Date of Offer" and another segment (C) "Conveyance". These 2 sections have a worth provided that a deal has been made and the thing conveyed. Thus, you believe that the whole column should become orange when you've made a deal; and when a thing is conveyed, a relating line ought to become green.

To accomplish this, you really want to make 2 contingent arranging rules with the accompanying equations:

  • Orange lines (a cell in section B isn't vacant): =$B2<>""
  • Green lines (cells in section B and segment C are not vacant): =AND($B2<>"", $C2<>"")

Another thing for you to do is to move the second rule to the top and select the Stop assuming genuine really take a look at box close to this standard:

GOOGLE SHEETS CONDITIONAL FORMATTING ON ANOTHER CELL

In this specific case, the "Stop if valid" choice is really pointless, and the standard will work regardless of it. You might need to check this crate similarly as an additional safeguard, on the off chance that you add a couple of different guidelines later on that might struggle with any of the current ones.







Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA




news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news