How to include comments in Excel formulas
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.

About the Author

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

REGISTER YOUR INTEREST

Our next event takes place in February 2025. Register your interest in attending and be the first to know when registration is live!