Not as easily as you think. Out of 16 million colors
hope that means the one that actually is yellow. #FFFF00
It is not a good idea to do this. Much better would be to
use some criteria on the worksheet. And you could filter
on value with Filter or AutoFilter, but for what you asked...
Now if the color was set or overridden by Conditional Formatting
it would be best to use the same formula you used for C.F.
rather than working through the Conditional Formatting formulas.