Forum Discussion
Add Cell Fill Colour Based on Hex or RGB
- Aug 02, 2023
Beth ten Have I just figured out a solution here for those still scratching their heads.
Make a table with:
- Column A: Insert your hex codes and name the column "HEX"
- Column B: Name this column "LINK" and use formula:
- {="https://www.colorhexa.com/"&[@[HEX]]&".png"}
- Make sure to remove the braces before and after the above formula
- {="https://www.colorhexa.com/"&[@[HEX]]&".png"}
- Column C: Use formula {=image(@[LINK])}
voila
Beth ten Have I just figured out a solution here for those still scratching their heads.
Make a table with:
- Column A: Insert your hex codes and name the column "HEX"
- Column B: Name this column "LINK" and use formula:
- {="https://www.colorhexa.com/"&[@[HEX]]&".png"}
- Make sure to remove the braces before and after the above formula
- {="https://www.colorhexa.com/"&[@[HEX]]&".png"}
- Column C: Use formula {=image(@[LINK])}
voila
- SacredSteveSep 08, 2024Copper Contributor
Could you please give an example showing how to do the same exact thing only with the coloring of TEXT within a cell instead of coloring the background of a cell? CVWISMO
- SacredSteveSep 08, 2024Copper ContributorUnfortunately, I could not get the original solution to work.
- LorenzoSep 08, 2024Silver Contributor
- In the post marked as best response confirmed there's a little mistake. The 3rd bullet should say:
=IMAGE([@LINK])
NOT:=IMAGE(@[LINK])
- The IMAGE function is currently only available with Excel 365 & Excel Web/Online
If you run such a version try the attached where this works after fixing the above little typo:
- cm22lbJul 30, 2024Copper Contributor
When i have done this on my work computer it comes up as BLOCKED!. I then also tried it on my personal excel to see if the problem was with the external link being blocked and it then came up saying FIELD! and then i tried again and it said BUSY!.
Each time i tried re entering the formulas and then it swaps to saying #VALUE!
Does anybody know what the issue is or how to correct it/ what I might be doing wrong?
- PlantMar 26, 2025Copper Contributor
I had the same issue until I removed the # from my hex codes, at which point it worked just fine.
- PeterBartholomew1Jul 16, 2024Silver Contributor
Fascinating! I hadn't come across the website and the sizing fields of IMAGE would also appear to open up interesting possibilities. On 365 the process does not require CSE array formulae and with Lambda functions, the approach can be further packaged
Worksheet formula = COLORĪ»(HEX)
- PeterBartholomew1Jul 16, 2024Silver Contributor
Got a bit carried away!
- smartin2465Aug 18, 2024Copper ContributorThis was great. Thanks for sharing.
- ProfessorTimMay 31, 2024Copper ContributorCVWISMO That was a great workaround! Thank you!
- ChaseCooperSep 14, 2023Copper Contributor
This is amazing!!!! CVWISMO
Thank you so much!