=filter function

Copper Contributor

Hey I need to create a spreadsheet of reviews for a project I'm working on. I have a library of reviews sorted into 4 columns of product code, star rating, name and review. I have a separate workbook where on sheet 2 I paste the product codes that I need review codes for then it searches the library and returns the information on sheet 1, (this is more of an aesthetic look that for function) and it all works fine. My issue comes when I need multiple reviews for the same product, so is there a way of rather than the lookup only pulling the first product code it see's can it pull all the lines with that product code.

Formula I first used was
=XLOOKUP(Sheet2!B2,'[Review LIbrary.xlsx]Sheet1'!$A:$A,'[Review LIbrary.xlsx]Sheet1'!$A:$D,,0,1)

 

I then changed to a filter function so that if i had more than one result for the product it would load them first then the next product however it either does not auto fill down over or if i pull it down then it returns the #spill error

 

=FILTER('[Review LIbrary.xlsx]Sheet1'!$A:$D,'[Review LIbrary.xlsx]Sheet1'!$A:$A=Sheet2!B2)

 

how can i get it so its look up a range of products from sheet 2, finds the reviews in the library workbook, and then lists the all the reviews for that product and then the next ect rather than just the first product 

1 Reply

@liamgoodmancc  Well, the FILTER function you wrote could work. Though, it's difficult to say why it doesn't give the desired result if you don't upload an example of your file with the incorrect result and explaining why and what's expected.

 

Be aware that the FILTER function tries to output an entire array in one go. If anything gets in the way, you'll get #SPILL!. So NEVER copy down or across a formula with dynamic array functions as it will obstruct itself and produce the #SPILL! error.