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!

0

Try this formula:

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


Sample data

sample

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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