Forum Discussion
davids4500
Jan 24, 2024Copper Contributor
Excel Formulas and functions Vlookup for partial search and multiple conditions and OR condition
I have a excel spreadsheet and i need to lookup all itemcodes on worksheet "ChreosdataA", that have either "AFR" or "CCH" in column A:A, and have the words "Air Freshener" in column C. and display them in the worksheet "Corestock" in column A with no blank rows between them. Also the words are only partial matches as all codes are unique except for the prefix. I hope you can help please. David
Thanks! The formula should be entered in a single cell, and there should be enough empty cells below it for the result.
See the attached version.
=FILTER(ChreosdataA!A2:A1000, (ISNUMBER(SEARCH("AFR", ChreosdataA!A2:A1000))+ISNUMBER(SEARCH("CCH", ChreosdataA!A2:A1000)))*ISNUMBER(SEARCH("Air Freshener", ChreosdataA!C2:C1000)), "")
If you have more than 1000 rows of data, expand the ranges in the formula
- davids4500Copper Contributor
HI
I need to remove the crossed out section, what modification to the formula do i need to make?
=FILTER(ChreosdataA!A2:A1000, (ISNUMBER(SEARCH("AFR", ChreosdataA!A2:A1000))+I
SNUMBER(SEARCH("CCH", ChreosdataA!A2:A1000)))*ISNUMBER(SEARCH("Air Freshener", ChreosdataA!C2:C1000)), "")Thank you david
This should do it:
=FILTER(ChreosdataA!A2:A1000, ISNUMBER(SEARCH("AFR", ChreosdataA!A2:A1000))*ISNUMBER(SEARCH("Air Freshener", ChreosdataA!C2:C1000)), "")
- davids4500Copper Contributor
Hi.Thank you for the formula. However, i receive a #SPILL as a return
I have attached part of the spreadsheet that I am using with the relevant columns.
Thanking you
David
Thanks! The formula should be entered in a single cell, and there should be enough empty cells below it for the result.
See the attached version.
- Harun24HRBronze ContributorAttach a sample excel workbook and then show your desired output.