0

I'm trying to mix regex with a filter in Google Sheets. What I have at the moment is

=filter(AD:AD,X:X=X2,right(Z:Z,1)={1,2,3,4,5,6,7,8,9}) 

The regular expression is that the final character in column Z is a digit between 1-9 but I cannot figure out how to mix the functions.

Any advice would be greatly appreciated!

1 Answer 1

0

Try this formula:

=filter(H2:H7,I2:I7=F2,regexmatch(right(J2:J7,1),"[0-9]"))


Sample data

sample

2
  • This works! Thank you very much Apr 6, 2021 at 8:40
  • Great. You might consider accepting the answer.
    – Tedinoz
    Apr 7, 2021 at 6:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.