Extract Unique Records Based On 1 Column

Aug 27, 2007

I have a single excel data sheet with 10 rows of header information and then multiple rows and columns of data

I need to extract the 10 rows of header data plus the rows for each unique record in Col A into its own separate worksheet, with the work sheet name being the unique record from Col A

To further add to the challenge, the data in col A may have "/" in so will not comply with excel sheet naming convention so would like an error message to remind me to manually change a sheet name.

I attach an dummy data sheet just to show what I mean!

View 6 Replies


ADVERTISEMENT

Combine Multiple Records Onto 1 Row Based On Unique Number In Column

May 2, 2008

I searched and searched and I can't find an easy way to do this without using Access which I am rubbish at. Is there an easy way to do the following in Excel.
I have several thousand records by row each with a unique numerical identifier. The unique identifier is the "Household". Within the household there are sub "Accounts". The sub accounts are truely unique. All the "Accounts" are in the same column.

What I am trying to do is combine the records into one row per "Household" with the accounts listed in successive columns. The maximum number of accounts there may be is 7 but it can be as few as 1. Example:

BEFORE
HH Acct
1 1234
1 2345
1 3456
1 4567
2 9876
2 8765
3 1113
4 5556
4 4447
4 3335

AFTER
HH Acct1 Acct2 Acct3 Acct4 Acct5 Acct6 Acct7
1 1234 2345 3456 4567
2 9876 8765 8765
3 1113
4 5556 4447 3335

View 3 Replies View Related

Extract Unique Records From Table?

Feb 13, 2014

I am trying to populate a tab with all the unique values from a data table. For example, list all the SKUs, SKU Names, Buying Groups, etc. for "Owl Filled Candles" on the "COLLECTION - SKU" tab. For reference, the "VENDOR - SKU" tab works perfectly. I want the COLLECTION tab to do the same thing as the VENDOR tab. The only difference is the VENDOR-SKU tab is pulling data based on a Vendor's name in a drop-down list in B3 and the COLLECTION tab is pulling data based on the Collection name in a drop-down list in B3.

I tried to just copy the tab and reset the reference cells but that isn't working.

View 4 Replies View Related

Extract Certain Records Based From List Based On Date

Oct 9, 2007

In sheet1 I have the following

1. Names (Column A)
2. Date (Column B)

My current list if from A2:B300

I am trying to have a piece of code go through all the records in this list, if any of the dates are within the next 2 weeks (from now()) then copy this record (name, date) and put in sheet2. And loop through all 300 records or possibly additional records.

View 10 Replies View Related

Extract Records Based On Single Condition

Jun 21, 2008

I am working on a data mining project and need to extract records based on a single condition. In the attached workbook you will see 5 columns – 4 Inputs and 1 Output. I need to automatically copy and paste on a separate sheet those records in which the Output value is greater than 970. A Record includes the values of all 4 inputs and the corresponding output value. I did this by hand for this subset of data but the actual number of record is extremely large so I need a macro which will do this for me automatically.

View 3 Replies View Related

Unique Records In A Column With A Twist

Jan 11, 2013

I would like to place a formula in cells A2 down that does a running count of unique combinations of columns B and C.

For example, the first record is a white dog, so at that point there is 1 category of dog, next is a brown dog, so there there is now 2 categories etc.

I initially tried to adapt an array formula 1/COUNTIF($B$2:$B8,$B$2:$B8) but this wont quite do the trick.

View 9 Replies View Related

Count Unique Records With Criteria From Another Column

Feb 14, 2008

As the title says, I need to count the number of unique records (names) in column A, where column L is = to something specific (X,Y,Z,W, whatever) for some statistics im trying to report.

Please see the attached spreadsheet. For role X statistics, I need a count of the unique names from col A, where col L = X. Based on my sample spreadsheet, the number should be 2. For Role Y, it should be 3.

There is the potential for spaces in the rows, and no one will be 'cross role'

I've got a few different methods to just count unique values with specific criteria in the same column, but I just can't make anything work for specific criteria in another column.

View 9 Replies View Related

Formula To Count Unique Records In A Column

Apr 30, 2009

I need a formula that will:

Count unique records in column C
Where value in column N = "ABC"
And value in column I = "XYX"

View 9 Replies View Related

Extract Unique Names From Column

Jun 18, 2007

I have a column which has about 600 Names, and some of them are repeated, so I want to extract the Unique of them into a separate column, How can I do that?

