How to change cell colors when another cell is affected

samk379

New Member
Joined
Nov 8, 2024
Messages
18
Office Version
  1. 2021
Platform
  1. Windows
I'm working on setting up a work order tracking system for a small shop. I was able to get to the point where an order is scanned and then the location is scanned and that data is inputted into a table (the two-column table on the right side of the sheet). I also have another table set up that is a better visual measure of progress. If order THD0001 is at the WELD2 station, for example, the cell at the intersection of the THD0001 row and the WELD2 column fills green. Right now, when the order moves along to the next step, it blanks the previous cell and fills in the cell of the new location. Is there a way I can make it so that the previous cell fills in black so that we could see which orders required which steps? In other words, if the order goes from WELD2 to ASSEMBLY, the cell for WELD2 is filled black.
I am also wondering if there is a way that when an order is scanned as complete, the date and/or time of that scan shows in the COMPLETE column, but this is less important to the system function.

Any help would be greatly appreciated, thank you!
Work Order Status Sheet.xlsm
ABCDEFGHIJKLMNOPQRSTUV
1Barcode Reader
2
3Order
4Location
5
6
7OrderDateDue DateDEBURRCNCPLASMAPRESSBRAKESAWLATHE1LATHE2MACHININGDRILLTACKWELD1WELD2GRINDPAINTASSEMBLYCOMPLETEOrderLocation
8TFD0012TFD0012CNCPLASMA
9CHD0036CHD0036SAW
10GD0009GD0009MACHINING
11LE0012LE0012DEBURR
12HK0001HK0001DEBURR
13THD0001THD0001WELD2
Reader
Cell Formulas
RangeFormula
B8:B13B8=U8
Named Ranges
NameRefers ToCells
Orders=OrdersTable[Order]B8
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E8:S1612Expression=VLOOKUP($B8,$U:$V,2,0)=E$7textNO
E8:S1612Expression=COLUMN()<MATCH($V8,$A$7:$S$7,0)textNO
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Does this get you started?

Book2
ABCDEFGHIJKLMNOPQRSTUV
1Barcode Reader
2
3Order
4Location
5
6
7OrderDateDue DateDEBURRCNCPLASMAPRESSBRAKESAWLATHE1LATHE2MACHININGDRILLTACKWELD1WELD2GRINDPAINTASSEMBLYCOMPLETEOrderLocation
8TFD0012TFD0012CNCPLASMA
9CHD0036CHD0036SAW
10GD0009GD0009MACHINING
11LE0012LE0012DEBURR
12HK0001HK0001DEBURR
13THD0001THD0001WELD2
Sheet1
Cell Formulas
RangeFormula
B8:B13B8=U8
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E8:S13Expression=IFERROR(MATCH(VLOOKUP($B8,$U:$V,2,FALSE),F$7:$S$7,0)>0,FALSE)textNO
E8:S14Expression=VLOOKUP($B8,$U:$V,2,0)=E$7textNO
 
Upvote 0
For the other part, the date would have to entered by a macro. A Worksheet_Change macro to test the entered values at Order and Location. Or a button to call a macro. What gets entered from the barcode reader, both Order and Location?
 
Upvote 0
Does this get you started?

Book2
ABCDEFGHIJKLMNOPQRSTUV
1Barcode Reader
2
3Order
4Location
5
6
7OrderDateDue DateDEBURRCNCPLASMAPRESSBRAKESAWLATHE1LATHE2MACHININGDRILLTACKWELD1WELD2GRINDPAINTASSEMBLYCOMPLETEOrderLocation
8TFD0012TFD0012CNCPLASMA
9CHD0036CHD0036SAW
10GD0009GD0009MACHINING
11LE0012LE0012DEBURR
12HK0001HK0001DEBURR
13THD0001THD0001WELD2
Sheet1
Cell Formulas
RangeFormula
B8:B13B8=U8
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E8:S13Expression=IFERROR(MATCH(VLOOKUP($B8,$U:$V,2,FALSE),F$7:$S$7,0)>0,FALSE)textNO
E8:S14Expression=VLOOKUP($B8,$U:$V,2,0)=E$7textNO
Very close, but I need it so that it fills in only the steps that were completed before, rather than filling in every step before. The reason for this is that some jobs won't require every step, so it would be nice to see which jobs required which steps.
Work Order Status Sheet.xlsm
ABCDEFGHIJKLMNOPQRSTUV
1Barcode Reader
2
3Order
4Location
5
6
7OrderDateDue DateDEBURRCNCPLASMAPRESSBRAKESAWLATHE1LATHE2MACHININGDRILLTACKWELD1WELD2GRINDPAINTASSEMBLYCOMPLETEOrderLocation
8TFD0012TFD0012CNCPLASMA
9CHD0036CHD0036SAW
10GD0009GD0009MACHINING
11LE0012LE0012DEBURR
12HK0001HK0001DEBURR
13THD0001THD0001WELD2
Reader
Cell Formulas
RangeFormula
B8:B13B8=U8
Named Ranges
NameRefers ToCells
Orders=OrdersTable[Order]B8
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E8:S1612Expression=VLOOKUP($B8,$U:$V,2,0)=E$7textNO
E8:S1612Expression=COLUMN()<MATCH($V8,$A$7:$S$7,0)textNO
 
