Multiple Match Small Lookup with partial text

SimonThom

New Member
Joined
Feb 13, 2017
Messages
12
Hi,

I have the following formula

Code:
 =IFERROR(INDEX(Data!$D$2:$D$100, SMALL(IF($A$2=Data!$C$2:$C$50, ROW(Data!$C$2:$C$50)-ROW($A$2)+1), ROW(1:1))),"" )

Which indexes the D column in Data tab and then performs a Small Array on the C column of Data which then displays the corresponding data from the D column in Data IF it matches what is in A2 of the main page.

Only issue I have is making A2 a partial match as it is a person's first name and the C column in Data is their username (which they have multiple of and is appended with a number) e.g.

A2 = Simon
Data!C2 = simon
Data!C3 = simon2
Data!D2 = Linux
Data!D3 = Windows

Currently it only displays Linux, unless I change A2 to Simon2.
I want it to list both.
I've tried
Code:
 SMALL(IF($A$2&"*"=Data!$C$2:$C$50
but it didn't work :(
 
Thanks for the input and the ouput…


Book1
ABCD
1
2Hostname1OperationalsimonHP Z4 G4
3Hostname2Operationalsimon2HP Z440
4Hostname3OperationaldavidDell T1350
5Hostname4Operationaldavid2HP Z440
6
Data



Book1
ABC
1SimonSimonHP Z4 G4
2SimonHP Z440
3DavidDavidDell T1350
4DavidHP Z440
Sheet2


In A1 enter and copy down:

=IF(B1="",LOOKUP(REPT("z",255),$B$1:B1),B1)

In C1 control+shift+enter, not just enter, and copy down:

=IFERROR(INDEX(Data!$D$2:$D$100, SMALL(IF(ISNUMBER(SEARCH($A1,Data!$C$2:$C$50)), ROW(Data!$C$2:$C$50)-ROW($A$2)+1),COUNTIFS($A$1:A1,A1))),"")
 
Upvote 0

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Ah so I have to have a name reference for every line as opposed to the single point of ref.
I was trying to do it in a cleaner way but if it works, it works :) I'll just hide column A once complete.

Thank you so much for this guys!
 
Upvote 0
Spoke too soon, appears it doesn't pick up the right details for every single entry..
Will take a look myself to see where it breaks and if I get lost will update thread.
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,310
Members
452,634
Latest member
cpostell

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