Go Back

How to Leave a Comment in a Formula in Excel

Many at times we may need to leave a comment in a formula without disrupting or affecting the operation of the formula. While this can be hard for most people, here is a step by step guide on how to do so.

Note that for documentation purposes, you will need to leave comments in formula while working with excel spreadsheets. This is important as the comments will help you know what the functions are for, or specific instructions regarding the formula. Below is how this is done:


=Formula+ N(“comment”)

The N function can be used to leave a comment in a formula which returns a numeric result. In our formula above, the N() allows us to leave an in-cell comment.

It is important to remember that the N function will only work if you use a numeric value, as it will return a number. But if you use a text value, then the function will return a zero as the result.

When the cell in which the formula has been applied is selected, the comment shall be seen in the formula bar.

Example 1

Step 1: Have your data

Figure 1. Setting up data

Step 2: Enter your formula

Figure 2. Input formula

Step 3: Add the N() Function

Figure 3. Add the N() Function


You must remember to use the quotation marks inside the N() function for you to get the correct result.

Most of the time, the problem you will need to solve will be more complex than a simple application of a formula or function. If you want to save hours of research and frustration, try our live Excelchatservice! Our Excel Experts are available 24/7 to answer any Excel question you may have. We guarantee a connection within 30 seconds and a customized solution within 20 minutes.

Did this post not answer your question? Get a solution from connecting with the expert.

Another blog reader asked this question today on Excelchat:
Here are some problems that our users have asked and received explanations on

Is there a way to automatically add a comment as part of data validation. For example, if 1 is selected, then show "Approved" as a Comment in the cell, if 2 is selected, then show "Rejected" as a comment. This is a simple example but basically, the text we'd like to show is quite long so would rather keep it as a comment vs. in the cell.
Solved by T. E. in 23 mins
i need to insert a comment in an excel 2010 worksheet
Solved by D. E. in 21 mins
Hi, I need to find a formula to match the time and comment in column N & O with the time and data in columns A-H.
Solved by Z. H. in 19 mins

Leave a Comment