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.
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
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 .............................
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.
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.
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.
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.
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.
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?
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?
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.
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.
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))
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,
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?
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
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.
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.
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.
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").
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.