• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Microsoft Excel’s N Function

You are here: Home / Excel Formulas / Microsoft Excel’s N Function
Microsoft Excel’s N Function
March 16, 2011 by Mynda Treacy

In my last tutorial I showed you Excel's T function, today we’re looking at the other one-letter function; the Excel N function.

Funnily enough the N function was only provided for compatibility with other spreadsheet programs, but it does have one handy use if compatibility is not your raison d’etre.

The syntax is:

=N(value)

Depending on what the ‘value’ is Excel will return the following:

N Function Examples

Now, you won’t have much use for this formula if you aren’t concerned with compatibility issues since Excel automatically converts values to the appropriate format when required. For example; dates are automatically converted to serial numbers when used in a formula.

But I wouldn’t be telling you all this if there wasn’t a clever use for it…

Excel N Function Trick – Embed Annotations in Your Formulas

You can use the N function in a nifty way to make notes within a formula to help you remember why you used a certain value or formula.

This trick relies on the fact that a text string returns a zero value. Take this for example:

=100*(1+10%)+N("10% was advised by Richard as the increase for 2011")

What this formula is actually doing:

=100*(110%)+0

As you can see the N function component of the formula has no impact on the result, but it allows you to insert an unobtrusive note in your spreadsheet that explains your rationale without the need for what can be annoying comments like this.

N Function comment alternative

Download the Workbook

Enter your email address below to download the sample workbook.



By submitting your email address you agree that we can email you our Excel newsletter.
Please enter a valid email address.

Download the workbook. Note: This is a .xlsx file. Please ensure your browser doesn't change the file extension on download.

Microsoft Excel’s N Function

More Excel Formulas Posts

ai-aided excel formula editor

AI Aided Excel Formula Editor

Save time with this free AI Excel formula editor add-in that writes, edits, improves and interprets formulas for you!
top excel functions for data analysts

Top Excel Functions for Data Analysts

Must know Excel Functions for Data Analysts and what functions you don’t have to waste time learning and why.
excel advanced formula environment

Excel Advanced Formula Environment

Excel Advanced Formula Environment is a long awaited, new improved way to write, name and store Excel formulas.
Pro Excel Formula Writing Tips

Pro Excel Formula Writing Tips

Must know Excel formula writing tips, tricks and tools to make you an Excel formula ninja, including a new formula editor.
excel shaping arrays

New Array Shaping Excel Functions

The Excel Shaping Array Functions makes it easier than ever to reshape arrays and ranges using these purpose built functions
excel nested if functions what not to do

Excel IF Formulas and What Not To Do

Excel IF formulas can get out of hand when you nest too many IFs. Not only do they become unwieldy they’re difficult for anyone to understand
excel image function

Excel IMAGE Function

The Excel IMAGE Function enables you to embed images in a cell using a formula. It supports BMP, JPG/JPEG, GIF, TIFF, PNG, ICO, and WEBP files

Excel VSTACK and HSTACK Functions

New Excel VSTACK and HSTACK functions makes combining arrays of cells easy and with some clever tricks we can extend their capabilities.
identify overlapping dates and times in excel

Identify overlapping dates and times in Excel

How to identify overlapping dates and times in Excel with a formula that checks a range of cells. Works with Dates and Times.
New Excel Text Functions

TEXTSPLIT, TEXTBEFORE and TEXTAFTER Functions

TEXTAFTER, TEXTBEFORE and TEXTSPLIT are exciting new Excel Text functions. They’re fairly self-explanatory, however TEXTSPLIT has some cool features.


Category: Excel Formulas
Previous Post:Microsoft Excel’s T FunctionMicrosoft Excel’s T Function
Next Post:Microsoft Excel Camera ToolMicrosoft Excel Camera Tool

Reader Interactions

