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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ends With 1

Status
Not open for further replies.

Ox73

IS-IT--Management
Nov 5, 2004
16
Hi does anybody know if there is a formula that can be created to only display the value of a field that ends in a particular character for example:

If I have a list of numbers.

51234
22366
39385
69875
51864
59857

To only display all the fields that contain information that ends with 5 for example so my results should only show these two numbers:

39385
69875

And suppress all others?
 
Use Right(Totext({Table.Field},0),1) to get the last digit of the number.

Use this condition to suppress ie
Right(Totext({Table.Field},0),1) <> "5"

 
Are these actual number fields or strings?

I like to use the Mod functions for Number fields. In your case, a suppression formula using Mod would look like:

{Table.Field} Mod 10 <> 5

-dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top