Negative Percent on cell
See original GitHub issueHello,
The Excel table has a cell with value : -5%
The XLSX.utils.sheet_to_json
return : -0
Positive value works perfectly, only Negative value do not.
Is there something i need change in reading?
var data = XLSX.utils.sheet_to_json(first_worksheet, {header:1});
The Excel file :
Note : I am using the the js-xlsx insude adobe extendscript
Appreciate your help, Firas.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Parentheses for Negative Percent Results in Excel - Officetuts
To display positive percentages use the code ###0.00%, and to display negative percentages within parentheses use the code (###0.00%).
Read more >Displaying Negative Percentages in Red - Excel Ribbon Tips
Select the cell (or cells) that may contain negative percentages. · Display the Home tab of the ribbon. · Click the small icon...
Read more >Parentheses for Negative Percent Results - RESOLVED
I have been able to format single cells to display negative percents (Budget to Actual hours), but I cannot copy the formatting to...
Read more >Displaying Negative Percentages in Red in Excel - Causal
One way is to use the conditional formatting feature within Excel. This is a quick and easy way to format your cells based...
Read more >Calculate Percentage Change for Negative Numbers in Excel
We could use this same methodology to tell our readers if the change was positive (P) or negative (N) when either value is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If you pass
{raw:true}
to the sheet_to_json function it should give you the number!For example, with that pct.xlsx file from earlier:
#608 covers the general issue of the formatting in ExtendScript, so I think we’re done here