简体   繁体   中英

Check cell against multiple others, Output Matches “,” Delimited

I have the following Data

SKU Cell (M5) 
SKU Check Range(Table 1, Column J2:J8000) 
Model Range(F2:F8000)

I need to have the following logic converted to the formula for it

IF SKU = SKU Check, Output all models that match from Model Column with ", " delimiters for multiple matches

I hope this makes sense Any help on this would be incredibly appreciated

With Office 365 use:

=TEXTJOIN(", ",TRUE,FILTER(F2:F8000,J2:J8000 = M5,""))

Without O365, vba will be needed. There are many UDF that mimic TEXTJOIN in which one can use an Array IF() to return the correct values. Here is one:

VLOOKUP with multiple criteria returning values in one cell

Or this one that does TEXTJOINIFS:

Merge values of column B based on common values on column A

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM