ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Conditional Formatting based on values from other sheet (https://www.excelbanter.com/excel-worksheet-functions/246426-conditional-formatting-based-values-other-sheet.html)

Dmox

Conditional Formatting based on values from other sheet
 
I have two worksheets: Inventory and Status
Status has two columns

A B
Fridge In Stock
Stove Out of Stock
Oven Low Stock

What I would like to do is when sheet2 is modified, "Fridge" for example is
changed from In Stock to Low Stock it searches Sheet1 for the word "Fridge"
and changes the background color to Yellow.

Because "Fridge" can be in any column or row it can't be tied to a specific
cell.

Is there a way to accomplish this through conditional formatting?


Jacob Skaria

Conditional Formatting based on values from other sheet
 
--Select the cells in Status : range ColA and B and name those cells as
myRange..
(Select cellsIn the name box (just above cell A1) type myRange and enter)

--In sheet Inventory select the cells
1. Select the cell/Range (say A1:J10). Please note that the cell reference
A1 mentioned in the formula is the active cell in the selection. Active cell
will have a white background even after selection

2. From menu FormatConditional Formatting
3. For Condition1Select 'Formula Is' and enter the below formula
=VLOOKUP(A1,myRange,2,0)="Low Stock"

4. Click Format ButtonPattern and select your color (say Yellow)
5. Hit OK..this will highlight all cells in sheet Inventory for which the
status is 'Low'



If this post helps click Yes
---------------
Jacob Skaria


"Dmox" wrote:

I have two worksheets: Inventory and Status
Status has two columns

A B
Fridge In Stock
Stove Out of Stock
Oven Low Stock

What I would like to do is when sheet2 is modified, "Fridge" for example is
changed from In Stock to Low Stock it searches Sheet1 for the word "Fridge"
and changes the background color to Yellow.

Because "Fridge" can be in any column or row it can't be tied to a specific
cell.

Is there a way to accomplish this through conditional formatting?


Dmox

Conditional Formatting based on values from other sheet
 
It's working pretty good, but not quite.

If I type in "Fridge" it works great. But if I type in "White Fridge with
black door" it doesn't work. Is there a way to find "Fridge" in a sentence
or a String?

"Jacob Skaria" wrote:

--Select the cells in Status : range ColA and B and name those cells as
myRange..
(Select cellsIn the name box (just above cell A1) type myRange and enter)

--In sheet Inventory select the cells
1. Select the cell/Range (say A1:J10). Please note that the cell reference
A1 mentioned in the formula is the active cell in the selection. Active cell
will have a white background even after selection

2. From menu FormatConditional Formatting
3. For Condition1Select 'Formula Is' and enter the below formula
=VLOOKUP(A1,myRange,2,0)="Low Stock"

4. Click Format ButtonPattern and select your color (say Yellow)
5. Hit OK..this will highlight all cells in sheet Inventory for which the
status is 'Low'



If this post helps click Yes
---------------
Jacob Skaria


"Dmox" wrote:

I have two worksheets: Inventory and Status
Status has two columns

A B
Fridge In Stock
Stove Out of Stock
Oven Low Stock

What I would like to do is when sheet2 is modified, "Fridge" for example is
changed from In Stock to Low Stock it searches Sheet1 for the word "Fridge"
and changes the background color to Yellow.

Because "Fridge" can be in any column or row it can't be tied to a specific
cell.

Is there a way to accomplish this through conditional formatting?


Dmox

Conditional Formatting based on values from other sheet
 
If I type in "Fridge" it works great. But if I type in "White Fridge with
black door" it doesn't work. Is there a way to find "Fridge" in a sentence
or a String?

"Jacob Skaria" wrote:

--Select the cells in Status : range ColA and B and name those cells as
myRange..
(Select cellsIn the name box (just above cell A1) type myRange and enter)

--In sheet Inventory select the cells
1. Select the cell/Range (say A1:J10). Please note that the cell reference
A1 mentioned in the formula is the active cell in the selection. Active cell
will have a white background even after selection

2. From menu FormatConditional Formatting
3. For Condition1Select 'Formula Is' and enter the below formula
=VLOOKUP(A1,myRange,2,0)="Low Stock"

4. Click Format ButtonPattern and select your color (say Yellow)
5. Hit OK..this will highlight all cells in sheet Inventory for which the
status is 'Low'



If this post helps click Yes
---------------
Jacob Skaria


"Dmox" wrote:

I have two worksheets: Inventory and Status
Status has two columns

A B
Fridge In Stock
Stove Out of Stock
Oven Low Stock

What I would like to do is when sheet2 is modified, "Fridge" for example is
changed from In Stock to Low Stock it searches Sheet1 for the word "Fridge"
and changes the background color to Yellow.

Because "Fridge" can be in any column or row it can't be tied to a specific
cell.

Is there a way to accomplish this through conditional formatting?



All times are GMT +1. The time now is 07:14 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com