Vlookup to check matching items, If also bought from 'Sarqusan', 'Sarqusan' in column D

toony

Board Regular
Joined
Mar 20, 2014
Messages
91
Office Version
  1. 365
Hi

I have 2 suppliers, Anglian and Sarqusa and we buy some of the items from both suppliers and want to find out which items that we buy from the secondary supplier (Sarqusan) we use. Columns A to C is the main excel I use with our main suppliers like Anglian. Then I have another report with loads of other parts only for Sarqusan. It's very long list and wanted to use the Vlook up formula to identify which items appear in the Sarqusan report that we are already buying from Anglian if that makes sense, in the column D as below. What would you advise. I've tried using the Vlook up formula so that Sarqusan appears in column D whenever it's also bought from Sarqusan. I have used it in the past but can't remember. There are probably easier ways to find the info which I would like to know as well but need to know how to use the Vlookup formula as well please. I really appreciate your help. Thanks

ABCDEFGH
MaterialVendor nameDescriptionVlookup
Form

Vendor nameMaterial
1RM611266Anglia Metals LtdCableSarqusanRM075005
2RM075005Anglia Metals LtdCrossy
Sarqusan

<tbody>
</tbody>
RM611807
3RM604663Anglia Metals LtdPump
Sarqusan

<tbody>
</tbody>
RM61155
4RM611266Anglia Metals LtdBP wire
Sarqusan

<tbody>
</tbody>
RM611111
5RM611809Anglia Metals LtdCurl
Sarqusan

<tbody>
</tbody>
RM611266
6RM611807Anglia Metals LtdClass
Sarqusan

<tbody>
</tbody>
RM611804
7RM072229Anglia Metals LtdCu wire 2,60mm (oxygen 250ppm)
Sarqusan

<tbody>
</tbody>
RM611266
8RM611804Anglia Metals LtdCu wire 2,60mm (oxygen 250ppm)SARKUYSAN A.SRM611263
9RM611263Anglia Metals LtdCu wire 2,60mm (oxygen 250ppm)SARKUYSAN A.SRM611266

<tbody>
</tbody>

****** id="cke_pastebin" style="position: absolute; top: 218px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">
Sarqusan

<tbody>
</tbody>
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Maybe something like this:
Excel Workbook
ABCDEFGHI
1MaterialVendor nameDescriptionVlookupVendor nameMaterialUsing INDEX - MATCH
2Form
3RM611266Anglia Metals LtdCableSarqusanSarqusanRM075005Sarqusan
4RM075005Anglia Metals LtdCrossySarqusanSarqusanRM611807Sarqusan
5RM604663Anglia Metals LtdPumpSarqusanRM61155
6RM611266Anglia Metals LtdBP wireSarqusanSarqusanRM611111Sarqusan
7RM611809Anglia Metals LtdCurlSarqusanRM611266
8RM611807Anglia Metals LtdClassSarqusanSarqusanRM611804Sarqusan
9RM072229Anglia Metals LtdCu wire 2,60mm (oxygen 250ppm)SarqusanRM611266
10RM611804Anglia Metals LtdCu wire 2,60mm (oxygen 250ppm)SarqusanSARKUYSAN A.SRM611263Sarqusan
11RM611263Anglia Metals LtdCu wire 2,60mm (oxygen 250ppm)SarqusanSARKUYSAN A.SRM611266SARKUYSAN A.S
Sheet
 
Upvote 0
Hi,

That's more than I expected. Thank you very much. What does the ISNA function do?
Maybe something like this:

ABCDEFGHI
1MaterialVendor nameDescriptionVlookup Vendor nameMaterialUsing INDEX - MATCH
2Form
3RM611266Anglia Metals LtdCableSarqusan SarqusanRM075005Sarqusan
4RM075005Anglia Metals LtdCrossySarqusan SarqusanRM611807Sarqusan
5RM604663Anglia Metals LtdPump SarqusanRM61155
6RM611266Anglia Metals LtdBP wireSarqusan SarqusanRM611111Sarqusan
7RM611809Anglia Metals LtdCurl SarqusanRM611266
8RM611807Anglia Metals LtdClassSarqusan SarqusanRM611804Sarqusan
9RM072229Anglia Metals LtdCu wire 2,60mm (oxygen 250ppm) SarqusanRM611266
10RM611804Anglia Metals LtdCu wire 2,60mm (oxygen 250ppm)Sarqusan SARKUYSAN A.SRM611263Sarqusan
11RM611263Anglia Metals LtdCu wire 2,60mm (oxygen 250ppm)Sarqusan SARKUYSAN A.SRM611266SARKUYSAN A.S

<colgroup><col style="width:30px; "><col style="width:114px;"><col style="width:132px;"><col style="width:226px;"><col style="width:154px;"><col style="width:35px;"><col style="width:24px;"><col style="width:117px;"><col style="width:89px;"><col style="width:193px;"></colgroup><tbody>
</tbody>

Spreadsheet Formulas
CellFormula
D3=IF(ISNA(VLOOKUP(A3,$H$3:$H$11,1,0)),"","Sarqusan")
I3=IFERROR(INDEX($G$3:$G$11,MATCH(A3,$H$3:$H$11,0)),"")

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4
 
Upvote 0
Sorry but wanted to go a bit further. If there is no match the field is empty. How could I make formula to say 'No match' instead of it being empty. Many thanks
 
Upvote 0
This will give the No Match.
If there is no match the formulas will give an error of #N/A. Used with the IF function the ISNA catches this error and will return "No Match".
Excel Workbook
ABCDEFGHI
1MaterialVendor nameDescriptionVlookupVendor nameMaterialUsing INDEX - MATCH
2Form
3RM611266Anglia Metals LtdCableSarqusanSarqusanRM075005Sarqusan
4RM075005Anglia Metals LtdCrossySarqusanSarqusanRM611807Sarqusan
5RM604663Anglia Metals LtdPumpNo MatchSarqusanRM61155No Match
6RM611266Anglia Metals LtdBP wireSarqusanSarqusanRM611111Sarqusan
7RM611809Anglia Metals LtdCurlNo MatchSarqusanRM611266No Match
8RM611807Anglia Metals LtdClassSarqusanSarqusanRM611804Sarqusan
9RM072229Anglia Metals LtdCu wire 2,60mm (oxygen 250ppm)No MatchSarqusanRM611266No Match
10RM611804Anglia Metals LtdCu wire 2,60mm (oxygen 250ppm)SarqusanSARKUYSAN A.SRM611263Sarqusan
11RM611263Anglia Metals LtdCu wire 2,60mm (oxygen 250ppm)SarqusanSARKUYSAN A.SRM611266SARKUYSAN A.S
Sheet
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,552
Members
449,088
Latest member
davidcom

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