Array Formula with partial match.

bnussbaum1

New Member
Joined
May 15, 2023
Messages
7
Office Version
  1. 2019
Platform
  1. Windows
I am looking to do an array formula with a partial string match. Does not seem to be working. Are array formulas different than regular index-match formulas with partial string matches?

This works great!
{=IF(CT5="","",(INDEX(testSp23.xlsx!$GN:$GN,MATCH(1,($K5=testSp23.xlsx!$O:$O)*(CT$1=testSp23.xlsx!$FQ:$FQ),0))))}
with testSp23.xlsx referring to another spreadsheet.


However, If I try to add &"*" to the sheet to make CT$1 a partial string match rather than an exact match, it stops working.

{=IFERROR(INDEX(testSp23.xlsx!$FY:$FY,MATCH(1,($K2=testSp23.xlsx!$O:$O)*(CT$1&"*"=testSp23.xlsx!$FQ:$FQ),0)),"")}

Interested in some thoughts here.
I have done partial string matches before, and referencing another workbook is not new either. But Array formulas are new for me.

Credit to:

for guidance so far. Just trying to put the pieces together.
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Try:

Excel Formula:
=IFERROR(INDEX(testSp23.xlsx!$FY:$FY,MATCH(1,($K2=testSp23.xlsx!$O:$O)*(ISNUMBER(SEARCH(CT1&"*",testSp23.xlsx!$FQ:$FQ))),0)),"")
(Is an array formula)

--------------
Let me know the result and I'll get back to you as soon as I can.
Cordially
Dante Amor
--------------
 
Upvote 0
Hmmm... Thanks for the idea DanteAmor. IsNumber would likely be needed. Unfortunately still not working. the IfError causes it to just remain blank--so not working yet. I continue to wonder if array formulas can handle a partial string...

Also, wondering if the fact that I am running Office 2019 is part of the problem with this...
 
Upvote 0
Works for me:
Dante Amor
AFKCT
1ct1
2examplek2
indx
Cell Formulas
RangeFormula
F2F2=IFERROR(INDEX(testSp23.xlsx!$FY:$FY,MATCH(1,($K2=testSp23.xlsx!$O:$O)*(ISNUMBER(SEARCH(CT1&"*",testSp23.xlsx!$FQ:$FQ))),0)),"")
Press CTRL+SHIFT+ENTER to enter array formulas.


Dante Amor
AOFQFY
1
2k2ct1 masexample
testSp23.xlsx




Better this option:

Excel Formula:
=IFERROR(INDEX(testSp23.xlsx!$FY:$FY,MATCH(1,($K2=testSp23.xlsx!$O:$O)*(CT1=LEFT(testSp23.xlsx!$FQ:$FQ,LEN(CT1))),0)),"")
Press CTRL+SHIFT+ENTER to enter array formulas.

;)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,889
Messages
6,175,223
Members
452,620
Latest member
dsubash

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top