Comparing Two Duplicates To Second Criteria

Aug 24, 2009

I have two columns: Column A with SS#, Column B with loan #. i need a formula that would return 2 different loan #s for same SS# on a different worksheet. Example

SS#:Loan #ResultSS#Loan #123567812312356781231235678345123567834534578917862950013351

Spend all morning on this. Tried various INDEX, COUNTIFs, MATCH, VLOOKUPs but when looking at the same SS# in a column it always returns the first Loan#.

Comparing Two Lists For Duplicates

Oct 15, 2008

I'm trying to compare two lists of songs to see which songs are not shared by both lists. I wrote a simple function to try to do this but ran into problems pretty fast. I want to create a function which will tell me if the song in a cell (lets say cell B2) is the same as any of the cells in Column A.

Comparing Groups Of Numbers For Duplicates

Jan 1, 2010

I am trying to solve is as follows, I have groups of 20 numbers in columns, one per column and would like to compare the groups to determine if any group is duplicated on another line.

I had been looking at using VBA to copy the numbers to an array, sort from lowest to highest, concatenate and use that to compare each group. If possible however if there is a suitable formula it would be preferable.

I have attached a small sample to illustrate.

Comparing Lists And Deleting Duplicates Automatically

Mar 17, 2007

I have two seperate lists. One on Sheet 1 and One on sheet 2. What I need to do is take the list on sheet 2 and compare it to the list on sheet 1. If any of the items appear on sheet one, I need to delete those items form sheet 2.

So in the end the only items left on sheet 2 will be items that dont match any items on sheet 1

Macro For Deleting Duplicates / Comparing Rows And Retaining Minimum Value?

Apr 6, 2014

I have data from Columns A to D. I want to do the
following:

1. Look for duplicates in all column A

2. For each duplicate found in column A, check if all values in column B are also duplicate.

3. If the condition in (2) is satisfied, compare column D for all the rows; select the row with the minimum value in column D, and delete the other rows.

For example:
A B C D

Row1: Abby 04/01/2014 7:00PM 0.98437
Row2: Sam 04/01/2014 9:00PM 0.35627
Row3: Abby 04/04/2014 7:00PM 0.68932[code]....

Comparing Criteria Across Columns

Nov 25, 2008

I need to compare data across two columns: the date a claim was filed (column T), and the date it was resolved (column AH).

On my summary worksheet, I'm displaying the claim details for each month. I need to show how many of the claims filed (T) in each month are resolved (AH) - and for this output I'm not concerned about when they were resolved. This lets us track if there's still money due to flow out of the coffers for old claims. For example, there were 5 claims filed in July, and 4 of them are resolved. I want my summary tab to return a value of "Completed" beside July when I enter the resolution date for that last one, and "Pending" until then.

All the fields I'm describing are formatted as dates - including the name of the month (eg, "July" is displayed because I've put a custom format of "MMMM" on 7/1/08).

I've been playing around with countif and sumproduct but can't quite figure this one out.

Comparing Autofilter Criteria

Mar 16, 2007

I want to write a VBA routine to compare the Autofilter criteria found on two different worksheets. If the criteria is not the same I will display an error message. The range the Autofilter is working on could be one to many columns. The criteria could be anything from selecting a value from the autofilter list to multiple columns using a custom autofilter with multiple conditions.

Sum Without Duplicates With Other Criteria?

Nov 20, 2013

I need to do a sum with multiple criteria and that can account for duplicate entries and select the correct duplicate to add. I have a sheet with 6 columns of data: TripDate, Company, DepartureTime, BookedTravelers, TripNumber, DataEntryDate. It's just a running data dump from multiple sources and times and can therefore have duplicate entries for a specific trip but where the number of people booked has changed and I need the sum to use the most recent number (dataentrydate is newest).

Example:
TripDate Company DepartureTime BookedTravelers TripNumber DataEntryDate
10/31/13 A 15:30 10 111 10/01/13
10/31/13 B 15:30 11 999 10/01/13
10/31/13 C 15:30 12 999 10/01/13
10/31/13 A 16:00 20 222 10/01/13
10/31/13 A 17:00 30 333 10/01/13
10/31/13 A 15:30 50 111 10/15/13
10/31/13 A 15:30 40 111 10/25/13

