Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

226
Views
Exporting Datatable to excel value didn't came the same
$(document).ready(function () {
    $.fn.dataTable.moment(lang == "en" ? 'DD/MM/YYYY' : 'DD.MM.YYYY');
    categories_table = $('.datatable').DataTable({
        order: [[1, 'desc']],
        language: datatable_lang,
        dom: 'Bfrtip',
        buttons: [
            {
                extend: 'collection',
                autoClose: 'true',
                text: '<i class="download icon">',
                tag: 'span',
                buttons: ['csv', 'print', 'excel']
            }
        ]
    });
});

This gives nice looking format for price, like "8,00" as example. But when I export that to excel, I get "800" as value. And if number is "18,00", excel will show it as "1,800".

Is there any way to sort this out and have same values in excel as well? I try a lot thing but I didnt do it.

Thanks

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

easiest way is to remove comma from 8,00 then 800 will appear as number in excel, a number with comma is treated as text in excel

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!