joshman108
Active Member
- Joined
- Jul 6, 2016
- Messages
- 310
Workbook
https://drive.google.com/file/d/0B1TMLUGTVwb9RTdSVUM3aDNMNFE/view?usp=sharing
The formula being:
=IFERROR(INDEX($L$1:$L$5000,SMALL(IF(ISNUMBER(SEARCH("|"&$B2,"|"&$L$1:$L$5000)),
ROW($L$1:$L$5000)-ROW($L$1)+1),COLUMNS($E$2:E2))),"")
The idea is it searches each value in B starting at b2 against l1:l5000 and returns the first found instance to e2, then f2,g2,h2,i2,k2 as you drag right and e3 (etc) as you drag down. I have marked in yellow related values in b2 and l:l as they should be returned in e2,f2,g2.
Can someone help explain why this wouldn't be working?
This is part of a macro, but I have entered the formula in by hand to the same results. If you want you may click sheet 1, run the sub in module 3 to see where I started from and where I wound up. The top sub in module 2 is the completed process, but not important to this.
EDIT: After posting my brain always starts thinking differently, so I was able to determine that the value in b2 needs to be the first thing in a given string of L:L as opposed to just being present in the middle. How may we amend this formula to account for this?? Thanks again!
https://drive.google.com/file/d/0B1TMLUGTVwb9RTdSVUM3aDNMNFE/view?usp=sharing
The formula being:
=IFERROR(INDEX($L$1:$L$5000,SMALL(IF(ISNUMBER(SEARCH("|"&$B2,"|"&$L$1:$L$5000)),
ROW($L$1:$L$5000)-ROW($L$1)+1),COLUMNS($E$2:E2))),"")
The idea is it searches each value in B starting at b2 against l1:l5000 and returns the first found instance to e2, then f2,g2,h2,i2,k2 as you drag right and e3 (etc) as you drag down. I have marked in yellow related values in b2 and l:l as they should be returned in e2,f2,g2.
Can someone help explain why this wouldn't be working?
This is part of a macro, but I have entered the formula in by hand to the same results. If you want you may click sheet 1, run the sub in module 3 to see where I started from and where I wound up. The top sub in module 2 is the completed process, but not important to this.
EDIT: After posting my brain always starts thinking differently, so I was able to determine that the value in b2 needs to be the first thing in a given string of L:L as opposed to just being present in the middle. How may we amend this formula to account for this?? Thanks again!
Last edited: