enquirerfm Posted May 7, 2010 Posted May 7, 2010 I have a field with two numbers in it (nfield1) which are separated with a dash e.g. 19-20. I want to add these numbers together and take and average and post to another empty field (nfield2). Not sure how to do this... Some imported records have the numbers in a format 19/20 - same thing. Having obtained this av. number e.g. 19.5 - I wish to convert it to a number on a 100 pt scale e.g. in this case 99. Is this just a question of using the Substitute function? Thx for any help.
Mike J Posted May 7, 2010 Posted May 7, 2010 Are these test scores over time? Can you expand on the what you are trying to do a little more. What do these numbers mean? How are they related? Why do you have the two numbers in one field?
comment Posted May 7, 2010 Posted May 7, 2010 (edited) Try = Let ( s = Substitute ( nfield1 ; [ "-" ; ¶ ] ; [ "/" ; ¶ ] ) ; Average ( GetValue ( s ; 1 ) ; GetValue ( s ; 2 ) ) ) or = Evaluate ( Substitute ( nfield1 ; [ "-" ; "+" ] ; [ "/" ; "+" ] ) ) / 2 This will give you the 19.5 part. I didn't quite get by what logic it should become 99. Edited May 7, 2010 by Guest
Recommended Posts
This topic is 5373 days old. Please don't post here. Open a new topic instead.
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 accountSign in
Already have an account? Sign in here.
Sign In Now