Add Cell Fill Colour Based on Hex or RGB

%3CLINGO-SUB%20id%3D%22lingo-sub-1381482%22%20slang%3D%22en-US%22%3EAdd%20Cell%20Fill%20Colour%20Based%20on%20Hex%20or%20RGB%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1381482%22%20slang%3D%22en-US%22%3EIs%20it%20possible%20to%20fill%20a%20cell%20with%20a%20colour%20based%20on%20either%20the%20hex%20code%20or%20the%20RGB%20values%20of%20that%20colour%20(they%20would%20be%20in%20neighbouring%20cells%20in%20the%20same%20row)%20without%20using%20VBA%3F%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1381482%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%20on%20mobile%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1381763%22%20slang%3D%22en-US%22%3ERe%3A%20Add%20Cell%20Fill%20Colour%20Based%20on%20Hex%20or%20RGB%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1381763%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F155071%22%20target%3D%22_blank%22%3E%40Beth%20ten%20Have%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20the%20desktop%20version%2C%20if%20manually%2C%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20325px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F190839i2ADDBC14BADE0D08%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ENot%20sure%20about%20Excel%20for%20mobile%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1384677%22%20slang%3D%22en-US%22%3ERe%3A%20Add%20Cell%20Fill%20Colour%20Based%20on%20Hex%20or%20RGB%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1384677%22%20slang%3D%22en-US%22%3EThanks%2C%20but%20I%20need%20the%20colour%20for%20160%20rows%20of%20data%2C%20so%20I%20was%20hoping%20that%20there%20was%20a%20less%20manual%20method!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1385320%22%20slang%3D%22en-US%22%3ERe%3A%20Add%20Cell%20Fill%20Colour%20Based%20on%20Hex%20or%20RGB%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1385320%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F155071%22%20target%3D%22_blank%22%3E%40Beth%20ten%20Have%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHEX%20code%20is%20different%20for%20each%20row%2C%20for%20each%20cell%20of%20each%20row%2C%20or%20the%20same%20for%20all%20rows%20or%20what%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2020738%22%20slang%3D%22en-US%22%3ERe%3A%20Add%20Cell%20Fill%20Colour%20Based%20on%20Hex%20or%20RGB%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2020738%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F155071%22%20target%3D%22_blank%22%3E%40Beth%20ten%20Have%3C%2FA%3E%26nbsp%3B%2C%20I%20had%20a%20similar%20task%20and%20was%20wondering%20if%20you%20found%20a%20way%20to%20fill%20adjacent%20cell%20with%20the%20colour%20matching%20the%20hex%20code%20entered%20in%20the%20same%20row%3F%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2022084%22%20slang%3D%22en-US%22%3ERe%3A%20Add%20Cell%20Fill%20Colour%20Based%20on%20Hex%20or%20RGB%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2022084%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F912704%22%20target%3D%22_blank%22%3E%40NehaS50%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWithout%20VBA%20it's%20not%20doable.%3C%2FP%3E%3CP%3EThe%20nearest%20solution%20would%20be%20the%20feature%20%22conditional%20formatting%22.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EJC%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor
Is it possible to fill a cell with a colour based on either the hex code or the RGB values of that colour (they would be in neighbouring cells in the same row) without using VBA?
5 Replies

@Beth ten Have 

For the desktop version, if manually,

image.png

Not sure about Excel for mobile

Thanks, but I need the colour for 160 rows of data, so I was hoping that there was a less manual method!

@Beth ten Have 

HEX code is different for each row, for each cell of each row, or the same for all rows or what?

Hi@Beth ten Have , I had a similar task and was wondering if you found a way to fill adjacent cell with the colour matching the hex code entered in the same row?  

@NehaS50 

 

Without VBA it's not doable.

The nearest solution would be the feature "conditional formatting".

 

 

JC