-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation needed for Range.numberFormat supported formats #812
Comments
Hi @robertmclaws, Thanks for the question. The JavaScript APIs support any number format supported by Excel. This is not a finite list. There are a few helpful articles for Excel in general: If you already have the number format ready in an Excel workbook, you can use Script Lab to log the number format, then add that string into your own add-in. Stack Overflow is also a good place to ask these sort of specific "how to" questions. I'll tag @alison-mk to see if we improve sample here and the section in the corresponding Range article. |
@robertmclaws, |
Hey Alex, thanks for the notes. The last link in your first post is the only one that helps construct number formatting strings. In regards to why I opened up a ticket here vs asking on Stack Overflow is because displaying and formatting numbers is a VERY large part of dealing with Excel, but the mechanics of doing that programmatically get very little attention in these docs. For example, very little explanation is given for why IMO, there needs to be a whole TOC entry at this level on how to deal with formatting, decimal places, how do deal with setting formats in Tables (using HTH, and thanks for your time. :) |
Hi @robertmclaws, thank you for taking the time to provide this detailed feedback! I've recorded it in an internal work item and plan to incorporate your suggestions. I'm not sure of the timeline, so I will leave this issue open for now. Thanks again, Internal tracking info: work item 4700521 |
You folks are awesome, thanks so much, and hope you have a great holiday! |
Hi Team, Any progress about this document. this function is very useful but the document is very deficient. |
Hello! I'm having a really hard time getting my head around the supported number formats... any chance you could document the Range.numberFormat() method with the types of supported formats? For example, I really need a currency format with zero decimals, and there's nothing on how to do that.
Thanks!
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: