not exact search help

ALINCO

New Member
Joined
Dec 9, 2018
Messages
11
Hi all, I don't do spread sheets often and so am not fluent at all. I have muddled my way to a point that has given me an "almost working to my needs" data base.
I have 4 sets of drawer units
Column "A" lists up to 1006 electronic components.
Column "B" lists 4 x 50 drawer units containing resistors, transistors, capacitors etc
Column "C" lists the individual drawers / 3 partitions
Column "D" lists the 3 partitions within each drawer... 3,2,1
Formula below is in "H,I,J" 3 down to 10 to output, from "H16" search cell, 3 results.

{=IF(ISERROR(INDEX($A$1:$B$1006,SMALL(IF($A$1:$A$1006=$H$16,ROW($A$1:$A$1006)),ROW(1:1)),2)),"",INDEX($A$1:$B$1006,SMALL(IF($A$1:$A$1006=$H$16,ROW($A$1:$A$1006)),ROW(1:1)),2))}

(Obviously this is slightly different for the other two columns.)

If I search for "SY320" the output cells return "3,8,2", drawer set 3, drawer 8, section 2.
If I search for "SY360" the output cells return "3,8,2", drawer set 3, drawer 9, section 3.

Could anyone give me the formula or alter the above that allows me to input search for example "SY" to return both the above results, and indeed any other combination of input string.

Thank you and apologies in advance for any error in etiquette regarding terminology or my posting method if incorrect.
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
In that case you can use IfError as shown by Aladin rather than If(IsError
=IFERROR(INDEX($A$1:$B$1000,SMALL(IF(ISNUMBER(SEARCH($H$16,$A$1:$A$1000)),ROW($A$1:$A$1000)),ROW(A1)),2),"")

The ROW bits you have are not robust. Adding rows in front of the row of A1 will create havoc.
 
Upvote 0
Ok I can see it needs to be something like...

=HYPERLINK("#"&CELL("address",IFERROR(INDEX($A$1:$F$1000,SMALL(IF(ISNUMBER(SEARCH($H$3,$A$1:$A$1000)),ROW($A$1:$A$1000)),ROW(A1)),6),""))

... but no idea how to join the dots. The link will be in column "F" and the link to click to the PDF needs to land in column "N"
 
Last edited:
Upvote 0
If your link in col F is like
C:\MrExcel\book1.pdf

then use
=HYPERLINK(IFERROR(INDEX($F$1:$F$1000,SMALL(IF(ISNUMBER(SEARCH($H$3,$A$1:$A$1000)),ROW($A$1:$A$1000)-ROW($A$1)+1),ROWS($1:1))),""))
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,313
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