# Counting Unique Differences Between Two Worksheets

Jun 18, 2008
=SUMPRODUCT(--(LEFT(Apr08WFA!$A$1:$A$4000,2)="zz"),--(TEXT(Apr08WFA!$F$1:$F$4000,"mmmyyyy")=TEXT(B6,"mmmyyyy")))+SUMPRODUCT(--(LEFT(Apr08WFA!$A$1:$A$4000,2)="zz"),--(TEXT(Apr08WFA!$F$1:$F$4000,"mmmyyyy")=TEXT(B7,"mmmyyyy")))

this counts the number of entries on sheet Apr08WFA when value in range F1 to F4000 is either apr2008 (cellB6) or mar2008 (cellB7).

this works in principle but does not catch all.

I want to amend the formula to catch new entries appearing on a sheet called May08WFA that were not on Apr08WFA but with the same condition of "zz".

So data on May08WFA will be compared against Apr08WFA and new entries counted.

View 9 Replies
ADVERTISEMENT
Feb 27, 2014

is there an IF formula to compare values in two columns, say Column A and Column B have "Action recommended" and column B has "Actual action taken", both columns should have the same texts, in cases where there is no similarity, the formula should count the cases.

View 3 Replies
View Related
Jul 5, 2009

I have two worksheets. Sheet1 is a Master List and Sheet2 is subset of Master List. Now I have to separate those records which are there in Master List, but not there is Sheet2 and list them in Sheet3.

Example:

Sheet1 contains records: a, b, c, d, e, f in rows

Sheet2 contains records: a, d, e in rows

Sheet3 must show: b, c, f in rows

View 4 Replies
View Related
Dec 7, 2012

I need to compare two worksheets, and show the final results in the Results Sheet.

These two sheets are actually .CSV files and is why some of the cells show as dates.

The SKU column is a combination of Material and Length. we need to find the difference for the Qty of SKU items.

If you look at the results page you will see what the results should be. Colored cells are just to show the differences in the example.

View 1 Replies
View Related
Oct 2, 2008

I am trying to compare two worksheets and report the differences (data added or changed in the second, not necessarily data removed in the second). Afterwords I want to color code the third spreadsheet for if the whole row was added that it would make that whole row a different color and if one column in the row was changed that one column would change colors. Currently I am stumped on this, I tried searching the forums and found something that I made it to do the first part.

Sub test()

Dim a, b(), i As Long, ii As Long, n As Long, nn As Long, fa As Long

Dim z As String, zz As String

a = Sheets("sheet1").Range("a1").CurrentRegion.Resize(, 8).Value

With CreateObject("Scripting.Dictionary")

.CompareMode = vbTextCompare

For i = 2 To UBound(a, 1)

z = "": zz = ""

For ii = 1 To UBound(a, 2)

z = z & ";" & a(i, ii)

Next

zz = a(i, 5) & ";" & a(i, 6)

.Item(z) = i: .Item(zz) = i

Next .............................

View 9 Replies
View Related
May 7, 2008

I have two sheets in excel,Sheet1(worksheet) and Sheet2(worksheet).In Sheet1 I have certain numbers. In sheet2 I have some numbers which also include the numbers in sheet1.

Now I need to generate in sheet3 which has numbers which are in Sheet2 but not in Sheet1 with delimiters ( ; ) in between in one line. (EG: In Sheet1 I have say nos 1 to 10. In Sheet2 I have nos say 3,5,8 . In sheet3 there should be 1,2,4,6,7,9) Can you pls help me by providing code for this.

View 4 Replies
View Related
Jun 7, 2008

We have a tariff table with the following data per row: Area code - Destination name - Price - and some other stuff that is not important. Once or twice a month we receive updates on Price for some destinations and maybe even some new rows with area codes and destination names that we do not have in our table. Can someone help me with a macro that will look into two sheets and do 2 operations:

1) taking as reference the Sheet2 - Column C (Price Tag) will update column C in Sheet1, using the Area Code (Column A) of both sheets as identifier to find to what row will apply the change;

2) if there is a new Area Code - Destination - etc. row that is not present in sheet1, will add it to sheet1

It does not matter to me if will update directly sheet1 or it will write the entire sheet1 content with the updates to Sheet3.

I am attaching a small example of of the sheets.

View 5 Replies
View Related
Mar 8, 2005

This is a physical inventory process. An employee, using a barcode reader, will populate the cells of one column in a worksheet with asset IDs that are located at a facility. Once done, the employee must compare the cell values of the worksheet that he or she has populated to the cell values of the inventory roster. The desired outcome is to produce a plus/delta report based on the comparison of the two worksheets.

View 2 Replies
View Related
Apr 9, 2014

creating a macro that would compare two worksheets and their differences would be copied into a third worksheet in the same workbook? Several key criteria is needed:

1) The third worksheet would need to note only the data from the 1st and 2nd worksheets (including headers) that had differences. An additional column would do the difference calculations for the data whereby numeric values are subtracted (worksheet 2 from worksheet 1 values) and non-numeric values would note "Pass" or "Fail".

