Vlookup duplicate with same value

QUIJAN

New Member
Joined
Aug 27, 2021
Messages
9
Office Version
  1. 2013
Platform
  1. Web
Hello,

I am trying to use the vlook up for the duplicate value.
I just want the first value in Column A to have the result for the column B.

Please see the result when I use the vlookup (SAMPLE1) and the result I want to achieve (SAMPLE2)

Thank you
 

Attachments

  • SAMPLE1.png
    SAMPLE1.png
    7.3 KB · Views: 10
  • SAMPLE2.png
    SAMPLE2.png
    6.9 KB · Views: 9

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Book4
ABCDE
1ITEMFEEITEMFEE
2ABC1234 $ 5 ABC1234 $ 5
3ABC1234 $ 5 ABC1234
4ABC1234 $ 5 ABC1234
5ABC1235 $ 10 ABC1235 $ 10
6ABC1235 $ 10 ABC1235
7ABC1235 $ 10 ABC1235
8ABC1235 $ 10 ABC1235
9ABC1236 $ 2 ABC1236 $ 2
10ABC1236 $ 2 ABC1236
11ABC1236 $ 2 ABC1236
12ABC1237 $ 4 ABC1237 $ 4
13ABC1238 $ 8 ABC1238 $ 8
Sheet1
Cell Formulas
RangeFormula
E2:E13E2=IF(D2=D1,"",VLOOKUP(D2,$A$2:$B$13,2,FALSE))
 
Upvote 0
Book4
ABCDE
1ITEMFEEITEMFEE
2ABC1234 $ 5 ABC1234 $ 5
3ABC1234 $ 5 ABC1234
4ABC1234 $ 5 ABC1234
5ABC1235 $ 10 ABC1235 $ 10
6ABC1235 $ 10 ABC1235
7ABC1235 $ 10 ABC1235
8ABC1235 $ 10 ABC1235
9ABC1236 $ 2 ABC1236 $ 2
10ABC1236 $ 2 ABC1236
11ABC1236 $ 2 ABC1236
12ABC1237 $ 4 ABC1237 $ 4
13ABC1238 $ 8 ABC1238 $ 8
Sheet1
Cell Formulas
RangeFormula
E2:E13E2=IF(D2=D1,"",VLOOKUP(D2,$A$2:$B$13,2,FALSE))
Hello

Thank you for that.
Data for my vlookup is in the other tab.
Is it okay to use this?

I mean, the data for column B is in the another tab.
 
Upvote 0
Yes you just need to change the lookup location

For example DATA sheet
Book5
AB
1ITEMFEE
2ABC1234 $ 5
3ABC1234 $ 5
4ABC1234 $ 5
5ABC1235 $ 10
6ABC1235 $ 10
7ABC1235 $ 10
8ABC1235 $ 10
9ABC1236 $ 2
10ABC1236 $ 2
11ABC1236 $ 2
12ABC1237 $ 4
13ABC1238 $ 8
DATA


Result Sheet
Book5
AB
1ITEMFEE
2ABC1234 $ 5
3ABC1234
4ABC1234
5ABC1235 $ 10
6ABC1235
7ABC1235
8ABC1235
9ABC1236 $ 2
10ABC1236
11ABC1236
12ABC1237 $ 4
13ABC1238 $ 8
RESULT
Cell Formulas
RangeFormula
B2:B13B2=IF(A2=A1,"",VLOOKUP(A2,DATA!$A$2:$B$13,2,FALSE))
 
Upvote 0

Forum statistics

Threads
1,214,819
Messages
6,121,727
Members
449,049
Latest member
MiguekHeka

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