The problem is it converts all cells that have numbers stored as text in the worksheet to numbers. How do I convert it to just a specific cell, or a cell range, or rows or columns? Your assistance is much appreciated.
@myDAN
After obtaining a string type data for a certain cell, you can call Cell.putValue (stringValue, isConverted) to reset the value and set the second parameter to true for string to number conversion.
To perform a conversion operation within a certain range, you need to traverse the range and then set the values one by one.
Also, see the following lines where you can do it in one go i.e., obtaining the cell value and converting it to numeric value (if possible) while re-setting the cell value.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.