Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trying to sum a text field that has been converted to a number 1

Status
Not open for further replies.

zidol

Technical User
Feb 9, 2016
24
US
I have a text field that I converted to a number. I am not able to get a sum of the new number field. The I have tried the following formulas.

Formula Name: NumPerson1
Formula: ToNumber({IncdApps.NUMBEROFPEOPLE})

I place this formula in the report and the field shows up as a number.
I insert a summary for this new field and get an Error message "The string is a non-numeric".
________________________________________________________________________________________________________________________
Then I tried another formula;
Formula Name: NumPerson2
Formula: Sum(ToNumber({IncdApps.NUMBEROFPEOPLE})) and get an Error message "A field is required here"
__________________________________________________________________________________________________________________________
Then I tried another formula;
Formula Name: NumPerson3
Formula: sum({@NumPerson1}) - it brings me back to the NumPeron1 formula and error message "The string is a non-numeric".

I would appreciate any help!
 
I usually have better luck using the val() function rather than ToNumber()
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top