$('#example').DataTable( { dom: 'Bfrtip', buttons: [ { extend: 'excelHtml5', title: 'YourTitle', exportOptions: { format: { body: function (data, row, column, node) { if (typeof(data) === 'string') { if(data.indexOf('%') != -1) { if(data.split('%')[1].length