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)
Sh.Columns(5).Insert
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
Sh.Columns(4).Delete........................

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


ADVERTISEMENT

Doubling The Value Of A Cell

Feb 6, 2009

I am looking to return a value of 2 cells in to one

ie
1+1 (2) = 4
1+0 (1) = 2

View 2 Replies View Related

Countif Doubling When Counting

Sep 5, 2013

I have a countif that is doubling when counting. I am using:

=COUNTIFS('Stage 3 Data'!G2:G3000,">="&Breakdown!C19,'Stage 3 Data'!G2:G3000,"

View 3 Replies View Related

If Statement In Cell Doubling Quantity That Is Being Returned?

Sep 10, 2013

I have a spreadsheet that I am working on for an estimating tool for engineers in my office. I created an in cell pulldown that contains all of our pipe specs. The theory is that on another worksheet I have all the information for the labor costs, and by changing the spec in the pulldown will automatically change the numbers in the estimation table. Below is the if statement that I created. the only cell that I have the completed "if" statement in is C9, because it is adding almost double to the actual quantity that is supposed to be returned.

Code:
=IF(Sheet2!M2="SS1",VLOOKUP(A9,Sheet2!A3:J19,3),IF(Sheet2!M2="SS2",VLOOKUP(A9,Sheet2!A23:J39,3),
IF(Sheet2!M2="SS3",VLOOKUP(A9,Sheet2!A43:J59,3),IF(Sheet2!M2="CS1",VLOOKUP(A9,Sheet2!A43:J59,3),
IF(Sheet2!M2="CS2",VLOOKUP(A9,Sheet2!A43:J59,3),IF(Sheet2!M2="CS3",VLOOKUP(A9,Sheet2!A43:J59,3),

[Code] ......

View 2 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)

eg:....

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
Confidence_0.118_Length_701ZamaicanConfidence_0.176_Length_582Urobi
Confidence_0.176_Length_582McdonaldsConfidence_0.176_Length_582Rum

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

View 5 Replies View Related

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

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
24963DoeJohnJun-0712-Jun-0719.5975.15
30693DoeJohnJun-0720-Jun-0719.5975.15
30693DoeJohnJun-0725-Jun-0719.5975.15
30693DoeJohnJun-076-Jul-0719.5975.15
30693DoeJohnJul-079-Jul-0719.5975.15
30693DoeJohnJul-0713-Jul-0719.5-975.15
41270DoeJohnJul-0713-Jul-0720.761120.95
30693DoeJohnJul-0726-Jul-0719.5-975.15
41270DoeJohnJul-0726-Jul-0720.761120.95
30693DoeJohnJul-076-Aug-0719.5-975.15
41270DoeJohnJul-076-Aug-0720.761120.95
30693DoeJohnAug-076-Aug-0719.5-975.15
41270DoeJohnAug-076-Aug-0720.761120.95
41270DoeJohnAug-0710-Aug-0720.761120.95

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

Deal

ASD
ADF
AGF

Then next week i would get another list of deals

ASD
AHJ
ADF
AGF
AIG

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
1 ABC
1 DEF
1 GHI
2 ABC
2 XXX
3 ABC
4 ABC
4 DEF
5 DEF
5 XXX
5 YYY
5 XYZ

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
1 ABC
1 DEF
1 GHI

View 9 Replies View Related

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 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

Delete Duplicate Cells Or Rows With A Duplicate Cell

Nov 1, 2007

I feel as though I have spent enough time searching the previous posts to ask this question.

I have a 4 column sheet, column B has many cells with identical data. I want to delete all the rows that that have duplicate data in column B.

COLUMN A= Car Makers
COLUMN B= Models of cars
COLUMN C= color
COLUMN D= owner

I want to end up with rows that each contain unique info in COLUMN B.

View 9 Replies View Related

Mark Duplicate Values :: Insert Word Duplicate Next To Row

Jun 12, 2008

I am using the following macro to insert the word "Duplicate" in the first blank column next to a duplicate row. My data is sorted by the first column. Data Example:

12345 a
12345 a DUPLICATE
11111 b
23123 b

Here is the macro I am using and it does not work. It marks the first duplicate it finds then goes into an infinite loop. Any Idea where I went wrong?

Sub MarkDupes()
x = ActiveCell.Row
y = x + 1
Do While Cells(x, 1).Value <> ""
Do While Cells(y, 1).Value <> ""
If (Cells(x, 1).Value = Cells(y, 1).Value) Then
Cells(y, 3).Formula = "Duplicate"
Else
y = y + 1
End If
Loop
x = x + 1
y = x + 1
Loop
End Sub

View 3 Replies View Related

Combine Duplicate Data From Different Rows?

Jul 25, 2012

I have a table (is populated in a macro already) that has two header rows (1 & 2), inputs a blank row on row 3, then starts data input on row 4. The data can potentially run to row 1000. The columns that are used are B through M. The part name is in column B and the quantity is in column C. The part name can repeat with a different quantity and be put in a different row than a previously entered value. I need to combine those x number of rows based on the match of the part name and sum the quantities then delete the remaining matches. Columns D-M are not unique.

I have attached a sample. The sample is very simple with just two matches but the matches can more than two. The matching rows are highlighted. duplicate rows.xls

View 9 Replies View Related

Transposing Data For Duplicate Cells?

May 8, 2014

I have a sheet of over 20,000 rows, each with 2 columns. Column A is numerical, Column B is name and address. There are duplicate entries in Column B, but Column A has unique entries.

I need to have 1 row per unique name and address with the numerical data from Column A relevant to that name and address either in one cell comma separated, or in cell C,D,E,F etc...

View 1 Replies View Related

Finding And Managing Duplicate Data?

Jun 18, 2014

I have two spreadsheets of "leads"

One lead is a do not call list that has 4 separate columns of phone numbers,

The second list is a batch I purchased.

I need to make sure that the second batch does not contain the info from the first spread sheet.

I guess I could modify the 1st spreadsheet to just be one column of numbers, then I would be comparing one column to one column.

View 5 Replies View Related

Column Dependent Duplicate Data

Aug 14, 2014

Using columns, (A,B,C & D)Column "A" is used for main grouping (defined as "zone") which I've used conditional formatting to define that there's duplicates. However the subsequent columns B&C are to and from devices. There may be instances of inverse duplicates. How can I either use "If then" formulas or LOOKUP function to note these occurrences? Column "D" is merely the flag column to display the instances of occurrence.

EXAMPLE

ZONE DEVICE TARGET
138 [TRF] 1-2 SCR 1-2 G 3287XT12G 51GT12G
138 [TRF] 1-2 SCR 1-2 G 351GT12G 287XT12G
138 [TRF] 1-2 SCR 1-2 G 3287XT12G 51LT12G PH 2
138 [TRF] 1-2 SCR 1-2 G 3287XT12G 51LT12G PH 3
138 [TRF] 1-2 SCR 1-2 G 3367 12G DTT287XT12G

View 1 Replies View Related

Macro To Remove Duplicate Data?

Aug 17, 2014

I am trying to create a summary sheet that updates when input data is added.

I'm still learning many parts of excel and I'm unsure why the SUMIF function on occasion leaves duplicate data in.

I can live with the fact that I will need to correct the input data and am willing to just paste in corrected data when it has been validated via the data validation tab.

Once this has been done, all I am seeking is for a subsequent process to start which updates a summary sheet with the sums correctly adding via the sumif function.

I have left some instructions on the actual spreadsheet to clarify my intended results.

View 1 Replies View Related

Identifying Duplicate Data Between Workbooks

Apr 22, 2009

I am looking for the easiest way to find duplicate Work Order numbers that exist in 2 separate Workbooks. EX. Workbook 1 Sheet one contains the numbers 1-100 in A1:A100
Workbook 2 Sheet one contains X amount of the numbers between 1-100 located.

somewhere in A:A. For arguments sake let's assume those numbers are 3,6,33,87,99.
What would the formula be to return the values that are in both of the workbooks?

View 5 Replies View Related

Unable To Merge Duplicate Data?

Mar 28, 2013

I was given 6 spreadsheets combined into one (the reason is immaterial-but valid) it is what it is... unfortunately! (42 columns, 14,000 rows of which 450 names are duplicated as illustrated below)

I want to merge duplicate data.. but not the way I see it shown in all the 'merge' and the 'delete duplicate' threads I have seen so far.

I manage a homeless shelter and someone duplicated the spreadsheets and started using the duplicates to enter fresh data.... several times!

As a result I now have somewhere around 8 instances, (or 7,5,3 etc) of every homeless guest, but it has duplicate data in some columns, and new data in others, for instance:

I want to turn this....
Name SS# 1st entry date, 2nd entry date, 3rd entry date, fourth entry date, etc...

John Smith, 123-45-6789, 1/5/2010, 7/13/2010, 3/30/2011, 5/16/2012
John Smith, 123-45-6789, 1/5/2010,
John Smith, 123-45-6789, 1/5/2010, 7/13/2010, 3/30/2011,

I tried de-duping based on duplicate rows and that worked with the pure duplicates get out of the mix, but if I try to to de-dup on only the first two columns of data it may remove date I want to keep.So I need to de-dupe and merge at the same time.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved