Jump to content

ExcelReadCell unable not pulling format...


Recommended Posts

When reading cell that has a money value like " $64.30" excel cuts out any 0 that is after the decimal. So you get something like, "$64.3" Also if the value is $24,223.12 I would get "$24223.12" How can I get it to keep the comma?

Any ideas?

Link to comment
Share on other sites

I have no idea how to change that in excel, but you could use StringSplit() to split the number by the decimal and then insert your own commas every three characters from the right side of the split string.

Link to comment
Share on other sites

This has something to do with the regional settings.There you can change the options for that. basically in Excel the cell value is $24223.12 but excel shows is as $24,223.12 as it is formated as "currency"/number type.The coma is the 1000 separator in the regional settings. "How can I get it to keep the comma?"

Why would you need that?

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...