Upvote 0
On my version all the cells to the left of a green cell are black. Please check your formula again
 
Upvote 0
On my version all the cells to the left of a green cell are black. Please check your formula again
I understand, I just made a version of what I would like it to look like by manually filling cells. I'm just wondering if there's a type of formula that will make it look like the example I posted as the job moves along.
 
Upvote 0
A couple of things:
This Conditional formula doesn't show the text right. It should be formatted black fill in the CF format. XL2BB is not working properly to show it.
=IFERROR(MATCH(VLOOKUP($B8,$U:$V,2,FALSE),F$7:$S$7,0)>0,FALSE)

And this is what you have for the formula
=COLUMN()<MATCH($V8,$A$7:$S$7,0)

Please add in the CF formula I provided for the black cells

Book2
ABCDEFGHIJKLMNOPQRSTUV
1Barcode Reader
2
3Order
4Location
5
6
7OrderDateDue DateDEBURRCNCPLASMAPRESSBRAKESAWLATHE1LATHE2MACHININGDRILLTACKWELD1WELD2GRINDPAINTASSEMBLYCOMPLETEOrderLocation
8TFD0012TFD0012CNCPLASMA
9CHD0036CHD0036SAW
10GD0009GD0009MACHINING
11LE0012LE0012DEBURR
12HK0001HK0001COMPLETE
13THD0001THD0001WELD2
Sheet1
Cell Formulas
RangeFormula
B8:B13B8=U8
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E8:S13Expression=VLOOKUP($B8,$U:$V,2,0)=E$7textNO
E8:S13Expression=IFERROR(MATCH(VLOOKUP($B8,$U:$V,2,FALSE),F$7:$S$7,0)>0,FALSE)textNO
 
Upvote 0
A couple of things:
This Conditional formula doesn't show the text right. It should be formatted black fill in the CF format. XL2BB is not working properly to show it.
=IFERROR(MATCH(VLOOKUP($B8,$U:$V,2,FALSE),F$7:$S$7,0)>0,FALSE)

And this is what you have for the formula
=COLUMN()<MATCH($V8,$A$7:$S$7,0)

Please add in the CF formula I provided for the black cells

Book2
ABCDEFGHIJKLMNOPQRSTUV
1Barcode Reader
2
3Order
4Location
5
6
7OrderDateDue DateDEBURRCNCPLASMAPRESSBRAKESAWLATHE1LATHE2MACHININGDRILLTACKWELD1WELD2GRINDPAINTASSEMBLYCOMPLETEOrderLocation
8TFD0012TFD0012CNCPLASMA
9CHD0036CHD0036SAW
10GD0009GD0009MACHINING
11LE0012LE0012DEBURR
12HK0001HK0001COMPLETE
13THD0001THD0001WELD2
Sheet1
Cell Formulas
RangeFormula
B8:B13B8=U8
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E8:S13Expression=VLOOKUP($B8,$U:$V,2,0)=E$7textNO
E8:S13Expression=IFERROR(MATCH(VLOOKUP($B8,$U:$V,2,FALSE),F$7:$S$7,0)>0,FALSE)textNO
I got it to the point where you did, with each cell to the left of the green cell filled black. If this is all that is possible, that's fine, but I'm wondering if there's a way to make it so that only the cells that were previously filled green are filled black. For example, a job that went through DEBURR, MACHINING, WELD1, ASSEMBLY, and COMPLETE, would have COMPLETE filled in green and DEBURR, MACHINING, WELD1, and ASSEMBLY would be filled in black, and the steps that weren't utilized are left blank.
Work Order Status Sheet.xlsm
ABCDEFGHIJKLMNOPQRSTUV
1Barcode Reader
2
3Order
4Location
5
6
7OrderDateDue DateDEBURRCNCPLASMAPRESSBRAKESAWLATHE1LATHE2MACHININGDRILLTACKWELD1WELD2GRINDPAINTASSEMBLYCOMPLETEOrderLocation
8TFD0012TFD0012CNCPLASMA
9CHD0036CHD0036SAW
10GD0009GD0009MACHINING
11LE0012LE0012DEBURR
12HK0001HK0001DEBURR
13THD0001THD0001WELD2
Reader
Cell Formulas
RangeFormula
B8:B13B8=U8
Named Ranges
NameRefers ToCells
Orders=OrdersTable[Order]B8
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E8:S1612Expression=VLOOKUP($B8,$U:$V,2,0)=E$7textNO
E8:S1612Expression=IFERROR(MATCH(VLOOKUP($B8,$U:$V,2,FALSE),F$7:$S$7,0)>0,FALSE)textNO
 
Upvote 0
Are you keeping that history in columns A:V (Order / Location)?

Yes, it is possible.

Just between you, me, and the fence post (and maybe a million people lookng at this); I never ask if Excel can do it, I assume that it can. :)
 
Upvote 0
Are you keeping that history in columns A:V (Order / Location)?

Yes, it is possible.

Just between you, me, and the fence post (and maybe a million people lookng at this); I never ask if Excel can do it, I assume that it can. :)
I'm not keeping that history, how can I do that?
 
Upvote 0

Forum statistics

Threads
1,226,112
Messages
6,189,040
Members
453,521
Latest member
Chris_Hed

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top