I have a row of text values.

Some of these text values end in "95"

I'm trying to build an array formula that will create another list with only those that end in "95.

What I am trying is not working

=INDEX($A$1:$Z$1,0,MATCH("*95",$A$1:$Z$1,0))

any ideas?

Some of these text values end in "95"

I'm trying to build an array formula that will create another list with only those that end in "95.

What I am trying is not working

=INDEX($A$1:$Z$1,0,MATCH("

any ideas?

If your list is in A1:Z1 then to build another horizontal list of only those values try this formula in A3 confirmed with CTRL+SHIFT+ENTER and copied across

=IFERROR(INDEX($A$1:$Z$1,S

If you want a vertical list then replace COLUMNS function at the end with ROWS and drag down like:

=IFERROR(INDEX($A$1:$Z$1,S

see attached example

regards, barry

multi-lookup.xlsx

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.

=IFERROR(INDEX($A$1:$Z$1,S

COLUMN(A1))),"")That should work OK wherever you put it, as long as you are copying across

It doesn't really matter as long as it increments - I use the cell reference of the start cell because it's a little more robust - if you use COLUMN(A1) when starting at E5 that will work but if you now delete column A the A1 reference turns into a #REF! error.

This part of the formula

IF(RIGHT($A$1:$Z$1,2)="95"

returns an array of either FALSE values or the column number of a value ending with 95, i.e. for my example that will return this array

{

1,FALSE,FALSE,4,FALSE,FALSE,FALSE,FALSE,9,FALSE,FALSE,FALSE,FALSE,Fwhere 1, 4 and 9 represent the columns where the data ends with 95

and SMALL in conjunction with the COLUMNS function will take the smallest number in the first formula, 2nd smallest in the next, 3rd smallest in the next etc. .....and then INDEX gives you the relevant value from that numbered cell in the range

regards, barry