remove duplicate when volooking up formula

kumasu

New Member
Joined
Dec 27, 2022
Messages
10
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hello- I have column with sales order number. If there are multiple items in one order, the order number repeat in the column as shown in column B. However, I actually need to bring in shipping cost for each order so when I do a v look-up, the shipping shows duplicate for multi items. However, I just need to show only once the the shipping cost. Is there way to eliminate the duplicate when I,m doing a v looking up. As you can see in the example in column D, the shipping cost shows is a v looking up and causing a duplicates whereas it should have been just once.
 

Attachments

  • Excel question.jpg
    Excel question.jpg
    31.1 KB · Views: 13

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Let's say that the data you show is in the range A1:D7 (with row 1 being the header row).
And let's represent your current VLOOKUP function as VLOOKUP(x).

Then you could enter this formula in cell D2 and copy down to D7:
Excel Formula:
=IF(B2=B1,0,VLOOKUP(x))
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,251
Members
448,556
Latest member
peterhess2002

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