VLOOKUP Problem - Duplicate information

zacra777

New Member
Joined
Aug 3, 2017
Messages
4
Hi, I'm stuck and I'm not sure what to do. I'm not what you would call an Advanced Excel user but I'm able to get around and most of the formulas make sense. I've linked an image of what I'm trying to do. Essentially, I'm trying to take information from the Total Responses section and show it on the Top Attributes of Focus section. What I'm getting stuck at is if the number values match it duplicates the entry instead of listing all values. An example: I want to list the top 4 attributes of focus. I take the attributes with the largest number and I use VLOOKUP It takes the largest value and lists them. In the example you'll see the lists on the left side.If there is multiple cells with the same "Largest value" it only lists one of them but displays it multiple times instead of displaying all information with that value. You'll see it shows "C" multiple times. Since C and D share the same value, I want it to list both of them. Instead it lists C twice.Hopefully this makes sense. Please look at the image found here. VLOOKUP Issue - Album on Imgur
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
See if this does what you want.
This is an array formula and must be entered with CTRL-SHIFT-ENTER.

Change ranges to match your data.
Drag formula down as needed.
Excel Workbook
ABCD
110a
211b14c
314c14d
414d11b
514e10a
66f
76g
88h
95i
104j
112k
Sheet
 
Upvote 0
That helps a lot! Question, what if, in your example, Column A changes numbers? Would this formula you've given me automatically change with those numbers?
 
Upvote 0
Yes (if I understand your question). You should be able to change numbers in both the column A and C and the formula will adjust.
 
Upvote 0
This really helped me out and worked perfectly! Follow up question. In the example I provided all my referenced cells were in Columns. How would I change this formula if I wanted to do the same thing but the information was in rows? In this example I have the "score" in the first row and the "category" in the second row. The second table needs to be able to reference the 1st table and spit out information in this particular format. I've tried messing with the formula you provided but it doesn't appear to be working. Would I change ROW to COLUMN? Any additional help would be greatly appreciated. Thank you!

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]5[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]A[/TD]
[TD]b[/TD]
[TD]c[/TD]
[TD]d[/TD]
[TD]e[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Score[/TD]
[TD]Category[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]a[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]b[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]e[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
This really helped me out and worked perfectly! Follow up question. In the example I provided all my referenced cells were in Columns. How would I change this formula if I wanted to do the same thing but the information was in rows? In this example I have the "score" in the first row and the "category" in the second row. The second table needs to be able to reference the 1st table and spit out information in this particular format. I've tried messing with the formula you provided but it doesn't appear to be working. Would I change ROW to COLUMN? Any additional help would be greatly appreciated. Thank you!

[TABLE="class: cms_table_grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]5[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]A[/TD]
[TD]b[/TD]
[TD]c[/TD]
[TD]d[/TD]
[TD]e[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


[TABLE="class: cms_table_grid, width: 500"]
<tbody>[TR]
[TD]Score[/TD]
[TD]Category[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]a[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]b[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]e[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Try:
This is an array formula and must be entered with CTRL-SHIFT-ENTER.
Drag formula down as needed.
Excel Workbook
ABCDE
133453
2Abcde
3
4ScoreCategory
53A
63b
73e
Sheet
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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