• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

How to color cells, if the cells are a part of the formula.

srinidhi

Active Member
I have formula at the beginning of a cell & want to color only those cells that are a part of the formula

EX:A1 =sum(A2+A3+A5+415+A20)

I just want to change the cell color for A2, A3, A5, 415, A20


Can this be done without VBA also.
 
Do you need this to be dynamic, or is this a "1-off" thing? dynamically, you're going to need to use VB as there is no native function in XL that can detect formula contents. If you just need a quick highlight:

1. Select A1

2. Hit Ctrl+[

3. All direct precedent cells are now selected (note that 415 is not a cell)

4. Format cell color as desired.
 
Back
Top