Create a list of distinct values from a list where an adjacent cell value meets a criteria in excel
Question: How do I create a distinct list from column C (Values) where cell values in column B (Category) equals the value AA? See picture below.
Answer: See picture below.
Formula displaying item numbers (H2:H16):
Formula displaying categories (I2:I16):
Formula displaying values (J2:J16):
Download excel example file.
create-a-list-of-distinct-values-where-adjacent-cell-value-meets-criteria.xls
(Excel 97-2003 Workbook *.xls)
Functions in this article:
IF(logical_test;[value_if:true];[value_if_false])
Checks whether a condition is met, and returns one value if TRUE, and another value if FALSE
COUNT(value1;[value2])
Counts the number of cells in a range that contain numbers
ROW(reference) returns the rownumber of a reference
MATCH(lookup_value;lookup_array; [match_type])
Returns the relative position of an item in an array that matches a specified value
SUM(number1,[number2],)
Adds all the numbers in a range of cells
INDEX(array,row_num,[column_num])
Returns a value or reference of the cell at the intersection of a particular row and column, in a given range
Related blog posts
- Create a list of duplicates where adjacent cell value meets a condition in excel
- Create unique distinct list from column where an adjacent column meets criteria
- Create and sort distinct list by adjacent cell value size
- Highlight duplicates where adjacent cell value meets criteria using conditional formatting in excel
- Highlight duplicates where adjacent cell value meets criteria using conditional formatting in excel part 2








June 26th, 2009 at 7:57 pm
How do I do this with 2 criteria?
June 27th, 2009 at 10:14 am
See this blog post: http://www.get-digital-help.com/2009/06/27/how-to-create-a-unique-distinct-list-where-other-columns-meet-two-criteria/
February 1st, 2012 at 7:20 pm
Hi Oscar,
I am trying to group similar cells together and add up duplicates. That is I have baseline data, and then in the follow up, i have a few that are missing, and I am trying to group them all together. To illustrate:
HHID Income
6001 1000
6002 3000
6003 3000
6004 3000
6005 2000
6006 5000
Now I need to calculate total HH Income by deducting the costs involved but the dataset is like this due to different plots in crop production.
HHID Cost of Production
6001 2000
6001 3000
6003 500
6006 200
now i need to compare or rather use only the ones that are available first by adding the repeated ones as one and then grouping on the available HHIDS, but since the dataset is large i cant do it manually, i can do it easily in stata, but i am yet to renew my licence, can i do this in excel, if yes, can u tell me the formula?
I am most obliged.
Regards,
Valentine
February 2nd, 2012 at 9:55 pm
Valentine Gandhi,
Check out this file:
http://www.get-digital-help.com/wp-content/uploads/2009/05/Gandhi.xls