Find match for nth value with multiple criteria

Godwin117

Board Regular
Joined
Dec 19, 2019
Messages
68
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I have this formula, I feel I am making a very small mistake, but I keep receiving the #N/A error. I've been working on trying to find a fix to it for about 2 days now, any help would be greatly appreciated.
1 2 3 4 5 2 2 6
=INDEX('1 SUS BDE'!C6:C3500,SMALL(IF('1 SUS BDE'!B6:B3500=UICs,IF('1 SUS BDE'!J6:J3500=D5, ROW('1 SUS BDE'!B6:B3500)-ROW(INDEX('1 SUS BDE'!B6:B3500,1,1))+1)),1))

The numbers above the formula help with what I'm referring to.

1. Is the data that I am trying to match to print in the current cell
2. Is where the first range is located
3. Is where the first criteria is located
4. Is where the second range is located
5. Is where the second criteria is located
6. Is what nth number I'd like to reference
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Try putting quote marks around "UICs" if that is text that you are trying to match in column B
 
Upvote 0
I don't think I mentioned that in my original post
No, you didn't. ;)

In that case try
=INDEX('1 SUS BDE'!C6:C3500,SMALL(IF(ISNUMBER(MATCH('1 SUS BDE'!B6:B3500,UICs,0)),IF('1 SUS BDE'!J6:J3500=D5,ROW('1 SUS BDE'!B6:B3500)-ROW(INDEX('1 SUS BDE'!B6:B3500,1,1))+1)),1))
 
Upvote 0
No, you didn't. ;)

In that case try
=INDEX('1 SUS BDE'!C6:C3500,SMALL(IF(ISNUMBER(MATCH('1 SUS BDE'!B6:B3500,UICs,0)),IF('1 SUS BDE'!J6:J3500=D5,ROW('1 SUS BDE'!B6:B3500)-ROW(INDEX('1 SUS BDE'!B6:B3500,1,1))+1)),1))
Thank you, that worked perfectly.
 
Upvote 0

Forum statistics

Threads
1,214,540
Messages
6,120,107
Members
448,945
Latest member
Vmanchoppy

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