2) All data values that had differences would be formatted in yellow shading on the third worksheet.

3) The unique ids from column A in worksheet 1 would have to have be noted in column A of the third worksheet; even if they didn't have a difference from worksheet 2.

4) The third worksheet would need to note all of the columns noted in worksheet 1 and include the difference column for each unique column.

5) Flexibility in code to allow for addition of new columns to analysis.

see attached sample spreadsheet whereby Worksheet 1 = "dv file", Worksheet 2 = "price file" and Worksheet 3 = "Error" for purposes of this discussion.

View 9 Replies
View Related
Mar 26, 2009

I've got a list that's about 15,000 rows long. Column A has a date and column B has an alpha numeric ID. The list is sorted in order of oldest date at the top, most recent at the bottom. The range of dates is from 1/1/2007 through 3/23/2009. Both the same date and ID show up multiple time throughout the list.

I need to figure out how many unique ID's show up on the list in each given calendar month. I could manually break up the list into months, use an advanced filter and then run a count formula, but it seems like there must be an easier approach.

View 9 Replies
View Related
May 13, 2008

how to count unique Occurneces in Excel?

For example: -

What formula can I use to count the Unique Occurences non - zero values in Column 2 for the letters in Column 1?

Column 1 Column 2

A 1

A 1

A 1

B 0

C 2

C 2

D -1

View 10 Replies
View Related
Nov 2, 2009

Couting Unique Entries

I've included a sample worksheet ...

View 10 Replies
View Related
Nov 11, 2009

Ok so I have an excel file, that has 20,000 records/rows of data. There is a column called <STATE>, which could be PA, MD, CA, MT, etc.

I need to know how I can count how many times each state is populated and return the results to a new created sheet called <REPORT>. See example below.

State:

PA

PA

PA

MD

CA

MT

NJ

NJ

Report Results

PA 3

MD 1

CA 1

MT 1

NJ 2

Can this be done?

View 9 Replies
View Related
Jun 9, 2006

I have a column (within a database) containing hundreds of Project Numbers

(e.g., P8763, PA3229, P1090.1, etc.), and the same Project Number can appear

more than once in the column. I need to count the number of unique Project

Numbers within that column, based on the criteria of another column. Is

there a way to do that using a combination of the DCOUNTA function and a

formula?

View 11 Replies
View Related
Nov 19, 2007

I picked up a great formula from this website to count unique values =SUM(IF(FREQUENCY(K19:K205,K19:K205)>0,1)) and it works great. Thank you to whoever sent it (sorry, forgot who)

I am trying to find a formula to do the same for text.

View 9 Replies
View Related
Mar 27, 2008

We've got a column of names. A single name might appear once or two hundred times. The column is over 25,000 lines long, so we don't want to have to count how many different users there are (besides the likelihood of doing it wrong!). Is there some way to make Excel count the number of unique entries in the list, ignoring multiple repetitions of the same name?

View 9 Replies
View Related
Nov 28, 2009

I have a data which contains the number of customers who have logged cases with us to find a solution. So the data looks like as shown below;

Case IDCategoryCountrySubject QuestionClosing Details2550EMEADenmarkHi Please help me with the follwing orders, ticket number is JN567786Contact the retail shop12550EMEABelgiumHi please note that the product KA12QT seems to be having hardware problems. the ticket number is JN567786.

Technical issue fixed, DCK JN56778612876APJAustraliaProblem with the music system, resolution required.

The ticket Id logged is JN782238

new CD provided to resolve1

What i need to do is find out the unique ticket ID (eg: JN782238) from all the description provided from column 'Subject Question' and 'Closing Details'. All the ticket numbers start from JN... , however it is very manual for to check every row has a ticket number. I have to do this for many sheets and the data contains atleast 20 to 25000 lines.

Inorder to find this unique ticket number i search through filter by giving the criteria as JN1 and keep doing untill i reach JN9. Once i filter through each of these criteria, i add a number "1" in the last column indicating that this row contains a ticket number.

After completing for all the rows, I add a pivot to check the final count of the the unique numbers, But again i need to remove the duplicates from these count, as there might be several descriptions with the same ticket Id (eg:JN789899). So i add field "Case ID" to the row area in pivot and count of these numbers in the 'Value area' (pivot). Then i look for case IDs with numbers more than 1. I f i find 2 or 3 for a particular case Id then i search this case id in the data and delete one of the count ('1') in the last column.

View 9 Replies
View Related
May 7, 2014

I have 2 columns with approximately 200K lines of data. There are only 84 and 823 unique values in each column respectively. On my report.

Column A is essentially a customer list, column B is a product list. I am trying to find out how many unique/individual products a customer orders. I have a separate column that has the customers in it (Column G), and in Column H, I want it to count the unique products ordered by customer.

I changed some of the data, but essentially what I attached is what I need.

View 8 Replies
View Related
Sep 23, 2009