View 5 Replies View Related

Macro Logic: Extract Higher/lower Values Based On Unique Cell

Jun 12, 2009

This is a logic based macro that needs to compare values in 1 column above a specific cell and take action until the column has no more data. Here's what I'm trying to do (and I've also attached a sample of desired results):

1) I want user to input starting cell. So I need to create a button for that.

2) This is where the logic begins and I'm having difficulty.
From cell defined in button, I move up one cell in that column and compare that value to the original cell.

If the value is greater than original cell then logic needs 2 outcomes:

a) move up 1 cell in column and if that value is less than original cell, then extract that value and copy that value one cell to the right or 1c.
b) move up 1 cell in column and if that value is greater than original cell, then move up again, until find lesser value than original cell. Once we find value less than original cell, extract value and copy value one cell to the right or 1c.

View 2 Replies View Related

Compare Data In 2 Columns Extract Unique Values And Paste Into 3rd Column?

Sep 11, 2013

Here's how my daily report is currently set up:

ExternalInternalDifferences
123000123000
234564234564
345456345456
456567378987
565456456567
654547524564
788879565456
865478654547
745654
788879
865478

The External column contains data provided by an external vendor. The Internal column contains data compiled internally. The data in the Internal column will always contain data duplicate to the External column, but will also contain unique data not present in the External column. I would normally cut out the data contained in Internal column that is not duplicated in the External column, and paste it into the Differences column, and move the remaining cells in the Internal column up. The result would be the External column data and Internal column data would align by row, and the data unique to the Internal column is segregated to the Differences column, like so:

ExternalInternalDifferences
123000123000378987
234564234564524564
345456345456745654
456567456567
565456565456
654547654547
788879788879
865478865478

While not a difficult task for 8 rows of data, the actual daily report contains over 1000 rows, on average. I would like to set up a template workbook, where I can simply open the template workbook, paste the data into both the External and Internal columns, then have the values that are unique to the Internal column extracted from the Internal column and inserted into the Differences column.

The end product would be used daily, with differing amounts of data (from 100 rows to 10,000 rows).

View 8 Replies View Related

Extract Unique Values From Column B Between Date Range Textbox1 And Textbox2

Jul 3, 2007

Sheet1 has following two columns

----A----------B
01-07-2007---10
01-07-2007---20
02-07-2007---30
02-07-2007---40
02-07-2007---40
03-07-2007---60
03-07-2007---70
03-07-2007---70
03-07-2007---90
04-07-2007---100
04-07-2007---110

Sheet2 has following three cotrols

Textbox1=02-07-2007
Textbox2=03-07-2007
combobox=?

I want to Extract Unique values from column B between date range textbox1 and textbox2 and finally how to add these unique records in combox1

View 3 Replies View Related

Find Records Based On More Than One Column

Feb 9, 2007

I have a very large table that has a one to multiple relationship in a GIS. GIS doesnt support that type of relation ship. I need to find records that are related to the single key but have different values than the first record for that key.

eg

Col 1 col 2 Col 3(key)
ab ab 1
bc bc 1

In this example, only the first row (ab) will be regarded in the GIS. so I need to pull out the second row and put it into another dbf based on the three columns so that I can then put it into the GIS so that the second row is considered and not ignored.

View 4 Replies View Related

Find Duplicate Records Based On Multiple Columns But Keep Records

Aug 10, 2014

I have a range of columns i.e. 23 columns (i.e. B through X). Someone can write records in these columns (starting from B21).

Duplicates are considered the rows with similar data in columns 3 and 11. I know about the removeduplicate method and works really well but i want the duplicates not to be removed. Instead another column shall be checked for date of entry (user will entry date in format dd/mm/yyyy). The newest entry will change the value of the cell in column 4 (islatest column)to TRUE while all other records will be FALSE. This will work with the filtering of data on a pivot table on another worksheet.

View 7 Replies View Related

Pull Found Records From Table Based On Single Column

Apr 16, 2008

I have the following data :-

SHEET 1
COL A_______COL B________COL C
V1990_______J100_________U1212
H2323_______Y999
U2222

SHEET 2
COL A_______COL B________COL C
U2222
I0000_______U8900________T67888
H2323

I need to search data from range defined A1.C3 and if any data in that range found in the sheet 2 that having the same records.

View 7 Replies View Related

Formula That Counts Unique Dates In Column Based On Another Column Value?

Jan 8, 2014

