I 'm using Spreadsheet gem to create excel sheet. how can I apply 'currency' number format to a particular cell ?
Not tried it out but perhaps the following will point you in the right direction:
nb_format = Spreadsheet::Format.new :number_format => '$#,###.##'
cell.set_format(0, nb_format)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With