New Contributor

## How to match value in List with code

Hi, All

Referring to the photo below

Suppose that there is a line item call YMD (value is 202006)

How to use this YMD to get the 'Test2' in List with matching the code (value is 20200620-2)

2 ACCEPTED SOLUTIONS

Accepted Solutions
Master Anaplanner/Community Boss

## Re: How to match value in List with code

The formula for this is FINDITEM(list name,code)

Nathan Rudman, Anaplan Model Builder
Community Boss

## Re: How to match value in List with code

use finditem function, finditem returns the list item based on matching code with text based property , so add lineitem which is list formatted to that list and use finditem('list name',ymd) to retuen the list item

4 REPLIES 4
Master Anaplanner/Community Boss

## Re: How to match value in List with code

In your code, what is the significance of the "-2" at the end? Is this required, and if so, is it standard for all cases that we would match on the left 6 characters, or that we could remove the right 3 characters? Just trying to get an idea for if this is something that you are trying to match on as well, or if this something that would get left our in the matching exercise.

Jason

New Contributor

## Re: How to match value in List with code

We can ignore '-2' , let's change the value from 20200602-2 to 202006

in this case, how can i get the 'Test2' with some formula

in other word, if i want to match the value(one or more) in List, which formula or method should i use ?

Community Boss

## Re: How to match value in List with code

use finditem function, finditem returns the list item based on matching code with text based property , so add lineitem which is list formatted to that list and use finditem('list name',ymd) to retuen the list item

Master Anaplanner/Community Boss

## Re: How to match value in List with code

The formula for this is FINDITEM(list name,code)

Nathan Rudman, Anaplan Model Builder