Color Code Cells - by input

Anonymous
2022-04-11T18:06:27+00:00

Something I love to do for my models is to color code based on whether the cell is a value or a calculation. Excel for has some canned color coding options but they have to be applied manually.

Is there a way for Excel to automatically format a cell with calculation one way, and a value another way? (are there other categories?). I am happy if this has to be a macro I run on a selection of cells.

Thanks

Microsoft 365 and Office | Excel | Other | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Anonymous
    2022-04-24T07:24:35+00:00
    0 comments No comments
  2. Anonymous
    2022-04-24T10:28:40+00:00

    Hi there

    To color-code, a cell, based on whether it has a value or a calculation/formula

    You may use Conditional Formatting with a formula rule like =ISFORMULA(B2)

    In the sample picture below the last 3 cells in the range contains formulas

    Adapt the range in the formula according to your real scenario.

    I hope this helps you and gives a solution to your problem,

    Do let me know if you need more help.

    Regards

    Jeovany

    1 person found this answer helpful.
    0 comments No comments