## Comparing two columns and sum unique values using array formula in excel

Filed in Compare, Excel, Unique values | Comments(0)

Email This article to a Friend

### Array Formula in A15:

=SUM(IF(COUNTIF(List1, List1)+COUNTIF(List2, List1)=1, List1)+IF(COUNTIF(List2, List2)+COUNTIF(List1, List2)=1, List2)) + CTRL + SHIFT + ENTER

**Named ranges**

List1 (A2:A11)

List2 (B2:B11)

What is named ranges?

Download excel sample file for this tutorial.

Comparing two columns and sum unique values.xls

(Excel 97-2003 Workbook *.xls)

**Functions in this article:**

**COUNTIF(**range,criteria**)**

Counts the number of cells within a range that meet the given condition

**SUM(**number1,[number2],**)
**Adds all the numbers in a range of cells

**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

Question: How can I compare two columns to find values that exists in both cell ranges? The picture above shows […]

This post describes how to compare two price lists in excel 2007. I am going to create three conditional formatting […]

I will in this blog post describe how to extract common records from two data sets in Excel. I have […]

Sean asks: How would you figure out an unique list where the sum of in one column doesn't match the […]

Table of Contents Compare two tables: Remove common rows Compare two tables using a condition Let me demonstrate how to extract […]

Peter Voss asks: This is close to what I need. I have three lists of email addresses. If an email […]

Question: How to filter out data from List 1 that is missing in list 2? Answer: This formula is useful […]

Update: 30 Aug, 2017h You have quite a few options to choose from if you are looking for a way […]

jeyner asks: I need to count in a list the interval between the same value. Example list, 1-2-3-1-4-5-1-6-7-8-9-7-8-1 So the […]

Filter unique rows and sort by date using array formula in excel

Question: How do I filter unique rows and sort by date? Answer: Column A and B are the original list. […]
I read an article Merging Lists To A List Of Distinct Values at CPearson. The article describes code that you […]

List all the unique events for a month in excel (array formula)

Question: I have a table with four columns, Date, Name, Level, and outcome. The range is from row 3 to […]
Question: How do I get the largest and smallest unique and duplicate value? The image below shows you a list […]

Question: I have a list of values, and i want to sum only unique values, how? Answer: If unique values […]