Conditional Formatting of Green vs. Green/White, etc; Diagonal Border Not Possible

TheWaterbug

New Member
Joined
Feb 4, 2016
Messages
15
Office Version
  1. 2021
  2. 2019
  3. 2016
  4. 2013
Platform
  1. Windows
  2. MacOS
We are using Ethernet cabling for a non-Ethernet application, and crimping the wires into a giant 96-pin connector. The internal wires in a standard Ethernet cable are colored Orange/White, Orange, Green/White, etc., where each Color and Color/White pair carries a differential signal, so each pair of wires should be kept physically proximate.

We have the customer's pin assignments in an Excel sheet (heavily sanitized, obviously), and I'm trying to map that columnar table on the left into a grid on the right that matches the physical layout of the 96-pin connector, so that the poor soul crimping the wires has a visual reference:

1687311246560.png


The mini-sheet inserted below is only about 1/3 of the table--the diagonal border and the "pattern" in the conditional formatting do not render in the forum, which is why I have the screen capture above. The full .xlsx is linked above:

Cat8_96Pin.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAG
1CountSignal NameGridCable JacketRJ45 PinWire Color
21Signal1_HA1Black_11Org/White
32Signal1_LB1Black_12OrangeJ1 Connector Map
43Signal2_HC1Black_13Grn/White12345678
54Signal2_LD1Black_16GreenSignalJacketWireSignalJacketWireSignalJacketWireSignalJacketWireSignalJacketWireSignalJacketWireSignalJacketWireSignalJacketWire
65Signal3_HE1Black_14BlueASignal1_HBlack_1Org/WhiteSignal5_HBlue_1Org/WhiteSignal11_HGreen_1Org/WhiteSignal20_HPurple_1Org/WhiteSignal23_HRed_1Org/WhiteSignal8_HGray_1Org/WhiteSignal28_HWhite_1Brn/WhiteSignal29_HYellow_1Org/WhiteA
76Signal3_LF1Black_15Blue/WhiteBSignal1_LBlack_1OrangeSignal5_LBlue_1OrangeSignal11_LGreen_1OrangeSignal20_LPurple_1OrangeSignal23_LRed_1OrangeSignal8_LGray_1OrangeSignal28_LWhite_1BrownSignal29_LYellow_1OrangeB
87Signal4_HG1Black_17Brn/WhiteCSignal2_HBlack_1Grn/WhiteSignal6_HBlue_1Grn/WhiteSignal12_HGreen_1Grn/WhiteSignal21_HPurple_1Grn/WhiteSignal24_HRed_1Grn/WhiteSignal9_HGray_1Grn/WhiteSignal32_HWhite_1Org/WhiteSignal30_HYellow_1Grn/WhiteC
98Signal4_LH1Black_18BrownDSignal2_LBlack_1GreenSignal6_LBlue_1GreenSignal12_LGreen_1GreenSignal21_LPurple_1GreenSignal24_LRed_1GreenSignal9_LGray_1GreenSignal32_LWhite_1OrangeSignal30_LYellow_1GreenD
109Signal5_HA2Blue_11Org/WhiteESignal3_HBlack_1BlueSignal7_HBlue_1BlueSignal13_HGreen_1BlueSignal22_HPurple_1BlueSignal25_HRed_1BlueSignal16_HGray_1BlueSignal33_HWhite_1Grn/WhiteSignal31_HYellow_1BlueE
1110Signal5_LB2Blue_12OrangeFSignal3_LBlack_1Blue/WhiteSignal7_LBlue_1Blue/WhiteSignal13_LGreen_1Blue/WhiteSignal22_LPurple_1Blue/WhiteSignal25_LRed_1Blue/WhiteSignal16_LGray_1Blue/WhiteSignal33_LWhite_1GreenSignal31_LYellow_1Blue/WhiteF
1211Signal6_HC2Blue_13Grn/WhiteGSignal4_HBlack_1Brn/WhiteSignal10_HBlue_1Brn/WhiteSignal14_HGreen_1Brn/WhiteSignal26_HPurple_1Brn/WhiteSignal27_HRed_1Brn/WhiteSignal17_HGray_1Brn/WhiteSignal34_HWhite_1BlueSignal35_HYellow_1Brn/WhiteG
1312Signal6_LD2Blue_16GreenHSignal4_LBlack_1BrownSignal10_LBlue_1BrownSignal14_LGreen_1BrownSignal26_LPurple_1BrownSignal27_LRed_1BrownSignal17_LGray_1BrownSignal34_LWhite_1Blue/WhiteSignal35_LYellow_1BrownH
1413Signal7_HE2Blue_14BlueJSignal15_HOrange_1Org/WhiteSignal36_HBlack_2Org/WhiteSignal38_HBlack_2BlueSignal42_HGray_2Org/WhiteSignal44_HGray_2BlueSignal46_HGreen_2Org/WhiteSignal48_HGreen_2BlueSignal50_HOrange_2Org/WhiteJ
1514Signal7_LF2Blue_15Blue/WhiteKSignal15_LOrange_1OrangeSignal36_LBlack_2OrangeSignal38_LBlack_2Blue/WhiteSignal42_LGray_2OrangeSignal44_LGray_2Blue/WhiteSignal46_LGreen_2OrangeSignal48_LGreen_2Blue/WhiteSignal50_LOrange_2OrangeK
1615Signal8_HA6Gray_11Org/WhiteLSignal18_HOrange_1Grn/WhiteSignal37_HBlack_2Grn/WhiteSignal39_HBlack_2Brn/WhiteSignal43_HGray_2Grn/WhiteSignal45_HGray_2Brn/WhiteSignal47_HGreen_2Grn/WhiteSignal49_HGreen_2Brn/WhiteSignal51_HOrange_2Grn/WhiteL
1716Signal8_LB6Gray_12OrangeMSignal18_LOrange_1GreenSignal37_LBlack_2GreenSignal39_LBlack_2BrownSignal43_LGray_2GreenSignal45_LGray_2BrownSignal47_LGreen_2GreenSignal49_LGreen_2BrownSignal51_LOrange_2GreenM
1817Signal9_HC6Gray_13Grn/WhiteNSignal19_HOrange_1BlueSignal40_HBlue_2Org/WhiteSignal41_HBlue_2Grn/White               N
1918Signal9_LD6Gray_16GreenPSignal19_LOrange_1Blue/WhiteSignal40_LBlue_2OrangeSignal41_LBlue_2Green               P
2019Signal10_HG2Blue_17Brn/White12345678
2120Signal10_LH2Blue_18Brown
LVDS
Cell Formulas
RangeFormula
I6:I19,L6:L19,O6:O19,R6:R19,U6:U19,X6:X19,AA6:AA19,AD6:AD19I6=IF(ISERROR(MATCH($H6&I$4,$C$2:$C$103,0)),"",INDEX($B$2:$B$103,MATCH($H6&I$4,$C$2:$C$103,0)))
J6:J19,M6:M19,P6:P19,S6:S19,V6:V19,Y6:Y19,AB6:AB19,AE6:AE19J6=IF(ISERROR(MATCH($H6&I$4,$C$2:$C$103,0)),"",INDEX($D$2:$D$103,MATCH($H6&I$4,$C$2:$C$103,0)))
K6:K19,N6:N19,Q6:Q19,T6:T19,W6:W19,Z6:Z19,AC6:AC19,AF6:AF19K6=IF(ISERROR(MATCH($H6&I$4,$C$2:$C$103,0)),"",INDEX($F$2:$F$103,MATCH($H6&I$4,$C$2:$C$103,0)))
A3:A21A3=A2+1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
K6:K19,N6:N19,Q6:Q19,T6:T19,W6:W19,Z6:Z19,AF6:AF19,AC6:AC19Expression=K6="Org/White"textNO
K6:K19,N6:N19,Q6:Q19,T6:T19,W6:W19,Z6:Z19,AF6:AF19,AC6:AC19Expression=K6 ="Orange"textNO
K6:K19,N6:N19,Q6:Q19,T6:T19,W6:W19,Z6:Z19,AF6:AF19,AC6:AC19Expression=K6 ="Grn/White"textNO
K6:K19,N6:N19,Q6:Q19,T6:T19,W6:W19,Z6:Z19,AF6:AF19,AC6:AC19Expression=K6 ="Green"textNO
K6:K19,N6:N19,Q6:Q19,T6:T19,W6:W19,Z6:Z19,AF6:AF19,AC6:AC19Expression=K6 ="Blue"textNO
K6:K19,N6:N19,Q6:Q19,T6:T19,W6:W19,Z6:Z19,AF6:AF19,AC6:AC19Expression=K6 ="Blue/White"textNO
K6:K19,N6:N19,Q6:Q19,T6:T19,W6:W19,Z6:Z19,AF6:AF19,AC6:AC19Expression=K6="Brn/White"textNO
K6:K19,N6:N19,Q6:Q19,T6:T19,W6:W19,Z6:Z19,AF6:AF19,AC6:AC19Expression=K6 ="Brown"textNO
J6:K19,M6:N19,P6:Q19,S6:T19,V6:W19,Y6:Z19,AE6:AF19,AB6:AC19Expression=LEFT(J6,FIND("_",J6)-1)="White"textNO
J6:K19,M6:N19,P6:Q19,S6:T19,V6:W19,Y6:Z19,AE6:AF19,AB6:AC19Expression=LEFT(J6,FIND("_",J6)-1)="Yellow"textNO
J6:K19,M6:N19,P6:Q19,S6:T19,V6:W19,Y6:Z19,AE6:AF19,AB6:AC19Expression=LEFT(J6,FIND("_",J6)-1)="Red"textNO
J6:K19,M6:N19,P6:Q19,S6:T19,V6:W19,Y6:Z19,AE6:AF19,AB6:AC19Expression=LEFT(J6,FIND("_",J6)-1)="Purple"textNO
J6:K19,M6:N19,P6:Q19,S6:T19,V6:W19,Y6:Z19,AE6:AF19,AB6:AC19Expression=LEFT(J6,FIND("_",J6)-1)="Orange"textNO
J6:K19,M6:N19,P6:Q19,S6:T19,V6:W19,Y6:Z19,AE6:AF19,AB6:AC19Expression=LEFT(J6,FIND("_",J6)-1)="Green"textNO
J6:K19,M6:N19,P6:Q19,S6:T19,V6:W19,Y6:Z19,AE6:AF19,AB6:AC19Expression=LEFT(J6,FIND("_",J6)-1)="Gray"textNO
J6:K19,M6:N19,P6:Q19,S6:T19,V6:W19,Y6:Z19,AE6:AF19,AB6:AC19Expression=LEFT(J6,FIND("_",J6)-1)="Black"textNO
J6:K19,M6:N19,P6:Q19,S6:T19,V6:W19,Y6:Z19,AE6:AF19,AB6:AC19Expression=LEFT(J6,FIND("_",J6)-1)="Blue"textNO
C2:C103Cell ValueduplicatestextNO


