Using Vlookup With Duplicate Data

Nov 25, 2009

Message board virgin here, but I need help with an excel issue so excuse me if I don't follow protocol.

I'm using vlookup to return the salesperson by serial number, but run into a problem when my criteria has a duplicate value, but my answers does not.

Here's my example:

Serial#, Salesperson
123 Bill
456 Bob
456 Suzy
789 Bob

View 11 Replies


VLookup With Duplicate Data

Jan 27, 2012

I have a table simmilar to this:

Reptile Dog Red
Reptile Tiger Purple
Mammal Tiger Stripes
Mammal Tiger Spots
Mammal Racoon Black
Mammal Cat Plaid
Mammal Dog Brown
Mammal Dog Purple
Reptile Dog Red
Reptile Tiger Purple
Tree Dog Orange
Tree Pine Green

I would like to use this data to populate within a seperate worksheet that reads:

Mammal, Tiger, Stripes
Mammal, Tiger, Spots
Mammal, Dog, Brown
Mammal, Dog, Purple

Essentially pulling all of one duplicate item within a column. The problem I ran into is when I run a vlookup within the entire table, it gave me duplicates.

Basically, it gave me...
Mammal, Tiger, Stripes
Mammal, Tiger, Stripes
Mammal, Tiger, Stripes
Mammal Tiger Spots

I know this is because of the array, just forwarding to the next item, and rerunning the lookup... since Mammal is not at the top... it has to wait till the array gets to the area of "mammal".

How do I create the list, so it will not create the duplicates... like in the example I gave.

View 2 Replies View Related

Duplicate Values For VLookup - How To Receive Data Back

May 23, 2014

I have a situation where I have about 20000 lines to populate and looking for a quicker alternative. I have duplicate numerical values in the lookup_value. I want the same number to appear for all lookup_value's but there is only one instance of that value on the other sheet I am searching. My table looks like this:




Column A Column B

50058459 1234
68594523 9876
58965214 3456

I want my output of vlookup to look like this

Column A Column B

50058459 1234
50058459 1234
50058459 1234
50058459 1234
68594523 9876
68594523 9876
68594523 9876
58965214 3456

View 7 Replies View Related

Vlookup And Duplicate

Jun 17, 2009

I want to check with the vlookup function and some other form of either index or other function where if I check (enter an ID) an ITEM ID and then it will tell me how many different products have been assigned to that ID ITEM. In some cases the ITEM ID has only used One Product, whereas other ITEM ID's have used muliple products.

