Two way look up with mutiple duplicate criteria with mutiple return

sanrama

New Member
Joined
May 2, 2015
Messages
23
Office Version
  1. 2013
Platform
  1. Windows
Hi

I am not able to apply formula in G6, tried to applly =IFERROR(INDEX($C$3:$C$30, SMALL(IF(1=((--($E$3=$A$3:$A$30)) * (--($F$3=$B$3:$B$30))), ROW($C$3:$C$30)-2,""), ROW()-2)),""), but failed.

ABCDEFG
1CostSpendingDate
2B4,50,00016-01-2024
3B5,50,00009-02-2024
4B3,37,50017-06-2024
5B33,00,00017-06-2024CostSpendingData
6B12,47,50024-06-2024B4,50,00016-01-2024
7B2,40,00004-06-2024B5,50,00009-02-2024
8Q20,00004-02-2024B3,37,50017-06-2024
9C50,00009-08-2024B33,00,00017-06-2024
10C50,00003-08-2024B12,47,50024-06-2024
11P14,00016-07-2024B2,40,00004-06-2024
12P30,00001-07-2024B2,25,00008-09-2024
13AC61,00028-07-2024
14CA2,50,00027-06-2024
15A20,00010-08-2024
16A15,00022-08-2024
17A1,00,00023-08-2024
18P5,00008-09-2024
19B2,25,00008-09-2024
20C50,00030-08-2024F6IFERROR(INDEX($B$3:$B$23, SMALL(IF(($A$3:$A$23=$E$7), MATCH(ROW($A$3:$A$23), ROW($A$3:$A$23)), ""),ROWS($A$1:A3))),"")
21C25,00009-09-2024G6??
22CA50,00012-09-2024
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
If it is working as expected (I've not tested), then why not change just range in Index function?
So :
Excel Formula:
=IFERROR(INDEX($C$3:$C$23, SMALL(IF(($A$3:$A$23=$E$7), MATCH(ROW($A$3:$A$23), ROW($A$3:$A$23)), ""),ROWS($A$1:A3))),"")
 
Upvote 0
If it is working as expected (I've not tested), then why not change just range in Index function?
So :
Excel Formula:
=IFERROR(INDEX($C$3:$C$23, SMALL(IF(($A$3:$A$23=$E$7), MATCH(ROW($A$3:$A$23), ROW($A$3:$A$23)), ""),ROWS($A$1:A3))),"")
It works perfectly

Thanks Kaper
 
Upvote 0

Forum statistics

Threads
1,224,803
Messages
6,181,055
Members
453,014
Latest member
Chris258

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