INDEX & MATCH with COUNTA

Charmwah

Board Regular
Joined
Jan 23, 2017
Messages
64
Hi all

I've got a formula which is designed to look at a target value and match all the customers who have that target value. It works perfectly up to a certain point, whereby it returns incorrect values. By this I mean that it returns a match for each customer in the database (when it should only return two matching customers). I've racked my brains checking and re-checking the formula, as well as checking all spellings in the index list and range names including any accidental spaces, the range values, or any information out of order and can't see any. My formula is below:

Code:
=IFERROR(OFFSET(GuardDB!$A$3,SMALL(IF(OFFSET(GuardDB!$A$3,1,INDEX(OtherList!$A$2:$A$413,MATCH($K$3,ProdListSung,0)),COUNTA(GuardDB!$A$4:$A$21),1)<>"",ROW(GuardDB!$A$4:$A$21),""),ROW()-ROW($N$3))-3,0),"")

Where:

GuardDB! = Database tab
OtherList! = List tab for index
ProdListSung = Range name
$K$3 = Target value

Does anybody have any ideas? Is there a column limit which i'm hitting? Is it possible that i've got a corrupted file (I've had this happen before but on early versions of Excel, this is Excel 2016)?

Thanks in advance!
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
You're using SMALL
Wouldn't this be an array formula?
You haven't mentioned you've entered this as an array formula anywhere.
 
Upvote 0
Hi Special-K99

It is indeed an array formula and it is entered as such, my apologies if that wasn't made clear. Like I say it works as it should up to a point...

Kind regards
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,196
Members
452,616
Latest member
intern444

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