=FILTER over merged cells, avoiding #SPILL! error.

Status
Not open for further replies.

Marhier

Board Regular
Joined
Feb 21, 2017
Messages
128
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
Good day everyone.
I've got a small problem I'm hoping someone can help me solve.

I've created a dashboard which has a small table in the top right hand corner, and a table of similar size underneath it.
Above these tables is a search box, where the user types a product code, or supplier name and it returns results based on a filter function.

I believe I know the reason why I'm getting a #SPILL! error - it's because the second column of my table consists of 3 columns of merged cells.
I'm just wondering if it's possible to perform this function over merged cells without getting this error.

My formula is as follows:
Excel Formula:
=IF(LEN(V6)=0,"No Records Found",TAKE(FILTER(Data[[MStockCode]:[MPriceUom]],ISNUMBER(SEARCH(V6,Data[MStockCode]))+ISNUMBER(SEARCH(V6,Data[Supplier Name]))+ISNUMBER(SEARCH(V6,Data[MPriceUom])),"No Records Found"),20))

Table looks as follows:

1675773193572.png


All help is greatly appreciated.
Thank you.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Status
Not open for further replies.

Forum statistics

Threads
1,216,163
Messages
6,129,225
Members
449,495
Latest member
janzablox

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top