Microsoft Excel: A formula for going green

By J. Carlton Collins, CPA

Q. Is there a way to conditionally format Excel so that my formulas automatically display a different font color?

A. You can color-code your formulas using Excel's conditional formatting tool as follows. Select a single cell (such as cell A1). From the Home tab, select Conditional Formatting, New Rule, and in the resulting New Formatting Rule dialog box, select Use a formula to determine which cells to format. In the resulting Format values where this formula is true box, enter the formula =ISFORMULA(A1) (make sure that no dollar signs appear in the formula). Click the Format button (near the lower-right portion of the dialog box) and select a desired color from the color dropdown box (I have selected green in the example below), and then click OK, OK. (Note: I also selected Bold from the Font style box so the formulas would stand out a little more).

techqa1


In this example, we have now successfully applied conditional formatting to cell A1, which will display a bold, green font whenever a formula is entered into cell A1. Next, to apply this formatting to the entire worksheet, select cell A1, right-click cell A1, click the Format Painter tool icon, and then click the upper-left corner of the worksheet (in the row and column heading area) to apply this format to the entire worksheet. Thereafter, your entire worksheet will highlight all formulas using a bold, green font, an example of which is pictured below.

techqa2


You can download this example workbook at carltoncollins.com/formulacolor.xlsx.


About the author

J. Carlton Collins (carlton@asaresearch.com) is a technology consultant, a CPE instructor, and a JofA contributing editor.

Note: Instructions for Microsoft Office in “Technology Q&A” refer to the 2007 through 2016 versions, unless otherwise specified.

Submit a question

Do you have technology questions for this column? Or, after reading an answer, do you have a better solution? Send them to jofatech@aicpa.org. We regret being unable to individually answer all submitted questions.

SPONSORED REPORT

How to make the most of a negotiation

Negotiators are made, not born. In this sponsored report, we cover strategies and tactics to help you head into 2017 ready to take on business deals, salary discussions and more.

VIDEO

Will the Affordable Care Act be repealed?

The results of the 2016 presidential election are likely to have a big impact on federal tax policy in the coming years. Eddie Adkins, CPA, a partner in the Washington National Tax Office at Grant Thornton, discusses what parts of the ACA might survive the repeal of most of the law.

QUIZ

News quiz: Scam email plagues tax professionals—again

Even as the IRS reported on success in reducing tax return identity theft in the 2016 season, the Service also warned tax professionals about yet another email phishing scam. See how much you know about recent news with this short quiz.