Index/Match Paired with IF Function?!??

aware073

Board Regular
Joined
Jun 5, 2015
Messages
54
I need to formulate something that will look up by part number (Columns A) to put an X under the Vendor names in Sheet 2 to show which of the part numbers we've previously purchased from each vendor (column L in sheet 1). I know index match will look up by two values (part number and vendor code?) to insert a value but I cant seem to get that to work here.

**Plus, more times than not I have part numbers duplicated in the list on sheet 1 because we've purchased from multiple vendors.

I was thinking if it would just return the vendor number I could put that formula inside an IF formula for >0,X,"") to just get an X in the box for each vendor we've purchased the item from before.
Any suggestions? I'm stumped and I know this will be an easy one for you guys.
Thanks in advance!!



Sheet 1

Excel 2010
AJLM
1MaterialLPPVendor CodeVendor Name
220000001
420000002
620000003
820000004
920000004
1120000005
1320000006$ 7.02300390JOY GLOBAL UNDERGOUND MINING LLC
1420000006
1620000007$ 10.22300390JOY GLOBAL UNDERGOUND MINING LLC
1720000007$ 10.42300390JOY GLOBAL UNDERGOUND MINING LLC
1820000007$ 9.92300390JOY GLOBAL UNDERGOUND MINING LLC
1920000007
2120000008$ 13.18300242FAIRMONT SUPPLY COMPANY
2220000008
2420000009$ 2.07305412GAULEY-ROBERTSON INC
FE Inv with LPP


Sheet 2

Excel 2010
AFGHIJKL
1300003300013300020300026300030300047
2Material No.Lowest LPPABSOLUTE INNOVATIONSASSOCIATED PALLET INCBAKER&SON'S PLUMBING INCBATTERY SPECIALISTSBELT TECH INDUSTRIAL INCBOBCAT OF SPRINGFIELD
320000001
420000002
520000003
620000004
720000005
820000006
920000007$ 9.92
1020000008
1120000009$ 2.07
1220000010
Material & Vendors
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Just out of my head, enter in G3, copy to the right and below, the following array formula (confirm with CTRL-SHIFT-ENTER, not just ENTER):
Code:
=IF(ISERROR(MATCH($A3&G$1,'Sheet 1'$A$2:$A$24&'Sheet 1'!$L$2:$L$24,0),"","X")
 
Upvote 0
Just out of my head, enter in G3, copy to the right and below, the following array formula (confirm with CTRL-SHIFT-ENTER, not just ENTER):
Code:
=IF(ISERROR(MATCH($A3&G$1,'Sheet 1'$A$2:$A$24&'Sheet 1'!$L$2:$L$24,0),"","X")

Thanks so much for your reply!! I'm getting "There are too many arguments for this function" now.. Any ideas??
 
Upvote 0
perhaps this in sheet2 cell G3
Code:
=if(sumproduct(--('FE Inv with LPP'!$B$2:$B$16=$B3)*--('FE Inv with LPP'!$D$2:$D$16=D$1))>0,"X","")
 
Last edited:
Upvote 0
In the first formula you gave me, every time I enter it and either hit enter or ctrl-shift-enter, Documents Library opens up.. No clue how that's happening.
This is what the second formula is giving me. I cant figure out what condition its bringing the X in on but its not right :eek:


Excel 2010
AFGHIJ
1300003300013300020300026
2Material No.Lowest LPPABSOLUTE INNOVATIONSASSOCIATED PALLET INCBAKER&SON'S PLUMBING INCBATTERY SPECIALISTS
320000001
420000002
520000003
620000004
720000005
820000006
920000007$ 9.92
1020000008X
1120000009$ 2.07
1220000010
1320000011X
1420000012X
1520000013X
1620000014X
1720000015$ 38.95
1820000016X
1920000017X
2020000018
2120000019
2220000020X
2320000021X
2420000022X
Material & Vendors
 
Upvote 0
ops, my test had different columns, try

Code:
=if(sumproduct(--('FE Inv with LPP'!$A$2:$A$16=$A3)*--('FE Inv with LPP'!$L$2:$L$16=G$1))>0,"X","")
 
Upvote 0
Thanks so much for your reply!! I'm getting "There are too many arguments for this function" now.. Any ideas??

A "!" was missing (the one in bold/red below). Apologies.

Code:
=IF(ISERROR(MATCH($A3&G$1,'Sheet 1'[COLOR="#FF0000"][B]![/B][/COLOR]$A$2:$A$24&'Sheet 1'!$L$2:$L$24,0),"","X")
 
Upvote 0
ops, my test had different columns, try

Code:
=if(sumproduct(--('FE Inv with LPP'!$A$2:$A$16=$A3)*--('FE Inv with LPP'!$L$2:$L$16=G$1))>0,"X","")

Do I need to change anything if my spreadsheet is 40,000 lines.. Its working when I put it in for Joy, who has multiple products right at the top of the list but for the Absolute Innovations vendor I'm getting nothing down around row 9700.
 
Upvote 0

Forum statistics

Threads
1,214,378
Messages
6,119,188
Members
448,873
Latest member
jacksonashleigh99

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