Copilot for Microsoft 365 Tech Accelerator
Feb 28 2024 07:00 AM - Feb 29 2024 10:30 AM (PST)
Microsoft Tech Community
SOLVED

Excel Formulas and functions Vlookup for partial search and multiple conditions and OR condition

Copper Contributor

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

5 Replies
Attach a sample excel workbook and then show your desired output.

@davids4500 

 

=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

@Hans Vogelaar 

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

best response confirmed by davids4500 (Copper Contributor)
Solution

@davids4500 

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.

@Hans Vogelaar  Well this is so good. Worked perfectly and just what I needed.

Much appreciated and thank you for taking time. 

David

1 best response

Accepted Solutions
best response confirmed by davids4500 (Copper Contributor)
Solution

@davids4500 

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.

View solution in original post