Vlookup Returning Duplicate Values

IrisDiane

New Member
Joined
Dec 11, 2020
Messages
8
Office Version
  1. 2013
Platform
  1. Windows
Hello! I'm having some trouble with Vlookup (I'm quite new to Excel)

I'm trying to produce a report that returns rows that contain the word "EU" in the first column. However when a row is blank, it gives me multiple values for the next cell it finds the word "EU" in. Any help would be greatly appreciated!
 

Attachments

  • 1st Sheet.png
    1st Sheet.png
    49.9 KB · Views: 13
  • 2nd Sheet.png
    2nd Sheet.png
    248.5 KB · Views: 15
  • 1st Sheet.png
    1st Sheet.png
    49.9 KB · Views: 14
  • 2nd Sheet.png
    2nd Sheet.png
    248.5 KB · Views: 14

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 IrisDiane,

The screenshots Ist Sheet is not clear. Also in your case Vlookup will not work.

Please share the screenshot again and the expected result.

Thanks,
Saurabh
 
Upvote 0
Thanks for the reply, here's the updated pictures (Hopefully they came out okay)
 

Attachments

  • Picture1.png
    Picture1.png
    61.4 KB · Views: 12
  • Picture2.png
    Picture2.png
    100.5 KB · Views: 12
  • Wanted Result.png
    Wanted Result.png
    53.4 KB · Views: 13
Upvote 0
Hi,
Thanks for sharing the clear images.

You are checking "EU" in A5 to C17 cells but in Picture1 the first column doesn't contain EU and thus unable to understand how Wanted Results you received.

Please explain the criteria you are using to get the result.

Thanks,
Saurabh
 
Upvote 0
Apologies once again, I didn't get the full image.
 

Attachments

  • Picture5.png
    Picture5.png
    120.9 KB · Views: 2
Upvote 0
Images are difficult anyway as we cannot copy from them. A better option is:

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
Copy.xlsx
ABCDEFGHIJKLMNOP
4EUAllTradeCPUPCommentsTypeActive CACHEUJKUV
5EUAllA120Zero Tolerance HYes12345678
6 -AllB221Do Not Apply INo910111213141516
7EUAllC322 -FYes1718192021222324
8 - AllD423 -FYes25 -ExemptExempt26ExemptExempt -
9 - -E524 -IYesExempt -Exempt272829Exempt -
10 -AllF625 -HYes30 - -313233 - -
11EUAllG726Do Not Apply IYes3435 -36373839 -
12 - -H827Do Not Apply FNo4015101510101310
13EUAllI928Zero Tolerance FNo12345678
14 - -J1029Do Not Apply INo910111213141516
15EUAllK1130Zero Tolerance HNo171819 -21222324
16 -AllL1231Do Not Apply INo0.35311.5312.51
17EUAllM1332Zero Tolerance FYes0.610 -0.01111 -
18
19
20
21
22
23
24
25
26
Blue


Copy.xlsx
ABCDEFGHI
1
2Orgin:Market Destination:EU
3
4
5
6
7Trade NamePAdditional CommentsTrade NameAdditional CommentsTrade NameAdditional Comments
8A1Zero Tolerance
9C3 -
10C3 -
11G7Do Not Apply
12G7Do Not Apply
13G7Do Not Apply
14G7Do Not Apply
15I9Zero Tolerance
16I9Zero Tolerance
17K11Zero Tolerance
18K11Zero Tolerance
19M13Zero Tolerance
20M13Zero Tolerance
21
22
23No Substitutions
24
25
26
27
Blue EU
Cell Formulas
RangeFormula
A8:A20A8=VLOOKUP(I$2,'Blue '!A5:C$17,3,FALSE)
B8:B20B8=VLOOKUP(I$2,'Blue '!A5:D$17,4,FALSE)
C8:C20C8=VLOOKUP(I$2,'Blue '!A5:F$17,6,FALSE)
Cells with Data Validation
CellAllowCriteria
F2:F3List=#REF!
C2:C3List=#REF!


Copy.xlsx
ABCDEFGHI
1
2Orgin:Market Destination:EU
3
4
5
6
7Trade NamePAdditional CommentsTrade NameAdditional CommentsTrade NameAdditional Comments
8A1Zero Tolerance
9C3 -
10G7Do Not Apply
11I9Zero Tolerance
12K11Zero Tolerance
13M13Zero Tolerance
14
15
16
17
18
19
20
21
22No Substitutions
23
24
25
26
Wanted Result
Cell Formulas
RangeFormula
A8:A9A8=VLOOKUP(I$2,'Blue '!A5:C$17,3,FALSE)
B8:B9B8=VLOOKUP(I$2,'Blue '!A5:D$17,4,FALSE)
C8:C9C8=VLOOKUP(I$2,'Blue '!A5:F$17,6,FALSE)
A10A10=VLOOKUP(I$2,'Blue '!A8:C$17,3,FALSE)
B10B10=VLOOKUP(I$2,'Blue '!A8:D$17,4,FALSE)
C10C10=VLOOKUP(I$2,'Blue '!A8:F$17,6,FALSE)
A11A11=VLOOKUP(I$2,'Blue '!A12:C$17,3,FALSE)
B11B11=VLOOKUP(I$2,'Blue '!A12:D$17,4,FALSE)
C11C11=VLOOKUP(I$2,'Blue '!A12:F$17,6,FALSE)
A12A12=VLOOKUP(I$2,'Blue '!A14:C$17,3,FALSE)
B12B12=VLOOKUP(I$2,'Blue '!A14:D$17,4,FALSE)
C12C12=VLOOKUP(I$2,'Blue '!A14:F$17,6,FALSE)
A13A13=VLOOKUP(I$2,'Blue '!A16:C$17,3,FALSE)
B13B13=VLOOKUP(I$2,'Blue '!A16:D$17,4,FALSE)
C13C13=VLOOKUP(I$2,'Blue '!A16:F$17,6,FALSE)
Cells with Data Validation
CellAllowCriteria
C2:C3List=#REF!
F2:F3List=#REF!
 
Upvote 0
Thanks, XL2BB makes it much easier!!

Try these, copied down

IrisDiane.xlsm
ABCDEFGHI
1
2Orgin:Market Destination:EU
3
4
5
6
7Trade NamePAdditional CommentsTrade NameAdditional CommentsTrade NameAdditional Comments
8A1Zero Tolerance
9C3 -
10G7Do Not Apply
11I9Zero Tolerance
12K11Zero Tolerance
13M13Zero Tolerance
14   
15   
16   
Blue EU
Cell Formulas
RangeFormula
A8:A16A8=IFERROR(INDEX(Blue!C:C,AGGREGATE(15,6,ROW(Blue!C$5:C$17)/(Blue!A$5:A$17=I$2),ROWS(A$8:A8))),"")
B8:B16B8=IFERROR(INDEX(Blue!D:D,AGGREGATE(15,6,ROW(Blue!D$5:D$17)/(Blue!A$5:A$17=I$2),ROWS(B$8:B8))),"")
C8:C16C8=IFERROR(INDEX(Blue!F:F,AGGREGATE(15,6,ROW(Blue!F$5:F$17)/(Blue!A$5:A$17=I$2),ROWS(C$8:C8))),"")
 
Upvote 0
Solution
You're welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,215,720
Messages
6,126,443
Members
449,314
Latest member
MrSabo83

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