I need to count the number of unique names (column A) on 3 separate worksheets. Each worksheet represents a facility that people visit. It is possible that the same person will visit all three facilities. If this is the case I want to only count them once, even though they may have numerous entries on each.

I need to get the same result as if I was to copy and paste all of the names from three spreadsheets on to one (which isnt an option) and then count unique names. To do this on one sheet I have been using =sumproduct((A1:A100<>"")/countif(A1:a100,A1:A100))

View 2 Replies
View Related
Feb 16, 2006

I have a column of data with 1000 rows. In this column there are duplicated values. I would like to be able to use a function count how many unique values are in the column. Let's say there were 4 duplicates of 250 values in the column. I would like to be able to write a function to calculate the 250. I am very familiar with Excel and am able to acheive the number through subtotals and/or pivot tables. I know I can find how many instances one specific value appears in the column through sumproduct and/or countif statements,

View 14 Replies
View Related
Jan 1, 1970

I have created a calendar in Exel for individuals to put in their time at the bottom for everyday I have put in a total. Is there a formula that I can sum the dates, pick a certain time from those date and get my total hours for that particular week?

View 6 Replies
View Related
Nov 23, 2011

=SUM(IF(FREQUENCY(IF(B2:B20="Temp",MATCH(A2:A20,A2:A20,0)),ROW(A2:A20)-ROW(A2)+1),1))

The works when referencing two columns. I need a total count of unique across three columns.

Sample Data

A | B |C

Jason | Temp | 1

Jason | Temp | 1

Jason | Final | 1

Kim | Temp | 1

Mary | Temp | 2

My summary table has the unique values of C in first column and the unique values of B as headers. I want the unique counts as the data.

Temp | Final

1 | 2 | 1

2 | 1 | 0

View 5 Replies
View Related
Nov 28, 2011

Is there a formula I can use to count the number of unique claim numbers in an excel column?

Is there a way that I can format a cell containing a number containing a decimal point to a number without a decimal point. Example, 205.55 to 20555

View 6 Replies
View Related
Jan 31, 2013

what function can I use to count the number of unique values in a range of cells?

View 4 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
Jan 17, 2008

How can I count the number of unique values in a column?

I have a spreadsheet that lists transactions that occurred over a one-year period (2007). I need to determine the number of days our facility was operational. No transactions on a particular date (25-Dec-07, for example) and the facility would be considered to have been closed on that date.

On the days that the facility was open, multiple transactions would have occurred on those open days and those multiple tranactions are all reflected in the worksheet.

So I need to count each occurrence of '01-Jan-07', '02-Jan-07', and so on.

View 9 Replies
View Related
Sep 15, 2008

I want to paste a list of customers into a sheet and then have a formula that counts the number of customers. So, even if a customer appears 10 times it would only count it once and and continues down the column and counts the next company name and so on. Then it gives me a total of the number of different companies in that column.

View 9 Replies
View Related
Feb 10, 2007

I found the following formula online while searching for how to count unique instances of a number in a list. The list may have blank cells or repeated numbers but this formula works. =SUMPRODUCT((A1:100<>"")/COUNTIF(A1:A100,A1:A100&""))

So my question is...can someone verbally explain just exactly what is going on? i.e. I don't understand the <>"" in the sumproduct argument or the &"" in the second argument of the countif.

View 5 Replies
View Related
May 7, 2014

I need counting unique values with a number of given conditions. I need this to be a formula so that I can just add data to my spread sheet and it will automatically calculate.

The formula I have is:

SUM(IF(FREQUENCY(IF(A:A=Z1,IF(B:B=Z2,IF(C:C>Z3,IF(D:D<=Z4,G:G)))),G:G),1))

The goal is to count all of the unique value in column G:G that meet certain criteria (have ending times greater than Z3 and beginning times less than Z4, etc.). Once I get the formula to work, I'll simply drag it down to have it calculate for similar lightly changing criteria (like different beginning and ending intervals). However, the formula doesn't seem to be working. It's only giving me zero values (I have "ctrl-shift-entered").

View 9 Replies
View Related
Aug 5, 2014

I'm working with a set of text values. The sets of text can be either 2 or 3 chars long (in this example 2), and are separated with a pipe. The end char for each set of chars in fixed. In this case a Z.

I'm looking for a formula which counts the unique / distict number of sets of chars. I have been trying to use COUNTIF with a wildcard (?Z), but unfortunately I haven't been able to find the correct formula yet.

For example.

|AZ|AZ|AZ|BZ|AZ|AZ|BZ|AZ|BZ|AZ| -> 2 (AZ, BZ)

|AZ|AZ|AZ|BZ|CZ|AZ|CZ|AZ|BZ|AZ| -> 3 (AZ, BZ, CZ)

|CZ|BZ|AZ|BZ|CZ|AZ|EZ|AZ|FZ|AZ| -> 5 (AZ, BZ, CZ, EZ, FZ)

|BZ|BZ|AZ|BZ|CZ|AZ|EZ|AZ|GZ|AZ| -> 5 (AZ, BZ, CZ, EZ, GZ)

View 9 Replies
View Related