Consolidate/Remove Multiple Instances Of Same Value
Jul 16, 2007
I have a column of IDs (260, 266, 405, 437, etc.). There are several instances of the same ID throughout the column. I would like to remove all but one instance of an ID so that I see what IDs I have. Is there a way to identify what IDs are there and then remove all but one of them?
This input is exported from a system we have and may vary in length and values from time to time.
What I want to do is pull all the data for specific currency pairs (probably for 5 of the 10+ currency pairs it displays) onto another worksheet. And for each tenor for that currency pair, i want to perform 10-20 lines of analysis on the next sheet.
So, if GBPUSD was a currency pair I was interested in, I would need 10-20 lines for GBPUSD 1w, 10-20 lines for GBPUSD 1m, 10-20 lines for GBPUSD 2m, etc.
How can I pull this? While maintaining flexibility so if the tenors, currencies, and # of lines change?
I have a workbook that has multiple tabs and need help trying to figure out how to consolidate all the data. I find myself spending hours doing this manually each day.
Here is what I have:
Workbook has tabs labeled....Wk1_Mon, Wk1_Tues, Wk1_Wed, Wk1_Thurs, Wk1_Friday, Wk1_Summary......and repeats all the tabs through Wk5....then I have a Month_Summary tab.
I have 25 users with 25 seperate workbooks each with individual information on each workbook.
I am trying to get a sum of all the data on the Month_Summary tab for each month for each user and as well as a sum of the Month_Summary tab for all 25 users.
The end result I am looking for is to get a Yearly Sum of all the Month_Summary Tabs for all 25 users as well as individual yearly summaries for each users.
I have one main Folder which contains 25 folders (one for each user). Under each user folder there is a seperate Workbook for each month.
I need a macro that would consolidate all data in multiple worksheets of multiple workbooks in one Master file.
All the workbooks will be in one particular folder. The macro should search for data in all the workbooks and consolidate it in one master excel workbook.
I am currently using both excel 2007 and excel 2010. This macro would really reduce manual work as currently consolidating data from 45 to 50 sheets takes an ample amount of time...
I'm trying to search through a group of Excel files for specific values in column B and then copy and paste the value from column C of the same row into the current worksheet if the search term is found. Thanks to some help from turtle44, I can do that if the search term only appears once, but if it appears more than once, I can only find the first occurance.
I have searched through te archives and found lots of people asking for the same thing. The common suggestion is to use .FindNext, but no matter how I try to use FindNext, it doesn't give me the results I want. It either seems to find the first occurance again or to find nothing at all.
Here is a simplified version of my code, if someone could just explain how to find the second occurance of "Use Code" and past the relevant value into column F of the destination workbook, I'd appreciate it and I should be able to work out the rest on my own.
Sub SearchAllXLSFiles()
Dim lCount As Long Dim wbSource As Workbook Dim wbDestiny As Workbook
I have a large dataset with a company name in Column A and a Town in Column B, e.g.
ABC Company London ABC Company London XYX Company Swindon STJ Company Bristol STJ Company Bristol STJ Company Bristol DEF Company London DEF Company London DEF Company London
and I need to identify every instance where the same town appears for each instance of each individual company and add in Column C incrememnt the town name, so the above should end up looking like this:
ABC Company London London ABC Company London London-1 XYX Company Swindon Swindon STJ Company Bristol Bristol STJ Company Bristol Bristol-1 STJ Company Bristol Bristol-2 DEF Company London London DEF Company London London-1 DEF Company London London-2
I'm thinking I need to use some sort of lookup, but because of the volume of the instances of each company I have no idea how many instance appear in the data set. How could I go about achieving this and incrementing the town names in Column C automatically for each instance?
What I want to do today is, I want to get the extension (Type) of a file from the string. I have managed to get formula for that.
PHP Code:Â
=IFERROR(RIGHT(C12,LEN(C12)-FIND(".",C12)+1),"")Â
But the problem is, if the name of the file also have any dots, it is not giving correct result.
For Eg, if the string is ABCD_V1.0.mpp, I am getting 0.0.mpp not .mpp
NB: The file name may or may not have dots. So cannot tell that, it is always the second instance. Need to find the last dot and trip the things before that
I have four different sheets with email addresses in an excel file. There are some email addresses which are present in more than one sheet. I wanted to find these email addresses and remove its multiple instances.
I can't use the simplified version of vlookup, as I can't enter each email address to see if there is another instance.
Is there a way where the excel sheet can search within itself for duplicate values and if not delete/at least point them out, so that I can delete them manually?
Weekly I receive commission payment data. Essentially 2 columns, Col A the client name, Col B the commission amount. I like to sort the data so that I have a total commission amount for each client Firstly I sort the 2 Cols alphabetically. Where there is only one instance of a client name, the total commission is obvious. But any client can appear several times (anything up to 6) with corresponding commission amounts for each name occurrence. One week a client may not appear at all, or they may appear from 1 to 6 times. I seek a formula which, where there are multiple instances of the same client name. will total all the commission payments for that client. Naturally the formula can be in a new Col.
I have an excel file with around 15 sheets. While i open it, i am getting 5 instances of the same file, that means after i open it , i could see 5 copies of the same file. If i make changes in one file, in others also its getting reflected.
how to label/define what I need so I'm not sure what needs to be provided...
I have two columns of data- phone number, city. Each row is an individual record of a call from that phone number to that city. And, I need to ID, for the eventual end goal of deleting, those phone numbers that called multiple cities.
I just installed excel 2007 and encounter a strange problem. When I open 2 or more excel instances from windows explore by double-clicking excel icons, those instances are not linkable, they seem absolutely independent to one another (in View/switch windows only sees one workbook). However when I open second file from within the first instance (Ctrl+O), I see 2 in the view/switch windows and it works fine.
I am trying to consolidate information from multiple (atleast two or more) worksheets (in the same workbook) into a single sheet.
The worksheets have identical column headings. There are 4 columns in each worksheet. The first three columns are text strings (and some cell in these columns may be blank). The fourth column is an integer. The number of rows in each worksheet is most likely to vary. Within a worksheet the rows are unique. However, some rows may be duplicated across worksheets.
To reiterate, here's what I am trying to do.
Step 1. Create a summary sheet.
Step 2. When there is a unique row (identified by the first three cells in that row) across worksheets then I have that row as is in my summary sheet.
Step 3. When there are duplicate rows (identified by the first three cells in that row) across worksheets, I want to add up the cell in the fourth column associated with those row in my summary sheet
I have tried union (works only within a sheet), consolidate (works only with a single column). I don't need the sophistication of a pivot table but simply an aggregation of data
I am trying to do this using macros (within an add-in)
I have enclosed a sample workbook with the expected output. I created this workbook by hand in an attempt to clarify my problem statement.
What I'm trying to do is input a formula in col G which will look for instances of the city named in col F in both cols A and C. This should then return the total of these, from cols B and D that have the letter "F", into col H. Therefore, in the attached example, cell G2 would return "1", G3 would be "0" etc.
Should I be using VLOOKUP or COUNTIF, or maybe a combination of these or something totally different?CityCodeCount.xls
This is a good deal harder than my last issue. I have a few pieces of data:
A62:A80 - Array of Integers named X (2 through 20, to be exact) D62:D80 - Array of Strings named Y (on a Drop Down) AD45, AG45, AJ45 - Formula Holders
Now the tough part of explaining what I want... assume the string in question is "Pie": If Y contains "Pie" once, I want AD45 to take the value of the corresponding X. If Y contains "Pie" twice, I want AD45 to take the value of the first X, and AG45 to take the value of the second.
If Y contains "Pie" three times, I want AD45 to take the value of the first X, and AG45 to take the value of the second, and AJ45 to take the value of the third.
So, in the end, the formula holders will either have a number between 2 and 20, or be blank. Note that it is possible for users to put more than 3 occurrences in Y even if it's user error.
I'm not really asking for the full formulas, but I simply don't know where to start on this, on what functions would be useful in pulling out the values I want.
One idea I had is that:
AD45 searches the array for "Pie" and takes the first value of "X" that matches the find. Blank if it doesn't.
AG45 checks if AD45 is not blank, and searches the array for "Pie" starting at the next index.
AJ45 checks if AG45 is not blank, and searches the array for "Pie" starting at the next index.
I am looking for a formula that will return the cell numbers of multiple instances of the item found using VLOOKUP. For example if I am looking for "A123", this may occur in more than one cell in the search range. I want to be able to return all the cell reference numbers of that instance.
If from a macro I open "workbook A" from within "workbook B" then "workbook A’s" VBA project remains in memory and in the VBA project explorer. If I then run the macro again I have 2 instances of workbooks A VBA project showing, and so on. I read on this forum that if you have a public variable that links the workbooks then this is the reason but I have created a test workbook with the following code
Sub test() Workbooks.Open ("C:Path Data.xls") Workbooks("Path Data.xls").Close SaveChanges:=False End Sub
If I run the macro test the workbook opens and then closes but its project remains open. How do I remove the projects when I close a workbook?
Windows 7 . How do i open multiple instances of excel? even when im working with two workbooks rather than both appearing as the active book in excel only one can be on top. id ideally like to have both appear side by side on my desktop, vertically not horizontally.
So I know vlookup wont work for this, I could do an array index but that wouldn't easily return exactly what I need.
I have two sheets in the same book. One has three columns
Area Room ID A-1 1101 BG11
A-1 1101 BG12 A-2 1102 BG12
The other has a bunch of columns with different information for the ID field
ID INFO INFO INFO ETC...
[Code]....
Sheet1 with the three columns will often have multiple rows for the same ID z with different room/area infor. Sheet2 only has one instance of each ID.
What I would like is something, either macro or in a straight formula that will merge both of these. I'd like to add the Area and Room columns to the second sheet (or merge everything into a third sheet) while keeping all the other info and having repeating lines if the ID shows up more than once.
I have a vba routine in my source application that creates a new instance of Excel and opens a new workbook in the new application using the following lines of Set WoApp = CreateObject("Excel.Application") Set WoBook = WoApp.Workbooks.Add Set WoSheet = WoBook.Worksheets(1)
(This is standard code straight out of the vba Help for 'createobject')
The source appplication builds output in the form of worksheets which includes cell content and pictures placed in shape objects.
I need to copy each completed worksheet from the source application into the new workbook. For example, if MyBook is in the same Excel application as the source then this code will do it:
I have an excel application which works extremely well in one single instancec. It has a bunch of ActiveX control objects on the worksheet. Generally I call them by convention Sheet1.Cmd.show.
I have since experimented with having multiple instances of excel running on the machine. I start to notice something very strange. The first instance I open and run all the activeX buttons are all clickable. As soon as I open a second instance of an excel program all the activeX buttons on the worksheet are not even clickable. They are enabled by my program, but not clickable as if they were not there at all.
I also try open a normal excel workbook then followed by my excel program in a second instance. Even though the first excel file does not utilize any activeX objects all my buttons on the subsequent instance are not clickable.
The weird thing is all my activeX control objects on a userforms are still clickable and call to all my planned events in my program. It is just all the activeX controls on my worksheet that do not have any reaction at all.
I always think when one opens a new instance it will be totally indpendent and would even occupy another CPU if my machine has more in it. If they are truly independent then I am at a loss to understand why my activeX controls would fail to work at all.
I'd like to use VBA to open 3 workbooks in their own session/instance/etc of Excel 2007. Ideally, there will be one main workbook, that upon opening will subsequently open the other 3 workbooks.
Also, when I open that first main workbook, I will obviously have to enable macros to get any code to run. Is there a way to carry this enabling of macros over to the other sessions to avoid having to enable macros in all 3 other workbooks? (Changing my security settings isn't an option)
My company would receive RFQs from potential customers inquiring the availability of different products, and we are trying to summarise these requests to find a trend.
Each product has several attributes, such as descriptions, keywords, manufacturer's code, etc. The RFQs are all different, with each request providing some attributes while missing others. The only reliably uniform attribute is the product number.
I am trying to build a database with the maximum amount of details on each requested product, therefore consolidating the different requests. I already put the source data on the same sheet and sorted the product numbers. I also know how many instances there are for each product number. In other words, my data look like this:
Product number (sorted) Repeat count Attribute 1 Attribute 2
111a 2 aaaa
[Code] .........
Note: 1. The product numbers and repeat count are reliable 2. All the attributes are valid, i.e. as long as one can fill a blank I would take it 3. If none of the instances provide a certain attribute, it is acceptable for it to be left blank
And I am trying to turn it into this:
Product number (sorted) Repeat count Attribute 1 Attribute 2
111a 2 aaaa bbbb
123456 1 abcde
100x 3 123456 wxyz
I already spent a whole day trying to do it with MATCH, OFFSET, VLOOKUP etc to no avail. It seems I would need some kind of VBS with loop and array functionalities that are beyond me.
The database is for a Prison, and an obvious item to search for on a userform is Prison number. I have a serach option that generates an array listing in a listbox, selecting that item then populates the userform - no problem.
The problem occurs when an individual has more than once instance that has been recorded, is it possible to have more than one row generated in a listbox that can be selected, I only want indiviudal rows selected. The coding I am using for one of the single instance listbox is etc etc etc has been used to demonstrate that the coding continues to the length of the array requied
Private Sub FindAll() Dim FirstAddress As String Dim strFind As String 'what to find Dim rSearch As Range 'range to search
Dim fndA, fndB, fndC, fndD, fndE, 'etc etc etc' As String
Dim i As Integer i = 1 Set rSearch = Sheet1.Range("ChargeNo.") strFind = Me.CbAdjFind.Value 'find Charge No With rSearch Set c = .Find(strFind, LookIn:=xlValues)..............
I have attempted to code a "capture" worksheet that will consolidate other worksheets into an importable template. The problem i'm having is when I run my code I beleive it is referenceing the capture page, instead of the other worksheets. I know there are a few ways to accomplish this, one being to reference the other pages through name or location. This will not work as the other sheet names and locations will change, the only constant is the page where all will be consolidated "change capture".
I beleive it is misreferencing as it points to a being 256, and b being 0... both should have different values.
I would like the capture page to consolidate downwards (begin the second paste after the last line of the previous paste).
I need some VBA to consolidate multiple worksheets into one (a 'master' worksheet). I do not have the data to hand. But I have been told every tab has identical columns but with varying number of rows. Also, please note that the data we are interested in starts a cell A15 on each tab.