Resources

How to include comments in Excel formulas

Excel's yellow sticky note-like comments (Notes) provide one way of annotating your worksheets, but do you ever wish you could write comments in formulas?

Unfortunately, there's no official way, but a workaround does exist involving N. This function converts a non-number value to a number, a date to a serial number, TRUE to 0, and anything else to 0.

N's syntax is as simple as its name β€” it has one argument called πšŸπšŠπš•πšžπšŽ, and here are a few examples of what it returns:

❖ =𝙽(𝟷𝟸𝟹𝟺𝟻) returns 12345
❖ =𝙽(πšƒπšπš„π™΄) returns 1
❖ =𝙽(π™΅π™°π™»πš‚π™΄) returns 0
❖ =𝙽(π™°πŸ·) returns 45160 if A1 contains the date 22/08/2023
❖ =𝙽("πšƒπš‘πš’πšœ πš’πšœ 𝚊 πšŒπš˜πš–πš–πšŽπš—πš") returns 0

N has existed for a very long time, and its original purpose was to provide compatibility with other spreadsheet programs. However, as Excel automatically converts values as necessary, it's not needed anymore for this reason.

It is ideal for inline formula comments, though. Given text strings return 0, there's no interference in calculations as nothing is added or subtracted.

In the video example, the formula =πš‚πš„π™Όπš‚πš€(π™³πŸΈ:π™³πŸΊ)+𝙽("πš†πš›πš˜πš—πš πšπšžπš—πšŒπšπš’πš˜πš— β€” πšπš˜πš—'𝚝 𝚞𝚜𝚎 πš‚πš„π™Όπš‚πš€. πš„πšœπšŽ πš‚πš„π™Ό!") demonstrates how N can be used. Just use + or - and then affix your N-based comment.

This is the best option we have for now. However, if you've used the Advanced Formula Environment add-in, you'll know that commenting is possible!

‍

For more Excel tips and tricks like this, check out our Video Tutorials page.

Andrew Moss
About the Author

Andrew Moss

Andrew is a technical writer who specialises in Microsoft Excel and data analysis. He has published hundreds of articles and social media posts aimed at helping people enhance their skills and spreading good practices.

Conversation

0 Comments

As you comment, let's keep the discussion friendly and respectful to add value to the conversation.

Thank you! Your comment has been sent!
Oops! Something went wrong while submitting the form.
Commenter profile pic.
Author Name
Comment Time

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere. uis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.

Reply
Delete
Commenter profile pic.
Author Name
Comment Time

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere. uis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.

Reply
Delete

Get Tickets

Benefit from an award-winning 3-day conference plus access to exclusive networking and additional Masterclass events.

Get Tickets
Close Cookie Popup
Cookie Preferences
By clicking β€œAccept All”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage and assist in our marketing efforts as outlined in our privacy policy.
Strictly Necessary (Always Active)
Cookies required to enable basic website functionality.
Cookies helping us understand how this website performs, how visitors interact with the site, and whether there may be technical issues.
Cookies used to deliver advertising that is more relevant to you and your interests.
Cookies allowing the website to remember choices you make (such as your user name, language, or the region you are in).