I have attached an example of what I am trying to achive (its possible the same ITEM ID could have several products used against it.

View 3 Replies View Related

Using VLookup On Duplicate Values To Get Sum Of Both

Feb 11, 2013

I am currently busy with a material tracking sheet. The sheet tracks all the material from fabrication to being released from painters.

My problem is that in a summary sheet that I created, I used vlookup to get the exact value of the item number that was released.

Focus on Item # 043-06016

example summary.jpg

[Code] .....

This formula only gets the first value and not the 2nd value that was also released so that in my summary sheet i can get 2

example released items.jpg

View 3 Replies View Related

VLookup With Duplicate Values

Apr 12, 2012

I have an interesting problem where I am trying to display a list of top ten ranked items and I have multiple items tying for a rank, creating two or more values for one rank.

I have a table that shows the ranking, numbers 1 to 10. I'm using a vlookup formula to find the rank and return the corresponding name from my data table.

The problem I have is there are two that are tied for 3rd place, so I have two ranking at three. The current table looks something like this:

1 Warren
2 Stan
3 Mike
4 #N/A
5 Dan

I can change my table so that the numbers on the left are dynamic so it will display the number 3 twice if there are multiples of the same ranking, but when I do my lookup I'm still stuck.

Is there a way to return the second "3" on the lookup? Or is there a better way to solve the issue?

View 1 Replies View Related

Vlookup With Duplicate Id & Interval

Oct 16, 2008

I have a template whereby it show agent hourly performance. I unable to use vlookup formula because duplicate id with different interval. If I select id 1977 it will auto update agent performance it the table according to the interval.

View 9 Replies View Related

Vlookup - Pick Last Of Duplicate Entries

Jan 15, 2010

Writing this workbook in 2007, but it will be used in 2003. Have searched but can't find answer to this. I have a 5-column (A to E) table array and I'm using VLOOKUP in several other cells to return values in col2, 3, 4 & 5 with my lookup value being col 1. However, col 1 will contain numbers which occur more than once. How can I get VLOOKUP (or something else?) to pick the last occurence (lowest row) and use that one? Also, the array will be sorted - smallest to largest - as the rows go down - how will the SORT work on duplicate entries? I'd like, if possible, for the entry made most recently to be the lowest of the duplicate entries so that VLOOKUP (or whatever) will pick that one to use. Will any kind of SORT do that?

View 9 Replies View Related

(UDF) MACRO To VLookup Duplicate Values To Columns

Apr 13, 2013

I need a User Defined Function (UDF) to Vlookup duplicate values in separate Columns.

I can't use an Array function as the data is huge and it takes lot of time to calculate.

I have attached a Input and the desired output in the file attached.


View 9 Replies View Related

Get Correct Value Using Vlookup Formula In Duplicate Look Up Values?

Mar 4, 2014

How to get correct value using vlookup formula in duplicate look up values.

Here i mentioned a eg;


View 8 Replies View Related

VLookup - Find Duplicate Accounts And Get Count?

Apr 24, 2012

I have a workbook where i am trying to find duplicate accounts. I need to get a count of these duplicate accounts and i need to find the accounts as well. One last thing the workbook covers an entire year and i would like a formula that will cover the 12 sheets to provide the results.

View 4 Replies View Related

Removing Duplicate Information In Same Cell After Performing VLookup?

Apr 8, 2014

I have used a vlookup code from a past post (Vlookup multiple values in one cell) in VBA and successfully retrieved my information to one cell.

However, I would now like to remove any duplicates in this cell; preferably while running the same code.

--vlookup code
Public Function mVLOOKUP(mlookup_value As Range, mtable_array As Range, mcol_index_num As Long)
Dim r As Range


View 2 Replies View Related

Write VLookup Where Data Array Changes Each Time VLookup Used

Oct 29, 2012

I'm trying to do a Vlookup on a file that gets automatically downloaded to the computer from a website. The data is in lots of different data sets, like so:

Loans to countries

Loans to banks

Every month a new row of data gets added to each table, meaning the start and end cells of the array also shift each time.

View 4 Replies View Related

Double VLookup (vlookup The Same Data From 2 Different Sheets)

Jul 13, 2009

I'm currently trying to vlookup the same data from 2 different sheets. Here is the code i've tried.

View 4 Replies View Related

Data Validation - How To Create Dropdown List That Excludes Duplicate Data

Sep 26, 2013

I'd like to create a drop down list in data validation from a column of data that contains numerous duplicates.

For example, let's say column A contained hundreds of transactions with either North, South, East and West, how could I create a drop down list in another cell that only had four selection options?

View 5 Replies View Related

Excel 2013 :: Condense Duplicate Data To One Row Data In Same Column In New Row

Mar 12, 2013

IIn my example I have result data from the 2013 USPGA Tour, ordered by player (column A) with subsequent columns detailing their finishing position in each event.

I simply want to condense each player's performance data into one row - as doing it by hand after each event is very time-consuming.

Is there a way of using a simple formula, macro or pivot table (or whatever) to merge each player into one row, but keep each column in the same position (ie to correspond to each weekly event).

View 4 Replies View Related

Displaying And Summing Data With Duplicate Data Fields

Jun 6, 2009

I am trying to do is when a user enters in a GL (a 4 digit number) from the list (tab 2) I want it to appear in the summary box below. However the same GL number can be used multiple times so I will have duplicates. The data entered above will always change there is over 200 possiblities the user can enter. So I don't want the data to be specific it will populate based on what is entered by the user.

Can this even be done?????

Say if the user entered:

Column C Column G
4606 $20.00
4606 $20.00
2134 $15.00
2301 $35.00
4606 $100.00

The data in the GL and currency column in the summary box would appear as the following:

Column C Column G
2134 $15.00
2301 $35.00
4606 $140.00

View 3 Replies View Related

Delete Duplicate Data ...

May 16, 2009

I'm a first timer here an I'm hving a problem with data. I have 3 sheets in a workbook, I want to transfer all the data to one sheet. I have 3 columns labelled Number, Name, & Sales, on each sheet some of the numbers and names are the same and I want to be able to match them up and put the sales from each sheet into a new column, so the final sheet will have 5 columns in total, if the numbers and names don"t match I just want to add those to the bottom of the matched ones.

View 10 Replies View Related

Data Shift Down And Duplicate?

Oct 19, 2009

I have a spreadsheet that has 3 columns. Out of which only 2 are in use.

I have attached an xls for your convenience.

The Date column is in play and Test column are in play.

Basically I want to know if there is a way, where I can

shift a value down and duplicate (in the Test column)


View 11 Replies View Related

Duplicate Data Highlight

Dec 17, 2009

I need a code please that will look in Column C in every workbook (excluding the sheets “Blank”, “Orders”, “Summary” and “Archive”) and then it will highlight duplicates in Red and Bold.

I found the following code but I need it so it looks on every page excluding the ones mentioned above.

View 5 Replies View Related

IF Formula For Duplicate Data

Jan 22, 2010

I have a list of items which I want to return the number of sheets in stock at the end of the month which uses a lookup.

My problem is though is that products can appear on the list more than once, therefore I need an IF formula which if it’s a duplicate (other than the first instance) I need it to appear as zero.

I have attached a spreadsheet which may be clearer than above.

Your notice on the spreadsheet the same product appears in 4 difference racks however I only need it to show once the total sold and total receipted. I have shaded in grey the desired result.

View 7 Replies View Related

Duplicate Data In Column

Feb 23, 2010

Bit of a tricky one this, I have two spreadsheets both with data I need to merge the two and only keep data which is present in both sheets. Each row has a unique identifier. I have copied the sheets into one spready and sorted the data, I thought there might be some kind of edit go to function but cannot find it.

View 2 Replies View Related

Removal Of Duplicate Data?

Jan 19, 2012

All i want is to delete duplicate rows or data in query 1 column.......

Query 1Query 2Confidence_0.118_Length_701McdonaldsConfidence_0.118_Length_701Magic moments

[Code] ...........

View 5 Replies View Related

Deleting Duplicate Data

Oct 29, 2007

I have a spreadsheet in which invoices are listed. Some of these invoices have been cancelled with a negative invoice, so I want to match the negative invoice to the corresponding positive invoice so that accurate averages of all the data can be attained.

RefSurnameNameMonthTimesheet Rate PHValue

View 9 Replies View Related

Finding Duplicate Data

Feb 29, 2008

I have a set of data which are deal numbers

So week 1 i could have



Then next week i would get another list of deals


Is there a formula i can use which well tell me if a new deal has been entered in the following week.

So in the above AHJ and AIG would be new deals

(i would simply copy the deals and put them in Column A and B and the formula to go in column c)

View 9 Replies View Related

Sorting Duplicate Data

Oct 30, 2009

I have an excel spreadsheet containing alot of data which looks something like this:

Material Plant

As you can see, one material can exist in more than one plant.

What I want to do is to seperate the materials into 'blocks' (with a blank row) so that they exist seperatly. (I can then easily total up someother value in column C). Example:

Material Plant

View 9 Replies View Related

Sum Duplicate Data Without Doubling Up

Aug 31, 2006

i have is a worksheet, columns A thru J. Column B has names in it, Column F has dollar amounts. i need to create a macro to find the duplicate entries in column B, add them in column F (which would overwrite the existing amount) and then delete all the duplicates. all of the columns between A and J contain data. i was able to do this on an totally different sheet using columns A and D. but i did not have other data in the sheet. it's been a long time since i completed this other sheet and i need a refresher course in vba.

Sub finddups()
Dim Sh As Worksheet
Dim LastRow As Long
Dim Rng As Range
Set Sh = Worksheets(1)
LastRow = Sh.Range("A65536").End(xlUp).Row
With Sh.Range("A1:A" & LastRow).Offset(0, 4)
.FormulaR1C1 = "=IF( COUNTIF(R1C[-4]:RC[-4],RC[-4])>1,"""",SUMIF(R1C[-4]:R[" & LastRow & "]C[-4],RC[-4],R1C[-1]:R[" & LastRow & "]C[-1]))"
.Value = .Value
End With

i need to convert this old macro to work with my new sheet. since the underlying ideas are the same i think it should work. however i am unable to get it right. i always end up deleting all my data.

View 3 Replies View Related

Identify Duplicate Data

Apr 10, 2007

I now need to look through 4524 rows (columns A,B,C) and identify any duplicates based on column A. After all duplicate data has been identified, I would like to delete out all non duplicates. I searched previous posts, but couldn't find anything that worked for me.

View 5 Replies View Related

Macros To Delete Entire Duplicate Row For Duplicate Values?

Aug 19, 2014

I have a worksheet that has 3 duplicate values in a particular column, I need a macros that will highlight two of the duplicates row and then another macro to delete the entire row. The duplicate element are in column R. find attached worksheet.

Copy of OCL 2010 (3).xlsx‎

View 1 Replies View Related

Delete Duplicate Rows :: Duplicate Company Names

Dec 11, 2008

I have a spreadsheet with 3300 rows. In column A there is a list of company names and in column H there is a corresponding Sales Rep name.Column A has many duplicate company names. I would like to run a macro that will find the a company name and then delete all the rest of the rows that contain that same company name.

Attached is a sample of that spreadsheet.

View 5 Replies View Related

Copyrights 2005-15, All rights reserved