Trying To Extract Unique Values With A Formula
May 14, 2014
I have a very large table in Sheet 1, in the following range A10:1:3068.
Column C has the company name, and there are multiple instances of the same company name in this column.
(Columns E to I are part of a pivot table and I have various formulas in A thru D).
In column A I have a value indicating whether the company has 'exposure' (an internal meaning for our sales team). If the company has exposure, then the word exposure is indicated otherwise the cell is blank.
What I need to do is in Sheet 2, create a table that extracts a unique list of company names from column C only where it has the word 'Exposure' next to it in column A.
I would like this to be dynamic so if I change a value in the pivot table in sheet 1 the values in the table in sheet 2 will update accordingly.
I am figuring this is an index and match or perhaps a countifs.
View 9 Replies
ADVERTISEMENT
Aug 27, 2013
I am trying to extract unique values from a column but i can't, i am using excel 2010 and i have try the formula: =INDEX(List;MATCH(0;COUNTIF(C1:$C$1;List)+(COUNTIF(List;List)<>1);0)) but nothing.
Example:
NAMES UNIQUE VALUES
ΑΒΑΚΟΒΑ ΛΑΡΙΣΑ ΑΒΡΑΜΟΠΟΥΛΟΣ ΗΡΑΚΛΗΣ
ΑΒΑΚΟΒΑ ΛΑΡΙΣΑ
ΑΒΟΥΡΗΣ ΔΙΟΝΥΣΙΟΣ
ΑΒΟΥΡΗΣ ΔΙΟΝΥΣΙΟΣ
ΑΒΡΑΜΟΠΟΥΛΟΣ ΗΡΑΚΛΗΣ
ΑΓΑΘΟΣ ΕΥΑΓΓΕΛΟΣ
ΑΓΑΘΟΣ ΕΥΑΓΓΕΛΟΣ
View 11 Replies
View Related
Feb 18, 2006
Given a long column of values, how do I extract only unique values? Small example > Values of 1, 2, 2, 3, 4, 4, 4, 5 in column A. Would like to extract unique values ... 1, 2, 3, 4, 5 ... and put them in another column.
View 13 Replies
View Related
Dec 23, 2009
I Want To Extract One Value From The Row Skipp Repeated
In Other Word Need Formula For Row Instead Of Advanced Filter, Unique
Sheet2 ABCDEFGHIJKLMNOPQRSTUVWX1Data123451234554512234511882Result123458 Excel tables to the web >> Excel Jeanie HTML 4
View 9 Replies
View Related
Oct 24, 2012
How can I extract the unique values from the original list but only those whose their SUMIFS is greater than zero? in my example "Blue" , "Yellow" & "Red" should not be extracted.
Sheet1 ABCDE1Original Unique2Purple10 Purple103Blue0 Blue04Pink1 Pink15Yellow0 Yellow06Green13 Green31
7Blue0 Red08Green18 Black29Yellow0 10Red0 11Black2 12Pink0 13Black15 14Purple6 15Red0
Spreadsheet FormulasCellFormulaD2{
=IFERROR(INDEX($A$2:$A$15,MATCH(0,COUNTIF($D$1:D1,$A$2:$A$15),0)),"")}E2
=IF(D2<>"",SUMIFS($B$2:$B$12,$A$2:$A$12,D2),"")D3{
=IFERROR(INDEX($A$2:$A$15,MATCH(0,COUNTIF($D$1:D2,$A$2:$A$15),0)),"")}E3
[Code] ...........
View 9 Replies
View Related
Nov 3, 2013
Extracing unique values based on two lists(2 sheets).
My scenario:
Sheet1 has 2 columns with one million lines. (Master sheet)Sheet1 ColumnA=serial numbersSheet2 has 200,000 lines with same format. columnA= serialsheet2 has some new serials and some existing serials
Serial is 18 digit number saved as text (dunno of that matters)
Solution:
how can I get vba to check serial agaisnt serial ( Sheet2 ColumnA against Sheet1 column A)extract all new serials (unique of sheet 2 only)unique lines to export to new sheet or replace sheet2
View 5 Replies
View Related
Jan 24, 2009
I want to extract all those unique values in column A, if and only if, all their repeated values in A
have zeros in B. I mean, if one value appears N times in column A, and for the N repetitions its
respective value in B is zero, this value in A must be extracted from the list.
I was trying with count frequency of values, but I dont know how to extract
unique value with the required condition.
Example:
*ABCDEFGH1********2XYA-121******3XYA-120******4VVT_320******5VVT_320******6VVT_320******7RRT0******8UBN-550******9UBN-550******10PPT_431******11********12********13*Extracted values have all their repetitions with 0 in column B**14VVT_320Value extracted because appears 3 times, and those 3 times its value in B is 015RRT0Value extracted because appears 1 time, and that 1 time its value in B is 016UBN-550Value extracted because appears 2 times, and those 2 times its value in B is 0 Excel tables to the web >> Excel Jeanie HTML 4
View 9 Replies
View Related
Sep 21, 2007
I have 2 sheets in a workbook. Column A on sheet 1 has numbers such as 123456, 123457, 123458 ect ect. Column A on sheet 2 has same amount of numbers but mostly different. However there are a few duplicates. QUESTION: How can i write a code that will fit in a new sheet lets say sheet 3 that will pull out only the list of numbers from sheet 1 and sheet 2 that are NOT duplicates?
View 5 Replies
View Related
Jun 16, 2008
I have data of different accident year. Now I need to identify different Accident Year and use them in Macro to do certain things. For example in the file attached I am using them in Msgbox. Now to acheive that I first extracted unique values using advanced filter on Column C and later use the different value to POP up the Msgbox. (This is achieved). Now I want to skip this part of doing Advance filter to extract unique value. Is there a way I can know unique value of data through the code itself and use them in program. here is what I am doing currently: I have delted the most of the data cause I am concerned with coulumn containing acc_year only.
Sub test()
Columns("A:A").AdvancedFilter Action:=xlFilterCopy, CopyToRange:= Range("C2" _
), Unique:=True
Range("C2").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Sort Key1:=Range("C3"), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
Range("C3").Select
Do While ActiveCell.Value <> ""
MsgBox ("The Year is " & ActiveCell.Value)
a = ActiveCell.Row
Range("C" & a + 1).Select
Loop
End Sub
View 3 Replies
View Related
Feb 20, 2013
I wan to extract Unique values, here is the data for reference, I have made to tables the second table is desire result I wanted.
Sheet30 ABCDEFG1JOB #WASHQTY JOB
#WASHQTY27800A1000 7800A100037801B1000 7801B100047802A1000 7802A100057800
A1000 7802C100067802C1000 7805B100077805B1000 7807D100087800A1000 7809D
100097807D1000 107802C1000 117809D1000
View 9 Replies
View Related
Feb 27, 2014
I've had a look at some examples of extracting unique values but it seems quite complex to me!
I have a list of customer names in column A, column B contains a material code (number format), column C contains the material information sheet (text & number format), column D contains the date that the material information sheet was sent (all column headers are in row 1).
Columns E, F & G follow the same format as above but for a different material code - this is repeated further in Columns H, I & J.
All of the material codes are different, but some material information sheets can be the same for some materials.
In column K I need to identify the unique material information sheet values for each customer, as some are duplicated.
Is this possible? There may be some blank values in the row i.e. a customer does not receive a certain material.
Perhaps just an easier way of organising the spreadsheet!
View 9 Replies
View Related
Jun 20, 2014
I can extract unique values from the list but thing is I need extracts only those values which match partially below is scenario
Column A has values ----
Column B has Countries..
so I need extract only those values which eg : Contry is "*Ind*"
Code:
=INDEX($A$2:$A$15,MATCH(0,COUNTIF($C$1:C1,$A$2:$A$15),0))
above formula I used to get unique values I need to add one more criteria which gives only matched.
View 1 Replies
View Related
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
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
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
May 30, 2014
I have two lists in different columns, which are defined ranges. I want to extract them to a unique list with an array formula and at the same time sort albafetically, without duplicates, like this:
List1
List2
Final List
Audi
Ford
[Code] ....
So far, I have this formula which is working in what concerns removing duplicates and exctract a unique list. But it is not ordering alfabeticaly.
{=IFERROR(IFERROR(INDEX(List1, MATCH(0, COUNTIF($D$1:D1, List1), 0)), INDEX(List2, MATCH(0, COUNTIF($D$1:D1, List2), 0))), "")}
View 2 Replies
View Related
Aug 14, 2014
1. Using a formula, I am trying to to obtain a list of unique values (string) (caveat: see #2) from the range E2:E10000 (arbitrarily chose 10000 - the row number is variable)(see #3).
I currently have a formula that seems to work for this purpose but I don't know how to add the condition in #2 (below)
2. To include all unique string values except those starting with the letters "IC"
3. Is there a way to make this formula so that it can only seek values up to the last row, and not go to the 10000th row if not necessary? The E column has no empty cells until after the last row that contains data.
Here is the formula I currently use which serves #1 (above):
[Code] .....
Any way to improve/simplfy this formula for the purpose describbed in #1? How can I add the condition in #2? Can you see a way to include #3? The most important issue here is #2.
Example of desired results:
Column A | Column B
AA | AA
DD | CC
AA | DD
CC |
DD |
DD |
IC |
IC |
View 14 Replies
View Related
Jun 27, 2014
Looking for a formula to extract values based on drop down options selected in column M3, N3 and O3. Desired outcome is in green color. See attached sample workbook for your convenience.
EastGolf2012, 2013
Month2012 Golf2013 Golf
January2849
February649
March6612
April
May
June
July
August
September
October
November
December
View 3 Replies
View Related
Jan 7, 2010
here's the situation and what i'm trying to do:
each row/record is as follows:
column A contains zip code
column B contains zip code population
column C contains city name
columns D contains state name
there are multiple duplicates in each column.
i am trying to calculate the population for each city and place that data in each row in column E.
in order to do so, i need to add the populations (column B) of all UNIQUE zip codes (column A) for each city (column B) / state (column D).
View 13 Replies
View Related
Jan 16, 2008
This question pertains to the solution offered by Dave Hawley in the following post: Sum Unique Values That Exist In Another Column. The original question relates to summing certain values in a column based on unique values in an adjacent column. I have tried the solution on my own, and it works quite well, however, I just can't understand how the "criteria" in column C functions.
ID XXX
1 100
2 200
1 100
3 500
4 600
2 200
--------------------
Total 1400
Assume your 2 columns are A & B and you wish to SUM column B where any unique value exists in the same row but Column A. Add headings to A1 & B1. In C1 Enter the text Criteria. In C2 Enter this formula =OR(COUNTIF($A$2:$A$100,A2)=1,COUNTIF($A2:$A$100,A2)>1). In any cell Enter =DSUM($A$1:$B$100,B1,$C$1:$C$2)
View 3 Replies
View Related
Jun 15, 2014
Looking for formula to extract values from column A, D through K from raw data table if conditions are met. Desired outcome is in green color.
Sample data attached : Pull.Sample.Data.2008.xlsx
Outcome
WestTarget
ProductQ1BBQ1Q2BBQ2Q3BBQ3Q4BBQ4
Product 1348477119150
Product 2578251973823
Product 8763949644583
View 6 Replies
View Related
Aug 21, 2012
I have the following text below and need a formula to extract the text
check deposit fee 0.020% per Month
mortage security $ 2.25 for every $1.00 borrowed
View 9 Replies
View Related
Sep 18, 2013
I have the following macro (as part of a much bigger set of code that adds some formulas to to cells to return the total number of unique values. The problem is, this part of the macro takes over 10 minutes to run. Is there a quicker way of doing this or am I going to have to just wait it out each time.
The columns B and/or H is a formula. Column W is an string value.
FYI the last row it is counting to is between 4000 and 30000 lines in each of the formulas
Code:
Dim IRMatRow As Integer
Dim IRMisRow As Integer
Dim UKMatRow As Integer
Dim UKMisRow As Integer
IRMatRow = Worksheets("Matching Stats").Cells(Rows.Count, "H").End(xlUp).Row
[Code] .........
View 2 Replies
View Related
Dec 3, 2013
I have a query from an access DB that I pull into an excel sheet automatically every 15mins. Column G contains a list of 6 digit customer reference numbers and column C contains a list of the users that have modified records for that customer.
I use a summary sheet to count the number of customers a user has modified records for in that day. The trouble I am having is counting unique records using the COUNTIFS function. In my database if a user changes a record and hits save 10 times that will create 10 records. I only want to count this as 1. I am using the following formula but it doesn't seem to like the 2nd range and criteria in the countifs bit.
=SUM(IF(COUNTIFS('Daily Loss Data'!G2:G1500,'Daily Loss Data'!G2:G1500,'Daily Loss Data'!C2:C1500,"John Smith*")
=0, "", 1/COUNTIFS('Daily Loss Data'!G2:G1500,'Daily Loss Data'!G2:G1500,'Daily Loss Data'!C2:C1500,"John Smith*")))
Daily Loss Data Sheet Notes: Column C = user, Column G = Customer Ref.
I am using an IF statement because my range changes after each query refresh so contains zero's that I obviously do not want to count.
View 1 Replies
View Related
Mar 18, 2014
I need to count the unique items in a range that don't contain the string "option". I would like not to use VBA for that but I can't make it work with a simple formula.
For now, I have :
[Code] ......
That doesn't count the cell with the content "option" and count correctly the other unique items. However I need to ignore any cell that contains the string "option" (with wildcards).
View 8 Replies
View Related
May 20, 2014
I need a formula to extract data after "<li>Color: " & before"</li>"
A
B
1
ORIGINAL
RESULTS
2
blah blah blah<li>Color: White</li>some informations
White
3
blah blah blah<li>Color: Red</li>some informations
Red
4
blah blah blah<li>Color: Black</li>some informations
Black
5
blah blah blah<li>Color: Red</li>some informations
Red
I have already use this formula but I get the "#VALUE!" error even if the cell contains the "<li>Color: </li>" data.
[Code] ....
Sometimes, some cells does not contain the "<li>Color: </li>" data, I don't want the "#VALUE!" error, I just want a blank cell there.
This is an example with the real values I want to extract Example.xlsx
This is the formula that works
[Code] ......
View 8 Replies
View Related
Aug 21, 2013
I have an issues with a formulae I have written to measure two factors;
A; How many different countries appear within a certain date range. B; What countries are they.
I tried a unique list, but could not get it to work within a range? I dont particuarly care how the data is pulled through as long as I do it. At the moment I have become stuck in 'Unique Ranges' and have n given up?
The formulae issue is in the tab "Problem_Formulae", the dat in the sheet 1, and the date ranges in sheet 2. Also, just to make life a bit more challenging pivot tables are a no go .
View 6 Replies
View Related
Jul 9, 2014
I have a file with a column containing a series of records where a reference number can be repeated several times. I want to create a formula that will count the number of unique reference numbers in the column.
However - and this is the tricky part - I need it to allow for when the report is filtered, i.e. something like a SUBTOTAL function which ignores the hidden values.
So, the column in the full report has 691 unique values across 2,200+ records. If I apply a filter the column only has say 78 unique values. Is there a formula that can calculate this?
View 12 Replies
View Related
Nov 6, 2013
I have been using this function to count the number of unique text values in a data set:
=SUM(IF(FREQUENCY(MATCH(B2:B10,B2:B10,0),MATCH(B2:B10,B2:B10,0))>0,1))
It works great if I want to count number of unique text values overall. However, I want to count the occurrences of unique text values if they meet specific criteria. (Like a countifs function would if it could count unique text).
View 7 Replies
View Related
Apr 25, 2013
I have a spreadsheet with some calculations and the part i am interested in is data in R4 : V58
In this R4:R58, S4:S58 and T4:T58 have some rows that have False because of IF calculations that put False in some rows of R and hence in S and Hence in T.
For example, R15="FALSE" so will S15 and T15 be. Col U is based on whether the corresponding row in R is False or a number. If a Rown in R is false, the row in U= 0 else the row in U is the same as in the same row of a different column - Col I
Col R, T and U are numbers. Col S is text
For example:"
R S T U
False False False 0
False False False 0
False False False 0
55 DEF 3 15
46 XYZ 2 67
False False False 0
False False False 0
23 GEF 4 43
I want a table in another worksheet that will sort through this using a formula and print
Col1 Col2 Col3 Col4
55 DEF 3 15
46 XYZ 2 67
23 GEF 4 43
If I can define things like where the table will be placed in the new worksheet etc, that will be a bonus..But It appears I cannot understand how to do this at all..
View 3 Replies
View Related