Currently I have this in a seperate worksheet to break down the hourly loads where A2 is a date reference I can change to what date I need, and each company is listed in a different column with hours running down Column B from 0400-2200:

=SUMIFS(BookedTravelers,TripDate,Template2!\$A\$2,Company,Template2!J\$4,DepartureTime,">=" & \$B5,DepartureTime,"

Sum Duplicates With Unique Criteria?

Aug 9, 2014

col A col B col C

AA 1 dog
BB 2 cat
AA 1 cat
BB 3 cat

The end result is:

AA 1 dog
AA 1 cat
BB 5 cat

In this example there are two examples of AA, but they each have a different animal, so they need to remain separate. BB is listed twice, but has the same animal, so the total for them is 5. I am looking for a way to express this with with a formula. I tried using Sumifs, and it sort of works, but I end up with BB listed twice, and I don't need that to happen....

Removing Duplicates With Criteria

Feb 6, 2007

I'm adding data from a report into a spread sheet and some of it will be duplicated. I want to remove the duplicate data, but is there a way to differentiate between the older (and more complete) data and the newer data? In other words, how do I get rid of the duplicate while keeping the one I want to keep?

I was considering the advanced filter, but if I create too many columns of criteria will it be seen as unique?

Duplicates Counting With Plural Criteria

Jan 20, 2010

This is a follow-up of my previous post which was brilliantly solved. I found out that I need someting additional, which is over my head really.

I know have the following formula: IF(SUMPRODUCT((\$G\$4:\$G\$3000=\$G6)*(\$AA\$4:\$AA\$3000=AA6)*(\$O\$4:\$O\$3000=O6)*(\$I\$4:\$I\$3000=I6))>1,....

However, I want to change the end into something which can count the number of appearances of the duplications in a specific row, so I would get results saying that they appear 1 time, 2 times, 3 times or 4 times (4 being the most) in the list and could be placed after the text value of O and I (I398&" "&O398,"-"))?

I hope I formulated this well enough....

Also, does anybody have an idea how I can message my file? I've got close to 3000 rows all the way up to AB and my pc now starts to complain...

Sum Values Excluding Duplicates With Criteria To Be Met First

Sep 23, 2013

Below is the criteria I need a formula for.

First Criteria - If column D=John Smith,

Second Criteria - Excluding duplicates in column A, (red are the unique values I need)

Third Criteria - Sum of column B that meets the above criteria first

Result I am after is

John Smith - \$154,330.00
James Brown - \$150,520.00
David Williams - \$161,390.00

A
B
C
D

[code]....

Lookup With 2 Criteria & Duplicates Exist

Aug 16, 2007

The yellow highlight is where you input the data needed. The problem is it doesn't show the result when the letter has a duplicate. For example, when I enter "a" in the first input cell(input letter) and "1" in the next(input number), I get the result("a1"). However when I input "a" in the first and "2" in the second, the result just shows a blank cell, and so forth.

Conditional Format Duplicates Ignore Certain Criteria?

Jul 30, 2014

I have conditionally formatted a column of staff names where duplicates are highlighted - this is fine but there are some duplicates that I do not want to include - these all have the same criteria in that they include the suffix (v)

Is there an easy way of doing this?

Rank Based On Criteria And Exclude Duplicates

Mar 20, 2014

I have a large spreadsheet where I've successfully ranked a large series of data based on revenue, using product classification as a criteria & summarising this on another page with the top 20 products. The problem I'm having is that within certain criteria's I have some products with the exact same revenue figure, so if the 2nd ranked product within classification "C" for example has revenue of \$100, & there's another product within the same classification also with \$100 of revenue, on my top 20 report I have results for the 1st & 2nd ranked product, but a blank for the third product & then results again for the fourth

The formula I'm using is

=IF(Y12="NA",0,SUMPRODUCT(--(Y12=\$Y\$12:\$Y\$6000),--(AC12

Count By Criteria Based On Duplicates In Different Range

Feb 18, 2008

I have 2 columns on column contains 2 numbers, the other comlumn has names. We'll use A1:A4 and B1:B4 for the example.

Row A Row B
25 John Smith
50 Mike Jones
25 Chris Carter
50 Mike Jones

I want to be able to count one number in "A" but only if the name is not duplicated in "B".

My result for #25 would be 2.

My result for #50 would be 1, because Mike Jones is duplicated.

The results would be displayed in two seperate boxes, so I would only need on formula to count #25, then one formula to count #50.

Multiple Criteria Ranking To Ignore Duplicates

Apr 2, 2008

I posted a thread a while ago asking for a formula to rank based on multiple criteria (Rank On Multiple Criteria). The following; = SUMPRODUCT(--(\$A\$2:\$A\$50=\$A2),--(\$B\$2:\$B\$50=\$B2),--(\$D\$2:\$D\$50=\$D2),--(\$G2>\$G\$2:\$G\$50))+1)

works an absoulte treat, however is there a way to modify it so that does not allow duplicates? The data in the G column refers to time values acheived during testing of athletes, the problem arises when two athletes achieve the same score and thus they are ranked the same. However, body mass is also measured (F column) and in essence the athlete with the lower body mass has achived the better score and thus should be ranked accordingly.

Removing Duplicates Based On Column Values And Criteria?

Apr 3, 2013

removing duplicate names. Students were allowed to take a quiz as many times as they wanted. I need to remove the duplicate entry by keeping the highest grade.

Here is the setup of my excel file. Column 1 has surnames, Column 2, has first name, and column 3 has grade.

I can't figure out how to filter them based on first and last name because some students have the same name. with the grade as the criteria

I would need an excel formula not macro

Count Excluding Duplicates Based On Multiple Criteria

Jul 4, 2014

I have the below table of data and what I am looking for is a formula that will count the number for unique numbers (col E) depending on a several criteria. So far I have got this formula but it's not working!

=IFERROR((SUMPRODUCT(--(A3="2014"),--(B3="1"),--(D3="Boc Limited"),)),"")

A
B
C
D
E

year
week
smsupplier_code
supplier name
orders_no

[code].....

Comparing Sheet 1 With Sheet 2 / Moving Any Duplicates To Sheet 3

Feb 28, 2014

Is there a way I can compare sheet 1 Column A, with sheet 2 Column A, and then move any duplicates from sheet 2 over to sheet 3.

For instance,

Employee Numbers that match in both sheet 1 and 2, remove that row from sheet 2 to and insert it into sheet 3.

Pivot Table To Not Count Duplicates - But Show Duplicates When Click Into It

Aug 24, 2011

In short, I would like a pivot table to only count unique values, but when I click into the pivot I would like to show all instances of that value. For example:

I have a table of data that I am creating a pivot table from. There are fields for Customer ID, Task Name, Age, and Notes. There will be multiple records for a single Customer ID each time it has new notes.

I would like to create a pivot table that has Task Name in the Row Labels, Age in the Column Labels, and count of Customer ID in the Values, so that, for example, I can see how many accounts have been in the Design task for 2 days. However, when I do this it counts each record, but I would like it to count each unique Customer ID. Also, when I click into the pivot, instead of pulling up one line per Customer ID, I would like it to pull up each instance of Customer IDs in that Task Name/Age combination (similar to doing a DISTINCT in SQL).

Count Duplicates And Duplicates With Suffix As One Instance

Mar 23, 2014

I have a list of isometric drawing numbers ending with a [underscore]weld number e.g. 1692-SG-0040-04_05.

Some welds are repaired--in that scenario the amended weld number will be 1692-SG-0040-04_05R1, and even 1692-SG-0040-04_05R2 if repaired for a second time.

On occasion a weld may be cut out entirely and a new weld done. The weld number for that will be 6317-FG-1690-02_06C1.

And here's a wrinkle I've just verified...a cut weld may also be repaired so the weld number will look like 1698-SG-0077-01_04C1R1.

Is there a formula to count these as one weld:
1692-SG-0040-04_05
1692-SG-0040-04_05R1
1692-SG-0040-04_05R2

This as one weld:
6317-FG-1690-02_06
6317-FG-1690-02_06C1
6317-FG-1690-02_06C2

...and this as one weld:
1698-SG-0077-01_04
1698-SG-0077-01_04C1
1698-SG-0077-01_04C1R1

Excel 2010 :: How To Count Duplicates Of Duplicates

Jan 24, 2012

I am having trouble creating a function to count duplicates of duplicates.

An example of the data table 1 is:

Product 1 2nd
Product 1 2nd
Product 1 New
Product 1 New
Product 1 Flt
Product 2 2nd
Product 2 New
Product 2 New
Product 2 Flt
Product 2 Flt
Product 3 2nd
Product 3 2nd
Product 3 2nd
Product 3 New
Product 3 Flt

I created a new table (table 2) and made a list of all the Products on table 1 and removed the duplicates. I now have 3 columns with titles New, 2nd and Flt as follows:

New 2nd Flt
Product 1 XX XX XX
Product 2 XX XX XX
Product 3 XX XX XX

I am trying to count the duplicates for each product (XX), but I can't seem to work it out. I've tried the MS help function, but unsure of the actual formula I need to be using.

I am using Windows 7 and MS Office 2010.

Identify Duplicates On Sheet 2 And Populate Number Of Duplicates On Sheet 1?

Apr 8, 2014

I'm trying to Count duplicate text on sheet 2 and populate the number of times repeated on sheet 1.

On sheet 1 I have A3:A128 and would like the number of times these respective cost centers are repeated in Sheet 2 to populate Column B of Sheet 1.

File attached.

Not sure which formula to use. I tried CountIF but didn't work with 2 sheets.

Comparing 2 Timestamps?

Jan 22, 2014

Attached is an example.

I get data pulls of logged in time, and shift start times.

Example in column C the person's actual login time is there, and column D has their start time. If there's a variance of 'x' how could I have column E display the variance? In this example 15 minutes?

Basically, if there's a difference between the 2, I need a formula that tells me what difference is.

Comparing Two Tables

Jun 10, 2008

I have one .xls file that contains an inventory list of all the products that I want.

Unfortunately this .xls file does not contain the prices for these items. I have another .xls file that contains SKU numbers and the prices related to those SKU numbers.

Is there a way to run every single SKU in the first file against the second file and, when a match is found, take the entry in the price column of the second file and place it in the first file so that my first .xls file contains all my products with prices?

I included sample data.

Comparing 2 Values.

Nov 5, 2008

Comparing 2 values.

I need to compare the value's on 2 cells. I have a sheet setup for my sales I would like to compare each day of the week. So in other words I would like to compare this Monday with last Monday and know what the percentage of my sales ether up or down is.

Example:
Last Monday = sales \$100.00
This Monday = Sales \$200.00

100%

So If sales are up I would like the percentage amount font to be in green. But if sales are down I would like the percentage amount to be in red.

Comparing The Cells

Apr 6, 2009

I have two spreadsheets I would like to compare against each other, last weeks inventory (Sheet 1) and this weeks (Sheet 2). All items are listed by unit number, is there a way to have all unit numbers on Sheet 1 colored red that are not on Sheet 2 and vice versa?

Comparing Two Cells

Nov 16, 2009

Is there a way to compare two cells and return true if they are the same, false if different? There is text and numerical data. As a side note, can anybody recommend a lightweight reference so I can sit for an evening or two and at least get an idea of what excel can do?

Comparing Strings ..

Mar 30, 2009

I have two string that I want too compare.

String 1 could be something like channel_0_user_defined._system
string 2 could be channel_0_user_defined

I want too compare string2 with string 1 at the left side of string 1.

I don't really know what I should use I found startswith, but vba doesn't have this particular function.