Excel export - change negative currency to number?
Excel export - change negative currency to number?
emf411
Posts: 5Questions: 2Answers: 1
Hello,
My datatable has positive and negative dollar amounts, for example:
($18,929.00)
I've been able to implement the built-in styles during the Excel button export to remove the $ from the positive numbers, but can someone help me with how to remove the $ from the negative numbers? Ideally, I'd like Excel to display this:
(18,929)
Thank you!!
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
I've tried this code but it's still showing in Excel as ($18,929.00) for some reason:
I don't think you are saving the modified values at all.
Will remove
$
and,
characters, but it doesn't then save it anywhere. You probably want to save it into a variable and then once all your replacements are done write it back into a cell.Allan
Thank you Allan, I ended up going a different route by using the exportOptions to accomplish what I needed, this worked perfectly:
--Eric
Nice one - thanks for posting back with your solution.
Allan