Conditional formatting

MCB1973

New Member
Joined
Jun 12, 2023
Messages
10
Office Version
  1. 365
Platform
  1. Windows
Hi All,

i need some help please, what i need to do is when a number is entered into Col G, i need Col A to change color, BUT the issue I have is the data is floating in COL C-F, so this changed depending on the event registered, this there any way to change the color in COL C if it moves a line with out changing the fixed data in COL G, any help would be appreciated.



C D E F G
1687821951502.png
 
ok, so back to your orginal post
what i need to do is when a number is entered into Col G, i need Col A to change color, BUT the issue I have is the data is floating in COL C-F, so this changed depending on the event registered, this there any way to change the color in COL C if it moves a line with out changing the fixed data in COL G, any help would be appreciated.

your sample has 4 sheets
overspeed - A&B are black
driver data - G has test/aaa otherwise ALL zeros - so - not sure what examples you have - showing the input in g and expected colour of a


what sheet do you want the conditional formatting added to

still confused , even with a test sheet
but still need examples and a full explanation

i can put the sheet on the forum with XL2BB - once i know what sheet you are using
 
Upvote 0

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
ok, so back to your orginal post


your sample has 4 sheets
overspeed - A&B are black
driver data - G has test/aaa otherwise ALL zeros - so - not sure what examples you have - showing the input in g and expected colour of a


what sheet do you want the conditional formatting added to

still confused , even with a test sheet
but still need examples and a full explanation

i can put the sheet on the forum with XL2BB - once i know what sheet you are using
ok so the main sheet is what i need to able to match Col G with Col A and change COL A color, but as the data changes say for instance , 1818 and 2022D changed positions the issue is getting the formatting to follow COL A with COL G Data being fixed data.... hope that makes sense?

The highest number should be on on the top in COL F as well, unfortunately some of the data got stuffed up when it was placed in DOC's, i have corrected this error


1688021565212.png
 
Upvote 0
the main sheet ?
that the sheet named - overspeeds ??? otherwise i dont know which you class as main sheet
using the image you have shown

Col G with Col A and change COL A color,
column A has nothing in to match , and is just like a black border
1818 and 2022D changed positions the issue is getting the formatting to follow COL A with COL G Data being fixed data.... hope that makes sense?
Column C has those values in , so not sure about column A
Column G is just yellow

really trying to help, but i'm just not following , remember i know very little about your spreadsheet setup - so need to refer to sheet names (not main sheet) and columns in that sheet name
added as a XL2BB here

Overspeed Report - Test Sheet (1).xlsx
ABCDEFGHIJKLMN
1 Driver Overspeed Report
2
3# Events 105km/h & Less than 110km/hEvents 110km/h & Over
4
5FleetDriverDepot 105 & overEnter Truck No. Sentinel Message Sent to:Enter Truck No. of Truck Called After 20 Events:Fleet Driver Events over 200km/h will not show on this report Depot110 & overEnter Truck No. of Truck Called After 2 Events:
6  (D/L:)  0 (D/L:)00
7 2202D AAA (D/L:123DEF)AAA2170 (D/L:)00
81818TEST (D/L:ABC123)TEST350 (D/L:)00
90 (D/L:)000 (D/L:)00
100 (D/L:)000 (D/L:)00
110 (D/L:)000 (D/L:)00
120 (D/L:)000 (D/L:)00
130 (D/L:)000 (D/L:)00
140 (D/L:)000 (D/L:)00
150 (D/L:)000 (D/L:)00
160 (D/L:)000 (D/L:)00
170 (D/L:)000 (D/L:)00
180 (D/L:)000 (D/L:)00
190 (D/L:)000 (D/L:)00
200 (D/L:)000 (D/L:)00
Overspeeds
Cell Formulas
RangeFormula
C6:C20C6=Data2!H2
D6:D20D6=Data2!I2&" "&"(D/L:"&Data2!J2&")"
E6:E20E6=Data2!K2
F6:F20F6=Data2!G2
J6:J20J6=Data2!T3
K6:K20K6=Data2!U3&" "&"(D/L:"&Data2!V3&")"
L6:L20L6=Data2!W3
M6:M20M6=Data2!S3
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G6:G166Expression=F6>=5textNO
F6:F166Cell Value>=20textNO
F6:F166Cell Value>=5textNO
N6:N132Expression=M6>=5textNO
M6:M132Cell Value>=5textNO
H6:H166Expression=F6>=20textNO
N6:N132Expression=M6>=2textNO
G6:G166Celldoes not contain a blank value textNO
H6:H166Celldoes not contain a blank value textNO
C6:F166Cell Value=0textNO
J6:J132Expression=M6=0textNO
K6:K132Expression=M6=0textNO
L6:L132Expression=M6=0textNO
J6:M132Cell Value=0textNO
C9Expression=$F$9>=20textNO
C9Expression=$F$9>=5textNO
C6:C30Expression=$F$6>=20textNO
C7:C30Expression=$F$7>=20textNO
C8Expression=$F$8>=20textNO
C8Expression=$F$8>=5textNO
C10Expression=$F$10>=20textNO
C10Expression=$F$10>=5textNO
C11Expression=$F$11>=20textNO
C11Expression=$F$11>=5textNO
C12Expression=$F$12>=20textNO
C12Expression=$F$12>=5textNO
C13Expression=$F$13>=5textNO
C14Expression=$F$14>=5textNO
C15Expression=$F$15>=5textNO
C16Expression=$F$16>=5textNO
C17Expression=$F$17>=5textNO
C18Expression=$F$18>=5textNO
C19Expression=$F$19>=5textNO
C20Expression=$F$20>=5textNO
C6:C132Expression=F6<=9textNO
C6:C29Expression=$F$6>=5textNO
C7Expression=$F$7>=5textNO
C8Expression=$F$8>=5textNO
C9Expression=$F$9>=5textNO
C6:C166Expression=AND(G6 <> "" )textNO
 
