How to Find Multiple Results when Duplicate Variables are in Search Criteria using VLOOKUP in Excel 2010/Windows 7?

dantepatrice

New Member
Joined
Aug 15, 2013
Messages
2
Systems In Use
Excel – Microsoft Office Professional Plus 2010
Windows – Windows 7 Enterprise

Background Information:

· Comparing two sheets: Sheet #1 is the Form 15A and Sheet #2 is the Document Status Report.
· The current formula I’m using is =VLOOKUP(B12,'Document Status Report'! $A$2:$F$15,2,FALSE)
· The result I’m currently receiving are located in columns D (Standard Document Number) and E (Title), which is what I’m looking for, BUT because the LookUp Value must be based on column B (Supplier Document Category Code), I’m not receiving the results the way I would like them to populate.

The Results I Want
Although the search criteria is the same (e.g., BH, BI, CD) under the Supplier Document Category Code column, I would like Excel to not duplicate the value once it has been found. For instance, once the Standard Document Number 28967-999-V555-SOPP-00794 is allocated and assigned to a cell, I would like Excel to NOT use it again. Essentially, I’d like Excel to find the next number based on the same Supplier Document Category Code.

I’m retrieving data from the Document Status Report to incorporate into worksheet Form 15A. See sample worksheets below. Thanks for your help.

Form 15A Worksheet

DOCUMENT DESCRIPTION NO.SUPPLIER DOCUMENT CATEGORY CODEDOCUMENT TITLE
STANDARD DOCUMENT NUMBERTITLE
BSCHEMATICS#N/A
B01BHSingle Line Diagrams28967-999-V555-SOPP-00794Electrical - Slab Heating System
B02BHElectrical Schematic Diagrams28967-999-V555-SOPP-00794Electrical - Slab Heating System
B03BIInstrument Wiring Termination Drawings28967-999-V555-SOPP-00796Electrical Lighting and Equipment - Main Platform
B04BIElectrical Wiring Diagrams including Connection Diagrams for Junction Boxes28967-999-V555-SOPP-00796Electrical Lighting and Equipment - Main Platform
B05BIElectrical Cable Ladder Layout28967-999-V555-SOPP-00796Electrical Lighting and Equipment - Main Platform
B06BIElectrical Lighting and Socket Outlet Layout and Wiring Diagrams28967-999-V555-SOPP-00796Electrical Lighting and Equipment - Main Platform
B07BNLoop Diagrams#N/A#N/A
#N/A#N/A
CCIVIL#N/A#N/A
ColCASite Excavations / Backfill Plan#N/A#N/A
CO2CDPiling Plan#N/A#N/A
CO3CDPiling Design Details#N/A#N/A
C04CDFoundation Engineering Plan, Including Design Concept#N/A#N/A

<tbody>
</tbody>

Document Status Report Worksheet
DCCSDNCDNKWDTDTitle
BH28967-999-V555-SOPP-00794WS9-33333DP-440SD/VDElectrical - Slab Heating System
BH28967-999-V555-SOPP-00795WS9-33334DP-441SD/VDSchematic and Connection Diagrams
BI28967-999-V555-SOPP-00796WS9-33335DP-442SD/VDElectrical Lighting and Equipment - Main Platform
BI28967-999-V555-SOPP-00797WS9-33336DP-443SD/VDElectrical Lighting and Equipment - Roof
BI28967-999-V555-SOPP-00798WS9-33337DP-444SD/VDLighting and Power Distribution Diagram
BI28967-999-V555-SOPP-00799WS9-33338DP-445SD/VDCable Routing - Layout - Main Platform
BI28967-999-V555-SOPP-00800WS9-33339DP-446SD/VDCable Routing - Layout - Roof A
BI28967-999-V555-SOPP-00801WS9-33340DP-447SD/VDCable Routing - Layout - Roof B
BI28967-999-V555-SOPP-00802WS9-33341DP-448SD/VDCable Routing - Layout - Roof C
BI28967-999-V555-SOPP-00803WS9-33342DP-449SD/VDCable Routing - Layout - Roof D
BI28967-999-V555-SOPP-00804WS9-33343DP-450SD/VDCable Routing - Layout - Roof E

<tbody>
</tbody>

If VLOOKUP isn’t the best option, please provide an alternative solution.

Thank you.
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Hi and welcome to Mr Excel Forum

You need an array formula to retrieve the SDNs.

Assuming you are entering the first formula in D2 try this

Array formula in D2 copied down
=IF(COUNTIF('Document Status Report'!$A:$A,B2),INDEX('Document Status Report'!$B:$B,SMALL(IF('Document Status Report'!$A$2:$A$500=$B2,ROW('Document Status Report'!$A$2:$A$500)),COUNTIF($B$2:$B2,$B2))),"")

confirmed with Ctrl+Shift+Enter simultaneously, not just Enter


Then you can use a regular formula in F2 copied down
=IF(D2<>"",VLOOKUP(D2,'Document Status Report'!$B:$F,5,0),"")

confirmed with just Enter

Hope this helps

M.
 
Upvote 0

Forum statistics

Threads
1,214,991
Messages
6,122,628
Members
449,095
Latest member
bsb1122

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