Conditional Format Formula

%3CLINGO-SUB%20id%3D%22lingo-sub-1451609%22%20slang%3D%22en-US%22%3EConditional%20Format%20Formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1451609%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3CBR%20%2F%3E%3CBR%20%2F%3EI%20am%20trying%20to%20set%20up%20a%20formula%20that%20highlights%20an%20entire%20row%20once%20it%20meets%20specifics%20-%20which%20are%2C%20if%20column%20G%20%23%20is%20within%20100%20of%20column%20J%20%23%20the%20row%20is%20highlighted%20a%20light%20color%2C%20and%20gradually%20gets%20dark%20as%20the%20%23's%20in%20column%20G%20get%20closer%20to%20column%20J.%20Shades%20would%20get%20darker%20in%20increments%20of%2025%2C%20so%20-%20Lightest%20100%26gt%3B75%26gt%3B50%26gt%3B25%26gt%3B0%20Darkest.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20have%20found%20formula%20(%3D%24G3%26gt%3B%3D%24J3)%20works%20for%20if%20cells%20in%20G3%20are%20greater%20than%20or%20equal%20to%20J3%2C%20but%20cannot%20figure%20out%20how%20to%20do%20the%20increments%20of%2025%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EEX.%20picture%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Untitled.png%22%20style%3D%22width%3A%20807px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F197642iB4C8AEE7A0BF0267%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Untitled.png%22%20alt%3D%22Untitled.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20rows%20currently%20highlighted%20will%20be%20fixed%20once%20the%20rest%20of%20the%20data%20is%20entered%2C%20but%20in%20the%20example%20picture%2C%20row%204%20should%20be%20white%20as%20is%2C%20followed%20by%20row%206%20which%20should%20be%20the%20light%20shade%20color%20(G3%20is%20within%20100%20of%20J3)%2C%20followed%20by%20row%208%20(within%2075)%20%26gt%3B%2010%20(within%2050)%20%26gt%3B%2012%20(within%2025)%20%26gt%3B%2014%20(0)%20darkest%20shade.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1451609%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1451732%22%20slang%3D%22en-US%22%3ERe%3A%20Conditional%20Format%20Formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1451732%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F694176%22%20target%3D%22_blank%22%3E%40SahuaroCon%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20sure%20we%20can%20support%20you%20with%20this%2C%20but%20I%20really%20can't%20understand%20what%20exactly%20you%20want%20there%3F%20what%20do%20you%20mean%20when%20you%20say%20within%3F%20try%20to%20give%20us%20as%20many%20details%20as%20you%20can.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Echeers%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHemn%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1451801%22%20slang%3D%22en-US%22%3ERe%3A%20Conditional%20Format%20Formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1451801%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F691648%22%20target%3D%22_blank%22%3E%40hemnrostam%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EMy%20apologies%2C%20when%20I%20say%20'within'%20I%20mean..%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EG3-J3%3D100%20(738-838%3D100)%20color%20shade%20starts%3C%2FP%3E%3CP%3EG8-J8%3D75%20(7822-7897%3D75)%3C%2FP%3E%3CP%3E%22%3C%2FP%3E%3CP%3E%22%3C%2FP%3E%3CP%3E%22%3C%2FP%3E%3CP%3EG14-J14%3D0%20(6958-6958%3D0)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EMy%20company%20does%20a%20service%20on%20their%20machines%20every%20250%20hours%2C%20the%20formula%20I%20am%20trying%20to%20implement%20is%20every%20time%20I%20change%20%23's%20in%20column%20G%20(current%20hours%20of%20unit)%20as%20it%20gets%20closer%20to%20column%20J%20(up%20coming%20service%20hours).%20Starting%20at%20the%20100%20marker%20and%20gradually%20getting%20more%20and%20more%20distinguishable%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20that%20makes%20sense%2C%20not%20very%20easy%20to%20explain%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1452291%22%20slang%3D%22en-US%22%3ERe%3A%20Conditional%20Format%20Formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1452291%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F694176%22%20target%3D%22_blank%22%3E%40SahuaroCon%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESee%20if%20this%20solution%20points%20you%20in%20the%20right%20direction.%26nbsp%3B%20Note%20that%20I%20used%20a%20different%20conditional%20format%20for%20each%20shade%20your%20using.%26nbsp%3B%20The%20conditional%20formulas%20are%20identical%20except%20for%20the%20value%20of%20the%20shade.%26nbsp%3B%20For%20the%20formula%20that%20I've%20moused%20over%20the%20shade%20%3D%200%2C%20next%20one%20up%20it%20%3D%2025%2C%20then%2050%2C%2075...%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Conditional%20Formatting.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F197737iB6D97066A06E4E87%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Conditional%20Formatting.png%22%20alt%3D%22Conditional%20Formatting.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EHope%20this%20helps!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOne%20more%20thing%20to%20note%2C%20you%20can%20change%20the%20%22%3D0%22%20to%20%22%26gt%3B%3D0%22%20to%20catch%20items%20that%20are%20within%20a%20range%2C%20in%20this%20case%200%20up%20to%20the%20value%20of%20the%20previous%20condition%20which%20would%20be%2025.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1452361%22%20slang%3D%22en-US%22%3ERe%3A%20Conditional%20Format%20Formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1452361%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F694176%22%20target%3D%22_blank%22%3E%40SahuaroCon%3C%2FA%3E%26nbsp%3B%20wouldn't%20it%20be%20easier%20to%20just%20add%20a%20column%20%22Time%20Left%22%20and%20do%20the%20conditional%20formatting%20on%20that%3F%26nbsp%3B%20Then%20you%20see%20the%20remaining%20hours%20and%20you%20can%20easily%20use%20some%20nifty%20built%20in%20conditional%20formatting%20rules%20like%20%22Format%20all%20cells%20based%20on%20their%20values%22%20and%20you%20can%20do%202%20or%203%20color%20gradients%2C%20data%20bars%20that%20fill%20the%20cell%20like%20a%20fuel%20gauge%2C%20or%20icon%20sets.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F307537%22%20target%3D%22_blank%22%3E%40xspJody%3C%2FA%3Emaybe%20I'm%20missing%20something%20but%20wouldn't%20you%20formulas%20be%20easier%20if%20you%20just%20used%20the%20'%24'%20to%20lock%20the%20column%20i.e.%20%3D(%24E3%3D0)%20%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1452401%22%20slang%3D%22en-US%22%3ERe%3A%20Conditional%20Format%20Formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1452401%22%20slang%3D%22en-US%22%3E%3CP%3E%22Absolutely.%26nbsp%3B%20The%20reason%20I%20presented%20the%20solution%20as%20I%20did%20though%20is%20because%20the%20user%20did%20not%20have%20a%20column%20for%20this%20value.%26nbsp%3B%20Since%20I%20have%20no%20way%20of%20knowing%20the%20full%20nature%20behind%20someones%20questions%20I%20try%20to%20present%20solutions%20that%20fit%20their%20style%20as%20much%20as%20I%20can.%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%22It%20may%20as%20well%20still%20be%20easier%20to%20add%20a%20column%20for%20this%20data%20and%20refer%20to%20it%20in%20their%20conditions%20as%20opposed%20to%20using%20the%20OFFSET%20function.%22%3C%2FP%3E%3CDIV%20class%3D%22SnapLinksContainer%22%3E%3CDIV%20class%3D%22SL_SelectionRect%22%3E%3CDIV%20class%3D%22SL_SelectionLabel%22%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3C!--%20%20%20%20Used%20for%20easily%20cloning%20the%20properly%20namespaced%20rect%20%20%20%20--%3E%3C%2FDIV%3E%3CDIV%20class%3D%22SnapLinksContainer%22%3E%3CDIV%20class%3D%22SL_SelectionRect%22%3E%3CDIV%20class%3D%22SL_SelectionLabel%22%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3C!--%20%20%20Used%20for%20easily%20cloning%20the%20properly%20namespaced%20rect%20%20%20--%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E
New Contributor

