Cutting Down List And Providing Number Of Duplicates?
May 21, 2013
I'm pulling data from my servers (alarms) and have roughly 10 alarm points, reporting 9000 alarms. I've been able to pull them off the server on an excel file, have been able to sort them, but would like to venture into the hope that there is some sort of formula that would take the duplicate alarms(cell a1-a9000), delete them, and report how many duplicates were removed from the list in cell b1-b10
xyz
xyz
xyz
xyz
123
123
zzz
---
somehow it could be turned into
"xyz 4"
"123 2"
"zzz 1"
How do I get 'SUMIF' to ignore blank cells? sumif(a1:a10,h1,b1:b10) - then fill down
a= ID number h1 = ID number b= cost info
eg 'matt' in 'h' is finding 'matt' in 'a' and reporting on the cost info against that name in 'b', but in the middle of the list a blank is matching a blank and returning a subtotal which is in the cost column. I want to put sumif(a1:a10<>"",h1, b1:b10) but this doesnt work!
I need to create a range of cells in Column A. I know the first cell, A2. The final occupied cell will vary. Once I have the range object I would like to step through and analyse each cell in turn using a For/Each loop.
The code I have so far is:
Public all_structures As Range 'Range required for for/each loop Column Public last_structure As Range 'Last cell in Column Public molcell As Range 'Current cell in range
' Establish range of cells in Column A
Set last_structure = Range("A2").End(xlDown) Set all_structures = Range(Range("A2"), Range(last_structure)) ***
' Loop through each structure in turn For Each molcell In all_structures
Loop code In here
Next molcell
When I run I get an error message of "Run-time error '1004': Method 'Range' of object '_Global' failed". It does not like the line marked ***.
I have my dummy data, and I have (what I think) is how I want the data to be shown. My friend uses Google Sheets, but I prefer Excel. I am trying to convert the code because I am a stickler for excel. Typically I can convert codes some easily, but this is way beyond me.
For Column A: I want to create a list on sheet 'Setup!' based on ids!D2:D="yes". If that list has duplicate entries, I would like only the first entry to show up, but for the next entries I would like the cell to be blank. (this is important for the next step) For Column C: I want to have the corresponding dates go with the name entry. For Column D: I want to have the notes go with the corresponding date entry. (I believe I can manipulate Column C's code to do Column D myself).
I am also going to upload a data sheet, and an expected results sheet.
I am working on an email marketing project and i have a small problem. I have two different email list. One (List A) is a large list of potential leads. The other (List B) is a list of leads we are not supposed to market to. I need to delete every lead on List A whose email address is also in List B, so that we do not send unwanted emails to our clients.
The best way i have to do this so far is to go through line by line, which is very impractical.
In case it matters here is out list format. Each list has 10,000 + leads. Each lead occupies a row. The row stretches across 13 columns and each column holds a different variable about the lead (names, state, email address).
The attached file (a copy of my main one) has a list of our engineers, and what stock they carry. The stock parts are the 64, 65, 66... numbers.
I need to create a list from this (as underneath the main table), for all instances where there is a 'Y' in the columns next to each engineer. So if an engineer has 3x pieces of stock, they need to appear in the list 3x times. If they have 1x piece of stock, they appear in the list once.
Name --------- Jones, Bob Jones, Bob Jones, Bob Smith, Mike Smith, Mike Smith, Mike Calai, Dave Calai, Dave Calai, Dave Etc...
What I want to do is take the entire list and create a distinct list that I can use in a named range then use a validation list to have a drop down within a different tab.
492 500 773 738 572 492 When I repeat this number I need that the first (492) be formatted with a color and continuous like this 200 572 format the first 572 492 format the next 492 but the actual number stays without formatting!
I need to check a list of names to see if there are duplicate entries. At the bottom of the list I would like to count the number of duplicates. In the list I want conditional formatting to highlight cells where the duplicate appears. Using Excel 2007.
Here is the deal I have 4 columns. Each line gives you the following information: The Id is the record number, Code_Name is a code for each Fox in the study, date and area is a sub area in a bigger grid. Basically I have an area divided by squares and every time a marked fox enters in one of my squares a new line in the data is created. What I won’t to know is if a fox when in my area of study will return to the same squares or not.
ID
CODE_NAME
Date
Area
Logical 116
SSS1 02-Jan-09 1A1
273
RRR1 02-Jan-09 2A2
2959
BBB1 02-Jan-09 1B1
2959
What I’m trying to achieve is a 5th column were ill get a logical value of TRUE or FALSE if, for each fox in the next available record a fox went back to the same square or not. So if you check for the fox RRR1 I have 2 records one in 2 of January in area 1A1 and a second in 7 of January in the same area. For the Fox BBB1 you will see that she was always in different areas and for CCC1 she only came back to one square.
The problem is I have over 400 fox’s and 12000 records and I’m trying to get a way of doing it automatically.
I need to identify duplicates in a list and have the foilowing formula:
=IF( COUNTIF(range1,A2)>1,"Duplicate","")
This works ok but i have a further condition which i dont know how to factor into the formula. I think i could write some vba to determine the dupes but i was hoping to avoid this as im sure it will take me an hour or so. Duplicates are identified at the moment as being identical numbers in column "amount", i now need to specify duplicates as being identical numbers in this range where there is at least one row with no pay date filled in in col "paydate"
I was wondering if there is a formula or a vba code to return each number once from a list. For example I’ve got a list with app. 500 rows and maybe 80 different numbers in there, so one number could be 50 times in the list, another number maybe just once. Is there a formula, which returns me each number once? Can’t think of any, or do I have to use a vba code be get the information?
I need a VB code to open excel files located in a path (fixed path) by providing a part of file name through a input box for ex: I have some files located in my local drive as below
I have some files on disk where I need to copy a part of the file name to make a search in our database. The files are PDF. They can have a long name of short. The only thing that does not change is the last part.
The last part ends like this: 1234_vw golf_Es_1234567_20140321.pdf
I'm interested in the part in red to be taken out and put in a cell to the right of the file name.
I used the below code that I found googling. Now I just to cut the part out in red to be able use it in my search in a easier way.
I have seen a worksheet/workbook in the past that only contains (for example) Columns A:H and Rows 1:150. The rest of the columns and rows do not show. Unfortunately I cannot find the example I was looking at and I cannot find any information on how to achieve it.
I have some values in column A which looks like those in table which is shown down bellow. I have somewhere in the middle of that column one empty cell. Of course i have empty cells after the last value. I want formulas or macro or anything which will cut that column in that empty cell and all cells bellow the empty one put in column B from A1, and all cells above the empty one put in column C from A1. I tried everything but i have problem because i dont know how to eliminate empty cells bellow the last cell with value.
I have data in the form of a table. For example a list of duplicate names, each of these names have a corresponding date (lease expiry date). The problem is that the duplicate names have varying dates. So the remove duplicates function does not work because i need to remove the duplicate names with the older dates. I want the latest dates to remain behind.
Data Currently: Solution should be: Sue1/3/2014Mike8/8/2014 Jay25/4/2013Sue1/3/2014 Jay25/4/2013Jay25/4/2013 Mike8/8/2014 Mike8/8/2014 Sue1/3/2014 Sue25/6/2012 Sue1/3/2014 Sue5/7/2012 Jay2/2/2011 Mike5/5/2010
I have a list of what we call "model codes" which are is a similar format to "DFS41FC57DD728NCWRY3"
The list could be 6000 rows but may contain hundreds of duplicates and may only contain 50 different model codes
I am looking for a formula that will populate a new column (B in the example below) with only the individual codes (unfortunately the xls example I created wont upload)
COLUMN A COLUMN B DFS41FC57DD728N3SRY3 DFS41FC57DD728N3SRY3 DFS41FC57DD728N3SRY3 DFS41FC57DD728NCWRY3 DFS41FC57DD728N3SRY3 DFS41FC57DD728N3SRY3 DFS41FC57DD728NCWRY3
I have a list of Dates in Col. A Column B contains both numerical and text values.
I need to define a value in column B, and create a list of the dates that these occured on, on another sheet. Auto filter doesn't work because there are several different columns. If I try to use it I also get the values in the other columns.
I am confident the answer is no, but is there any formula / combination of formulae that will seek out unique values in a list of duplicates (just like filtering unique records only)?
I have a list of many duplicating sales people and I want to just create a column on another sheet that automatically sorts out the unique values (then I will sum their sales numbers with the SUMIF formula).
(By the way, the reason I just don't use the filter function is because the list always changes so I would need to keep applying it.)
I am trying to work out how I can assign a sequential value to sets of duplicate data within a list. i.e. where I have duplicates in a list I want each of the duplicates (that are in the same set) to have a sequential number assigned and for that to start from 1 each time it discovers a new set of duplicates.
RED GREEN YELLOW PURPLE RED ORANGE BLACK GREEN RED
Where a colour is duplicated in the list I want it to have a sequential number assigned. When a new set of duplicates is found the numbering starts from 1 and sequentially increases. So the above data list would resulting in the following output
RED 1 GREEN 1 YELLOW PURPLE RED 2 ORANGE BLACK GREEN 2 RED 3
Have tried variations of the RANK function, but not sure how to get the sequential nu,bering to restart with each unique set of duplicates. I would also like to do this without VBA if possible using the built in functions.
I am making an excel document that has a log of repeating data, one column of which includes names. At the bottom of the document, I am trying to make a small box that tallies all of the people within the document and the number of times they placed an order. What is the formula for when you want excel to find a word within the document? Right now I am using =CELL("CONTENTS",C6) etc. So all that does is repeat the word when it is used. But it duplicates the word in the box down below because it appears in the log numerous times.
i need to lookup in a sheet for cells that start for example by "SE=", and copy them to another Sheet creating a list! But some of this cells started by "SE =" are repeated, like:
SE = cars SE = cars SE = cars SE = dogs SE = dogs SE = bike's
Essentially, the formula/solution will "know" that the third occurence in the list is actually the 3rd occurence, and so forth... I tried COUNTIF but that just gave me the total number of occurences