Upvote 0
the main sheet ?
that the sheet named - overspeeds ??? otherwise i dont know which you class as main sheet
using the image you have shown


column A has nothing in to match , and is just like a black border

Column C has those values in , so not sure about column A
Column G is just yellow

really trying to help, but i'm just not following , remember i know very little about your spreadsheet setup - so need to refer to sheet names (not main sheet) and columns in that sheet name
added as a XL2BB here

Overspeed Report - Test Sheet (1).xlsx
ABCDEFGHIJKLMN
1 Driver Overspeed Report
2
3# Events 105km/h & Less than 110km/hEvents 110km/h & Over
4
5FleetDriverDepot 105 & overEnter Truck No. Sentinel Message Sent to:Enter Truck No. of Truck Called After 20 Events:Fleet Driver Events over 200km/h will not show on this report Depot110 & overEnter Truck No. of Truck Called After 2 Events:
6  (D/L:)  0 (D/L:)00
7 2202D AAA (D/L:123DEF)AAA2170 (D/L:)00
81818TEST (D/L:ABC123)TEST350 (D/L:)00
90 (D/L:)000 (D/L:)00
100 (D/L:)000 (D/L:)00
110 (D/L:)000 (D/L:)00
120 (D/L:)000 (D/L:)00
130 (D/L:)000 (D/L:)00
140 (D/L:)000 (D/L:)00
150 (D/L:)000 (D/L:)00
160 (D/L:)000 (D/L:)00
170 (D/L:)000 (D/L:)00
180 (D/L:)000 (D/L:)00
190 (D/L:)000 (D/L:)00
200 (D/L:)000 (D/L:)00
Overspeeds
Cell Formulas
RangeFormula
C6:C20C6=Data2!H2
D6:D20D6=Data2!I2&" "&"(D/L:"&Data2!J2&")"
E6:E20E6=Data2!K2
F6:F20F6=Data2!G2
J6:J20J6=Data2!T3
K6:K20K6=Data2!U3&" "&"(D/L:"&Data2!V3&")"
L6:L20L6=Data2!W3
M6:M20M6=Data2!S3
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G6:G166Expression=F6>=5textNO
F6:F166Cell Value>=20textNO
F6:F166Cell Value>=5textNO
N6:N132Expression=M6>=5textNO
M6:M132Cell Value>=5textNO
H6:H166Expression=F6>=20textNO
N6:N132Expression=M6>=2textNO
G6:G166Celldoes not contain a blank value textNO
H6:H166Celldoes not contain a blank value textNO
C6:F166Cell Value=0textNO
J6:J132Expression=M6=0textNO
K6:K132Expression=M6=0textNO
L6:L132Expression=M6=0textNO
J6:M132Cell Value=0textNO
C9Expression=$F$9>=20textNO
C9Expression=$F$9>=5textNO
C6:C30Expression=$F$6>=20textNO
C7:C30Expression=$F$7>=20textNO
C8Expression=$F$8>=20textNO
C8Expression=$F$8>=5textNO
C10Expression=$F$10>=20textNO
C10Expression=$F$10>=5textNO
C11Expression=$F$11>=20textNO
C11Expression=$F$11>=5textNO
C12Expression=$F$12>=20textNO
C12Expression=$F$12>=5textNO
C13Expression=$F$13>=5textNO
C14Expression=$F$14>=5textNO
C15Expression=$F$15>=5textNO
C16Expression=$F$16>=5textNO
C17Expression=$F$17>=5textNO
C18Expression=$F$18>=5textNO
C19Expression=$F$19>=5textNO
C20Expression=$F$20>=5textNO
C6:C132Expression=F6<=9textNO
C6:C29Expression=$F$6>=5textNO
C7Expression=$F$7>=5textNO
C8Expression=$F$8>=5textNO
C9Expression=$F$9>=5textNO
C6:C166Expression=AND(G6 <> "" )textNO
Sorry my bad, brain fart wasn’t concidering the backed out col…. Should have said col c and col g my apologies, was trying to do this and answer phone and Do a report at the same time….
 
Upvote 0
Sorry my bad, brain fart wasn’t concidering the backed out col…. Should have said col c and col g my apologies, was trying to do this and answer phone and Do a report at the same time….
ok, i understand you may have a lot of things on.
 
Upvote 0

Forum statistics

Threads
1,215,205
Messages
6,123,634
Members
449,109
Latest member
Sebas8956

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