When the user enters a Grid value in the left table, the lookup functions in the right table pick up signal name, the cable jacket color, and wire colors with conditional formatting. But diagonal borders are not available in Conditional Formatting, and the horizontal stripes look absolutely terrible. I've tried all the other available patterns, and they all look similarly horrible.

The white diagonal borders in the left table are statically assigned, and that's what I'd prefer, if it were possible.

I need everything in the right table to be the results of formulas, including the formatting, because I need it to update if/when the user updates the Grid assignments in the left table.

Can anyone suggest a different way to conditionally format my Color/White cells in the right table so that they're legible, but still carry the visual impact of the Color/White like the diagonal border would have done? Or a completely different solution that accomplishes the same goal?

VBA is not allowed because we will be sending this document back and forth with the customer.

Thanks!
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Would this be any good for the Org/White?

1687326126147.png



If so, this is how I achieved it in Conditional Formatting:

1687326397909.png
 
Upvote 0
Solution
C'est parfait! I didn't see this because gradient fill isn't available on macOS :cry:

Fortunately I have access to both Mac and Windows, and the rest of the team is on Windows, so I can use this as long as I remember to check everything I do in Windows before I distribute.

Thanks!!!
 
Upvote 0
Looks great!!! Oddly enough if I apply this Format/Conditional Format in Excel/Win and then open it in Excel/Mac, it does render properly; I just can't create it in Excel/Mac:

1687370217174.png
 
Upvote 0
You're welcome. Thanks for the follow-up. :)
I don't have a Mac & wasn't aware some of those options are not available on Mac. Good that it works in both systems once set up though. (y)
 
Upvote 0
You can color cells half/half with two different colored triangles that are sized to fit within a cell.
However, I don't know if you could copy/paste them with CF if you had them in another sheet as template.
Peter would know if that is possible.
A few years ago there was a thread where it was done by macro.
 
Upvote 0
I don't know if you could copy/paste them with CF if you had them in another sheet as template.
CF could not manipulate shapes on the worksheet.
In any case the above direct CF solution looks pretty good to me (other than that perhaps those cells with the white diagonal shading as I suggested that currently have white font might need a black/dark font instead). Don't know if it will matter to the OP but to me this looks a bit easier to read.

1687416307942.png
 
Upvote 0
CF could not manipulate shapes on the worksheet.
In any case the above direct CF solution looks pretty good to me (other than that perhaps those cells with the white diagonal shading as I suggested that currently have white font might need a black/dark font instead). Don't know if it will matter to the OP but to me this looks a bit easier to read.

View attachment 94039
Yes, I changed all the fonts to black!

It looks way better than my original idea with the diagonal border.

I just wish it were a bit easier to create CF rules, e.g. if there were a "copy rule" button. At least in Excel/Mac I can enlarge the CF dialog box and see them all at once:

1687450968353.png


vs.

1687450980778.png


But Excel/Mac doesn't have the "Apply" button, so I can't see how it will look on the whole sheet without OKing and then re-opening the dialog if I want to change things.

I wish Microsoft would just make it look and work the same way on both platforms, like they did way back in Excel 4.0. And get off my lawn!!!!
 
Last edited:
Upvote 0
I think you're right. Peter's solution looks quite a bit better then diagonal triangles would look.
Nice.
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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