Skip to content
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

Percentage format #212

Closed
dsounded opened this issue Feb 19, 2018 · 7 comments
Closed

Percentage format #212

dsounded opened this issue Feb 19, 2018 · 7 comments

Comments

@dsounded
Copy link

dsounded commented Feb 19, 2018

Hello, thanks for the gem, currently I can't find a proper way to set the Excel percentage format to the column, only percentage_format = Spreadsheet::Format.new(number_format: '##0.00%'). I use this for now, any other options(e.g. DSL for setting this). But even with the mask it gives wrong calculation...

@zdavatz
Copy link
Owner

zdavatz commented Feb 19, 2018

Use the mailing list to ask this question.

@zdavatz zdavatz closed this as completed Feb 19, 2018
@dsounded
Copy link
Author

@zdavatz I tried but there is not response :(

@zdavatz
Copy link
Owner

zdavatz commented Feb 28, 2018

Did you also check Stackoverflow?

@adrianmann
Copy link

adrianmann commented Apr 18, 2018

I am looking for a solution for this also. I have asked an SO question here with no response as of yet: https://stackoverflow.com/questions/49899882/ignore-number-stored-as-text-warning-rails. Did you get a result @dsounded ?

@zdavatz
Copy link
Owner

zdavatz commented Apr 18, 2018

Ok, thanks for reporting this!

@adrianmann
Copy link

I got an answer here: https://stackoverflow.com/q/49916286/1945948 (the first comment) combined with: percent_format = Spreadsheet::Format.new :number_format => '#0 %'.

@zdavatz
Copy link
Owner

zdavatz commented Apr 20, 2018

Cool, great, thank your for linking the Issue here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants