Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
SteveEly Absent Member.
Absent Member.

Excel cell value adding a decimal point

This is more a tip than a question because I have been banging my head against a wall over this for a few days and finally discovered the answer.

I was trying to read a 3 to 6 digit number from an Excel file using the following code:

INQUIRE EX-WORKSHEET @Range(cell-range)::Value in VOI-VEN-NUM

If the number in the cell was 123456 it would come in as 1.23456000000

I was able to fix it by changing "Value" to "Text" like this:

INQUIRE EX-WORKSHEET @Range(cell-range)::Text in VOI-VEN-NUM

Hope this saves someone else some aggravation.

1 Reply
DougP Outstanding Contributor.
Outstanding Contributor.

RE: Excel cell value adding a decimal point

Thank you Steve! This is very helpful.

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.