catamphetamine / read-excel-file

Read *.xlsx files in a browser or Node.js. Parse to JSON with a strict schema.

Home Page:https://catamphetamine.gitlab.io/read-excel-file/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to read the special character (plus symbol) from Excel Spreadsheet

ramya-sc opened this issue · comments

Hi,
Assume , I have excel rows, something like below,

image

If I try to read phone number +11234567890 , plus symbol is missing in UI or in console data .
Can you please suggest me on this ?
Thanks.

@catamphetamine , please find the below excel file.

[
Demo_sheet.xlsx
](url)

The content of the cells is without +, so the library behaves correctly.
The output format of the cells is "Custom": \+0;.

image

Users are supposed to define their own formats for Excel data:
https://support.office.com/en-us/article/display-numbers-as-phone-numbers-7feabe49-15b3-411c-a030-781b4f2c87dd
https://www.youtube.com/watch?v=dMNmrTHWosQ

So in your case you should prepend the + after parsing cell values.