Comments

  1. jim

    November 4, 2020 at 10:46 pm

    NB using N() to annotate in this way will only work with formulas that return a number, otherwise it will error

    a text-returning formula can be annotated with:
    …&REPT(“comment text”,)
    (note the sneaky comma before the closing bracket)

    this can be used to annotate a number-returning formula too, but would convert the answer to text

    Reply
    • Mynda Treacy

      November 5, 2020 at 8:46 am

      Nice tip, Jim! Thanks so much for sharing.

      Reply
  2. Pavel

    May 25, 2017 at 2:13 am

    Hello guys!

    Interesting function
    But doesn’t work here: =VLOOKUP(“*”&A12&”*”;Table1;2;0)+N(“any text here”)
    I just added N function to a formula from your Wildcards lesson…
    and it returnes #VALUE!
    What am I doing wrong?

    Reply
    • Mynda Treacy

      May 25, 2017 at 7:57 am

      Hi Pavel,

      I don’t think it’s N that’s the problem. It’s likely your VLOOKUP is not finding the value you’re trying to lookup. Test it without the ‘N’ part.

      Mynda

      Reply
      • Chris Dunhill

        February 3, 2020 at 9:54 pm

        Nope, it’s because Excel doesn’t like it when you try to add a number (0, above) to a string.

        Reply
  3. Mark

    November 7, 2015 at 12:30 am

    I first started doing spreadsheets in Quattro Pro, WordPerfect’s spreadsheet program. It allowed for comments in the formula line similar to how comments are done in VB. Finally! Years later – an Excel equivalent! Thanks.

    Reply
  4. Wookiee

    June 13, 2013 at 5:26 am

    Wow. I just stumbled on this site because a user posted a link to an array-based VLOOKUP article on MrExcel.com. I have to say that I’m really impressed!

    I’ve been a fan of sites such as Ozgrid, MrExcel, and Chandoo.org for the past 2 or 3 years, but I don’t think I’ve ever learned so many new things that I can actually put to use in so little time as I have today just poking around on this site for an hour. I mean, I’ve just discovered the Camera tool, how to use the format painter multiple times in a go (been trying to figure that out for quite a while), and now a handy little function that pretty much allows you to include a comment in a formula just like you can comment out a line of code in VBA. Somebody just earned themselves a spot on my Favorites bar!

    Thanks for creating and maintaining such a beneficial site.

    Reply
    • Mynda Treacy

      June 13, 2013 at 3:04 pm

      Wow, thanks Wookiee. I don’t think I’ve ever had so many kind things said about our site in one comment! 🙂

      Reply
  5. Shane Brown

    July 24, 2012 at 1:32 am

    I am preparing for my excel project which I have to submit to my university. This website really helped me and I am sure I am going to get A grade 🙂

    Thanks a bunch really.

    Reply
    • Mynda Treacy

      July 24, 2012 at 1:23 pm

      🙂 Thanks, Shane.

      Reply

Trackbacks

  1. Excel Formulas • My Online Training Hub says:
    January 3, 2017 at 3:39 pm

    […] N Function – another very short function but quite handy. N enables you to put notes inside your formulas, much like a programmer would annotate their code to help them and others understand their logic. That wasn't the original purpose if N, but it's handy nonetheless. […]

    Reply
  2. Excel Dependent Data Validation • My Online Training Hub says:
    August 19, 2016 at 8:36 pm

    […] Leonid Koyfman used an array formula and the seldom used N function to perform a logical test inside MATCH. He also added some Conditional Formatting to highlight when […]

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Current ye@r *

Leave this field empty

Sidebar

More results...

Featured Content

  • 10 Common Excel Mistakes to Avoid
  • Top Excel Functions for Data Analysts
  • Secrets to Building Excel Dashboards in Less Than 15 Minutes
  • Pro Excel Formula Writing Tips
  • Hidden Excel Double-Click Shortcuts
  • Top 10 Intermediate Excel Functions
  • 5 Pro Excel Dashboard Design Tips
  • 5 Excel SUM Function Tricks
  • 239 Excel Keyboard Shortcuts

100 Excel Tips and Tricks eBook

Download Free Tips & Tricks

Subscribe to Our Newsletter

Receive weekly tutorials on Excel, Power Query, Power Pivot, Power BI and More.

We respect your email privacy

Guides and Resources

  • Excel Keyboard Shortcuts
  • Excel Functions
  • Excel Formulas
  • Excel Custom Number Formatting
  • ALT Codes
  • Pivot Tables
  • VLOOKUP
  • VBA
  • Excel Userforms
  • Free Downloads

239 Excel Keyboard Shortcuts

Download Free PDF

Free Webinars

Excel Dashboards Webinar

Watch our free webinars and learn to create Interactive Dashboard Reports in Excel or Power BI

Click Here to Watch Now

mynda treacy microsoft mvpHi, I'm Mynda Treacy and I run MOTH with my husband, Phil. Through our blog, webinars, YouTube channel and courses we hope we can help you learn Excel, Power Pivot and DAX, Power Query, Power BI, and Excel Dashboards.

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk – For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.