Search with wildcards symbols in IF fnction

A

Alex Gildenberg

Hello

I wonder if I can use IF function with wildcards.

If I have several values in the Excel column, like

B1
C1
A1
B2
D1

and I'd like to find last instance of a pattern "B*" (B2 in our case)
Is there a way to do so?

Thanks in advance
Alex
 
M

Max

One try:

Values posted are in col A, A1 down

Put in B1: =COUNTIF($A$1:A1,"B"&"*")
Copy B1 down

Put in say, C1: =OFFSET($A$1,MATCH(MAX(B:B),B:B,0)-1,)

C1 returns "B2"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top