Forum Discussion
Walter_Verhoeven
Feb 23, 2023Copper Contributor
With the xlookup function, can I also copy the cell color that is in the return-array ?
When using the xlookup function, I also want to copy the color of the cell in the return-array (hosting the value of my lookup) together with the content of that cell. This to have the same color in...
HansVogelaar
Feb 23, 2023MVP
No, formulas only return a value.
If the cells in the lookup range are colored by conditional formatting, you can apply the same conditional formatting rules to the cell(s) with the formula.
Walter_Verhoeven
Feb 23, 2023Copper Contributor
Thx for your prompt reply.
Unfortunately, I cannot apply conditional formatting as the lookup range consists of imported data.
So, I will have to figure out something else instead of / or in conjunction with the xlookup formula.
Unfortunately, I cannot apply conditional formatting as the lookup range consists of imported data.
So, I will have to figure out something else instead of / or in conjunction with the xlookup formula.
- HansVogelaarFeb 23, 2023MVP
It is possible to use VBA code, but that might be overkill.