How would I count unique dates associated with another specific value on a worksheet?

For instance, Lets say I want to count each day a particular person makes a sale.

Example:

Sales PersonSale IDSales Date
Don 1001/6/2014
Don 1401/7/2014
Don 1601/8/2014
Jack 1011/6/2014
Jack 1021/6/2014
Mike 901/5/2014
Mike 1031/6/2014

So on another worksheet, I'd have:

Sales Person Days with Sale
Don 3
Jack 1
Mike 2

The Formula would go into the "Days with Sale" Column.

View 2 Replies View Related

Unique IDs For Records Run Each Week

Jul 19, 2013

We have our new employees fill out a form with name, address, tax info, etc. each week. (They all do it at the same time.) I then get 20 PDFs and export all the data to a CSV. We now want to import that CSV into our payroll software. However, the payroll software requires a unique ID for each employee.

So, we'll have this CSV each Monday, and each Monday, I need to "continue" the unique ID. So if this past Mondays started with 1000 through 1020, then next week, when I export, I want to start those records at 1021 and end at 1040. Then the following Monday, 1041-1060, etc.

Is there a way I can keep a record of what IDs are used and continue from that point each week?

View 3 Replies View Related

Sequencing Unique Records

Feb 18, 2008

I am working on a data integration and have transactional data sets with multiple columns of data. In reviewing the data, I can see that based on values in 2 different columns, I can identify unique transaction records. The data is already sorder by transaction # and date. Creating a pivot table gives me back summary info for header records (I can get unique header records based on a concatenation of the trx # and Date), but I am having a difficulty obtaining uniqueness for the line items. The id that I created for purposes of header record summation means nothing from a user standpoint and I need to come up with more meaningful info.

What I have and what I want is...:

Tranaction#DateWhat I want is…15801911/23/2005015801911/23/2005015801911/23/2005015801911/22/2005115801911/22/2005115801911/22/2005115801911/22/2005115801911/22/2005115801912/12/2005215801912/12/20052

If I can get the data defined like that, then I can concatenate the trx# and the increment to block out the transactions into individual transactions.

View 13 Replies View Related

Calculate The Unique Records By Day

Aug 21, 2008

I have downloaded data to an excel spreadsheet by day and need to calculate the unique records by day. Then all the daily totals should equal the monthly total if I ran the same date range for the month by removing the duplicates to get the unique records.

View 9 Replies View Related

Unique Records Search

Nov 28, 2009

I have a formula for counting unique text records. However, is it possible to count unioque records based on certain conditions. For example, I have a stats sheet for a sports league and I want to count all the unique teams for dsivision 'North'. Coloumn A has the division, coloumn B has the team they played on that day.

I want to count all the unique records in column B, but based on those teams being in the 'North Division' (column A)

I want to do this with Excel, and not in VBA.

My formula for finding unique records is:

View 9 Replies View Related

Filter Out Unique Records

Jan 8, 2008

I have a very basic table of customers. In one column there is duplicate data. I guess in most cases an Excel user would only want to filter the table to show the unique records only. In my case I want to do it the opposite way round, to delete the unique records so I have multiple occurrences of strings that appear in that one column. I've used the "Conditional Formatting" trick, which is great = COUNTIF($G$1:$G$44000,G1)>1 highlights all of the strings that appear more than once. What I'd like to do from there though is to either just have that data, and to remove the unique records.

Either that, or.. is there some way to have a field/column which shows "True" or "False" if such a string has appeared more than once in a column. Auto Merged Post;I forgot to mention.. the reason I'd want a column of "True" and False" would be because then I'd have the ability to sort/group the data into all the recurring records and all the unique ones. I'd then be able to do away with the unique ones by just copying the recurring ones.

View 3 Replies View Related

Extract Multiple Records From A List

Feb 9, 2009

I'm trying to find a way to extract multiple records from a List. I'm looking, I guess, for the multiple-record extract version of dGet().

View 2 Replies View Related

Fill Column B Based On Non-unique Values In Column A?

Apr 21, 2014

I have a worksheet with Coulmn A and B , wherein , Column A has a list of values that can be duplicated. Based on the values in Column A, I want to fill corresponding cells in Column B. see the attached.

way to accomplish the same. Tried VLOOKUP.

View 1 Replies View Related

Get The Number Of Unique Records In A List

Feb 13, 2006

Here is a sample of data that I have:

code name lastname
TS19SylvainBrook
TS19SylvainBrook
TV04ValérieMusoni
TV04ValérieMusoni
VB05BenValiquette
VB05BenValiquette
VB05BenValiquette
VI02IsabelleVanasse
VR07RichardVivo
VR07RichardVivo
VR07RichardVivo
WD01DanyWilliams
WD01DanyWilliams
WD01DanyWilliams

How can I quickly get the total number of employees from a list like this one? the first field is a unique key (1 code per employee)

In this case, the desired result would be 6. (the count function does NOT give the desired result..)

View 10 Replies View Related

ADVANCED: Extracting Unique Records

Oct 25, 2006

At the moment i am having great trouble taking two sets of records, comparing the two based on certain criteria and then extracting any records (rows) that do not appear twice, that is unique records.

So here it is:

I have two lists of sales.

1. our list from our point of sale system with order numbers and other details, entered by the sales agent.

2. the company that provides the products we sell for them sends us a list of these sales back to us from their end so we can see outcomes of these sales, that is the progress of the order, like cancelled, accepted, etc

The two lists need to be compared to see what sales are missing from either one..

so, I could colour the second list RED and the first list GREEN and add the second list underneath the first list (on the same sheet) and then sort by ORDER NUMBER, which would provide a red, green, red, green, red, etc pattern and i could easily identify sales that are unique, but there are so many thousands of sales this manual process is impossible.

IS THERE A WAY TO AUTOMATICALLY COMPARE THESE TWO LISTS BASED ON ORDER NUMBER AND SHOW ONLY THE RECORDS THAT ARE UNIQUE? THAT IS, GET RID OF SALES THAT APPEAR TWICE AND LEAVE ONLY RECORDS THAT I HAVE TO LOOK INTO WHY THEY ARENT ON BOTH SALES SHEETS...

Here is an example of the data i am using:

ORDER #
1630923-
1634849..
1634849..
1634972+

the numbers do NOT have the .. - or + next to them, thats just there to show you what list each is from.

so as you can see the order numbers with ".." next to them are reconciled, in that they have a partener record and do not need to be shown at all..

and the order numbers with "-" next to them are from our list

and the order numbers with "+" next to them are from THEIR list

i want to end up with a list like this:

ORDER #
1630923
1634972
1635643
1641970
1648112
1649716
1653854

View 10 Replies View Related

Unique Records And Summing Quantites

Feb 24, 2010

Most of formulas I thoght of are only counting number of times it appears or comes back with the number of the unique records under one product.

I have two columns

In the first one I have product ID Numbers

In the second column I have Product quantities ....

View 6 Replies View Related

Copying Unique Rows Records

Mar 4, 2013

I got this code to copy stuff from Raw data worksheet which has a Dynamics Atlas table to another worksheet named input. However, I noticed that some records are duplicated so I want the code modified to only copy unique records based on criteria in column B of the "Raw data" worksheet.

Sub Copy_atlas_table()
Application.ScreenUpdating = False

With Worksheets("Input")
.Range("A2:S2" & .Cells(Rows.Count, "G").End(xlUp).Row).ClearContents

[Code] .......

View 1 Replies View Related

Automatically Filter For Unique Records Only

Mar 15, 2007

I know how to use an Advanced Filter to sort for Unique Records Only and copy them to a new column, but I am looking for a way to do this automaticly everytime I update my worksheet.

I have a worksheet that populates an e-mail distribution list based on what you imput. Some e-mails are duplicates and I would like to eliminate them automatically before I Concatenate them into a single cell.

I imagine this could be easily done using VBA, but I am not firmiliar with writing any code so it is above my head.

View 9 Replies View Related

Get Unique Records Using Advanced Filter From VBA

Mar 11, 2009

i need to use the advance filter=>unique records only feature from my macro... how would i do tat? i have 3 columns... column A has records which are repeated... column B and column C's values for a corresponding column A's value are the same...

A B C
a 3 6
b 4 7
c 8 9
d 1 2
a 3 6
b 4 7

.... and so on...

i need to use tat feature so tat i can filter column A alone and then copy column A, column B and column C's value to columns E,F and G...

View 9 Replies View Related

Identifying Unique Entries Based On Unique Entries In Another Column?

May 29, 2014

I have a list of data and I want to identify the unique entries for both columns but the second column has to unique to the unique values in the first column.

Example List

Fruit
Color
Apple

[Code]....

View 9 Replies View Related







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