Hello,

I am trying to set up a formula that highlights an entire row once it meets specifics - which are, if column G # is within 100 of column J # the row is highlighted a light color, and gradually gets dark as the #'s in column G get closer to column J. Shades would get darker in increments of 25, so - Lightest 100>75>50>25>0 Darkest.

I have found formula (=$G3>=$J3) works for if cells in G3 are greater than or equal to J3, but cannot figure out how to do the increments of 25


EX. picture
Untitled.png

 

The rows currently highlighted will be fixed once the rest of the data is entered, but in the example picture, row 4 should be white as is, followed by row 6 which should be the light shade color (G3 is within 100 of J3), followed by row 8 (within 75) > 10 (within 50) > 12 (within 25) > 14 (0) darkest shade.

 

Thank you

 

5 Replies

@SahuaroCon

 

I am sure we can support you with this, but I really can't understand what exactly you want there? what do you mean when you say within? try to give us as many details as you can.

 

cheers

 

Hemn 

@hemnrostam 

My apologies, when I say 'within' I mean..

 

G3-J3=100 (738-838=100) color shade starts

G8-J8=75 (7822-7897=75)

"

"

"

G14-J14=0 (6958-6958=0)

 


My company does a service on their machines every 250 hours, the formula I am trying to implement is every time I change #'s in column G (current hours of unit) as it gets closer to column J (up coming service hours). Starting at the 100 marker and gradually getting more and more distinguishable

 

Hope that makes sense, not very easy to explain

 

Thank you

@SahuaroCon 

See if this solution points you in the right direction.  Note that I used a different conditional format for each shade your using.  The conditional formulas are identical except for the value of the shade.  For the formula that I've moused over the shade = 0, next one up it = 25, then 50, 75...

Conditional Formatting.png

Hope this helps!

 

One more thing to note, you can change the "=0" to ">=0" to catch items that are within a range, in this case 0 up to the value of the previous condition which would be 25.

@SahuaroCon  wouldn't it be easier to just add a column "Time Left" and do the conditional formatting on that?  Then you see the remaining hours and you can easily use some nifty built in conditional formatting rules like "Format all cells based on their values" and you can do 2 or 3 color gradients, data bars that fill the cell like a fuel gauge, or icon sets.

@xspJodymaybe I'm missing something but wouldn't you formulas be easier if you just used the '$' to lock the column i.e. =($E3=0)  

"Absolutely.  The reason I presented the solution as I did though is because the user did not have a column for this value.  Since I have no way of knowing the full nature behind someones questions I try to present solutions that fit their style as much as I can."

 

"It may as well still be easier to add a column for this data and refer to it in their conditions as opposed to using the OFFSET function."