how to search the required criteria using Index match with a given condition

supraman

New Member
Joined
Aug 12, 2021
Messages
3
Office Version
  1. 2016
Platform
  1. Windows
Hi Team,

Please help me with the below issue, in my excel file sheet 1 i have , where i need to identify the seller name from the Sheet 2 data given below.

I tried with Index match to get the seller name but failed to do as i am unable to use If condition in my array, to look for selected from the D column (nomination selected) , any different method to get rid of this issue, please suggest.

Sheet 1
ProductRequirement Received dateSelected Seller name
SAP1/1/2018
SQL1/15/2021
Temenos5/12/2021
Sheet 2
ProductSeller nameRequirement Received dateNomination selected
SAPMax1/1/2018Selected
SAPJean1/1/2018Rejected
PythonPhillip12/1/2019Rejected
PythonSovit12/1/2019Rejected
PythonPuneet12/1/2019Selected
SQLSteave1/15/2021Rejected
SQLMichel1/1/2021Rejected
SQLPaul1/15/2021Selected
SQLShree1/1/2021Selected
TemenosJecab5/12/2021Rejected
TemenosPhill2/2/2021Selected
TemenosSamual2/2/2021Rejected
TemenosCoumar5/12/2021Selected
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Try this:

Dante Amor
ABC
1ProductRequirement Received dateSelected Seller name
2SAP01/01/2018Max
3SQL15/01/2021Paul
4Temenos12/05/2021Coumar
Sheet1
Cell Formulas
RangeFormula
C2:C4C2=INDEX(Sheet2!$B$2:$B$14,SUMPRODUCT((Sheet2!$A$2:$A$14=A2)*(Sheet2!$C$2:$C$14=B2)*(Sheet2!$D$2:$D$14="Selected")*ROW(Sheet2!$B$2:$B$14))-ROW(Sheet2!$B$2)+1)
 
Upvote 0
Solution
Try this:

Dante Amor
ABC
1ProductRequirement Received dateSelected Seller name
2SAP01/01/2018Max
3SQL15/01/2021Paul
4Temenos12/05/2021Coumar
Sheet1
Cell Formulas
RangeFormula
C2:C4C2=INDEX(Sheet2!$B$2:$B$14,SUMPRODUCT((Sheet2!$A$2:$A$14=A2)*(Sheet2!$C$2:$C$14=B2)*(Sheet2!$D$2:$D$14="Selected")*ROW(Sheet2!$B$2:$B$14))-ROW(Sheet2!$B$2)+1)
Thanks a ton... you make it so simple for me... i was trying many things but this simple array is awesome !! Appreciated man.. Cheers
 
Upvote 0
I'm glad to help you. Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,438
Messages
6,124,873
Members
449,192
Latest member
MoonDancer

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