Find Matching Result in Custom State and Return Index

I have a list of numbers that has been sorted a specific way and want to identify the index # within the array that a specific number appears.

Example:

Custom State “CS1” is a list of numbers with values as follows: 15, 2004, 1845, 95, 1654

I want to search the custom state to find a match for “95” dynamically (i.e. do this to about 100 lists and find the matching index). In this case I want the answer (result) to be “4” as an output (95 shows up 4th in the list of numbers).

How do I do this?

if the numbers arent varying, use an option set.

The list is dynamic (growing over time to about 100 numbers).

This topic was automatically closed after 70 days. New replies are no longer allowed.