You could use the following function in a module:
To return the value in A1:E1 with a light yellow background, in cell F1 you could type:
=getYellow(A1:E1)
It could be used for any range, of course, not just A1:E1. One thing to note.. if you make any changes, e.g. change the light yellow cell or change any cell values, you'll need to press F9 to re-calculate the entire sheet, which will update the function's result.
To add a module:
1. Press ALT+F11 to open the VB Editor, then ALT+I+M to insert a module.
2. Copy the above function and paste it into that module.
3. Close the VB Editor window
Bookmarks