CountIfs - Get Count Of All Unique Fields
Dec 17, 2013
Column A Column B
2012 20
2012 30
2013 50
2013 30
2013 50
2014 10
I've got two columns like this. I need to see if a countifs() would handle it for me, or if there's another formula to use.
I need to get a count of all fields in column B that are unique and are 2013 in Column A. In this case the answer would be 2 (in 2013 there was a 30 and a 50, duplicates are skipped).
View 6 Replies
ADVERTISEMENT
Dec 23, 2013
I am writing a formula to accomplish the goal of counting only unique text values in a column, based upon two different factors:
*Need to Count unique text values in column named 'CASE_NAME'
*Column 'FISCAL' must match cell A5
*Column 'ZONE' must match cell A3
View 5 Replies
View Related
Mar 13, 2013
I'm looking to do a countifs of the following formula, but I can't seem to get a result that counts those items in Column E as Unique results.
Code:
ActiveCell.Offset(0, -2).Value = Application.WorksheetFunction.CountIfs(Sheets("Table").Range("B1:B10000"), ActiveCell.Offset(0, -20).Value, (Sheets("Table").Range("C1:C10000")), "Self Trade, Off", (Sheets("Table").Range("D1:D10000")), "Sat", (Sheets("Table").Range("s1:s10000")), ActiveCell.Offset(0, -3).Value, (Sheets("Table").Range("I1:I10000")), "Completed") + Application.WorksheetFunction.CountIfs(Sheets("Table").Range("B1:B10000"), ActiveCell.Offset(0, -20).Value, (Sheets("Table").Range("C1:C10000")), "Self Trade, Off", (Sheets("Table").Range("D1:D10000")), "Sun", (Sheets("Table").Range("s1:s10000")), ActiveCell.Offset(0, -3).Value, (Sheets("Table").Range("I1:I10000")), "Completed")
View 1 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
Aug 13, 2014
I have a column of data that contains a two letter identifier, which can sometimes be combined with another 2 letter indentifier: Example
Column D
AA
DC
DC,AA
How would I get countifs to count each occurrence of AA or DC by itself?
View 8 Replies
View Related
Feb 5, 2008
I have a sample table below to illustrate my problem, the numbers in red are what I'm looking for a formula to calculate, probably a sumproduct, although I'm open to any suggestions.
Weight through conduits are to be summed only once if they are repeated in any particular month. (DEF1000 is in building 2 and 5 in March, but its weight should only be summed once) I hope this makes sense.
View 9 Replies
View Related
Sep 6, 2005
>I think my issue is best displayed with an example:
>
>Here's my rows of data:
>
>Column A
>Bob
>Dave
>Dave
>Eric
>Simon
>Simon
>Simon
>Simon
>Tom
>etc....
....
I'll assume this is in Sheet1!A1:A10000.
>Is there a formula that can return the following:
>Bob
>Dave
>Eric
>Simon
>Tom
>etc...
....
View 14 Replies
View Related
Feb 9, 2008
Found what it think is the correct methodology (Pivot table) for doing this, but I'm struggling to apply it.
I have a very simple excel 2007 document that has one column with multiple rows;
blue
Blue
green
red
red
green
Green
blue
red
Blue
blue
Bleue
Rouge
red
Bleue
I would like the easiest way to count the total of each and sort in highest first,
e.g.
red 4
blue 3
Blue 2
green 2
View 9 Replies
View Related
Oct 23, 2012
I have a spreadsheet with two colums with dates. The names of the ranges are 'DataContractualStartDate' and 'DataContractualEndDate'.
How do I manage to count the no. of records with equal dates at the same row?
I have used the following but this gives me zero, while in the example below the result should be 3.
=COUNTIFS(DataContractualStartDate,DataContractualEndDate)
The table looks as follows:
dContractualStartDate
dContractualEndDate
01-05-2012
01-05-2012
[Code] ....
View 6 Replies
View Related
Sep 19, 2012
I have used the advanced filter option in excel 2010 to display all the unique occurences of a list of names (column B) and then used the count function =COUNTIF(A$2:A$21,B2) to count the occurences of each name (column C).
However, excel did not manage to take into account the last 3 entries in column A (mir-23). I assume this is because it is a mixture of text and numeric values. How can I include this information in the grouping and counting?
excel1.png
View 3 Replies
View Related
Aug 24, 2009
If I have multiple entries with different but repeatable text values in one column - how do I count all unique ones ? Is there a function or does it have to be a pivot table of sth ?
View 14 Replies
View Related
Oct 10, 2007
I need a formula to count and give me totals. Here's a sample of my data tab:
WG 3806 8
WG 3806 10
WL 3806 10
WG 3806 8
WG 3806 10
WG 3806 8
My summary tab would be:
WG 3806 8 3
WG 3806 10 2
WL 3806 10 1
I need a formula that will do the math for me and provide the end results (3, 2, 1).
View 9 Replies
View Related
Jan 23, 2009
I am trying to count the number of rows that have values greater than 10/01/2008 in either of two fields. I tried following formula but instead of giving total number of rows, it returns a random date.
View 2 Replies
View Related
Apr 1, 2009
I have the below code, in a cell but I am trying to input this into a macro, so the only thing that shows in the cell is the formula.
The formula I have in the cell is:
View 14 Replies
View Related
Jul 15, 2009
I have this formula that works perfectly fine for what I am trying to do (from another post) but I am wanting to transfer this into VBA. It is an array formula so I'm not sure if this can be done.
How can I convert this, into R1C1 code or any way possible. I would put it within a WITH RANGE statement.
View 9 Replies
View Related
Apr 25, 2009
aaa.xls
how to count lines in the same order
for exp for this attachment file is 7 lines
View 13 Replies
View Related
Jan 20, 2013
I am attaching the sheet : Uniquecount.xls
Need to do this using formulas and without needing to add any new columns.
Need a formula to lookup the details sheet (for easyness i just added it as a new tab here) and count the unique names in a dept and display that in the summary sheet/tab.
Want the formula to be applied to the summary to go and lookup/count from the other sheet.
Have shown the expected results in the col "total unique heads".
View 1 Replies
View Related
Feb 27, 2013
Any formula to count only unique values in particular column
E.g.
1
2
3
1
5
1
6
1
answer should be 5
View 3 Replies
View Related
Apr 7, 2014
Col A Col B
163401 1
163401 1
163401 0
163402 1
163402 0
163402 0
GOAL -I want to be able to count Col B only once for the same set of records in COL A.
Based on Distinct criteria on COL A, I need to be able to count COL B. The count should be 1 for 163401 and not 2. Similarly for 163402 the count should be 1
View 11 Replies
View Related
Jul 24, 2014
I'm working with a data set (attached) that tracks financials at both the job and item level (in my customer's data - a unique job can be made up of a single or multiple items).
I've successfully built a formula (in column C of the attached) that counts the total number of items and their associated $ values that were invoiced in a given month based on my customer's requested item-type categorizations (i.e. "Exact Match", "Similar", "Inferred", "Cost-Plus").
The problem I'm running into is building a formula that counts the first unique instance of the Job ID associated with those items. For example - in cell C33 on the attached - The total number of items invoiced in June that were "Exact Match" was 10. These items were spread across 9 unique jobs - and that's where I'm struggling - to build a formula that only counts the first unique instance of the corresponding Job ID in Column C.
The formula I'm having trouble with is located in Cell D12 on the "Dashboard" tab of the attached.
The formula as I have it is returning a result of 8 - because it's summing the "1"'s in Column I on my "Invoice Data" tab - however it should read 9 (Filter Column Q on the "Invoice Data" tab to "June", Filter Column AQ on the "Invoice Data" tab to "Exact Match", and then sum the unique job IDs in Column C).
Excel_Forum_Example_Dataset_7.24.14.xlsx
View 1 Replies
View Related
Jun 14, 2009
I want to have a unique count field in my pivot table. I already read (via forum search) that this can only be achieved by adding an extra column to the database.
The problem is: I have no clue which formula to use for this column. Please have a look at the attached picture. Can someone provide me with a formula for this example?
View 14 Replies
View Related
Dec 28, 2009
So here is my dilemma and I haven't been able to find anything to exacly help me out:
I have a large (100k+ records) sheet of sales invoice details.
I need to add a total item line per invoice number to each record ....
View 14 Replies
View Related
Jan 13, 2010
Card Number
XXXX5512
XXXX5512
XXXX4211
XXXX4510
XXXX6134
XXXX9035
XXXX6002
XXXX8653
XXXX7826
XXXX8819
XXXX8315
XXXX0274
I'm looking for a formula to generate the number of unique card numbers are in the column...I'm using this daily, simply pasting the new data in so if I want to keep it as automated as possible.
View 14 Replies
View Related
Apr 23, 2009
I am trying to find a formula that will count the number of unique occurences with two variables (Department and Period).
Since a person can be listed in the department more than once for each period, I need to find the unique number for each department by period. I have attached a simple file as an example. Any formula would go in the yellow area.
View 2 Replies
View Related
May 20, 2009
I am trying to find the number of unique 3 variable combinations there are in my rows of data. I have tried the frequency function but must be missing something.
Attached is a sample of what I am trying to achieve although there may be a better way of portraying the data.
View 4 Replies
View Related
Nov 30, 2006
I have a column with names and I would like to count how many names there are in this columns. This is easy but in fact if there is twice the same name the formula will count it twice and I don't want that. Is there a solution to count only the number of persons present in this column without counting twice the same person??
View 12 Replies
View Related
Jun 6, 2014
I want to count data that corresponds to 4 criteria for data located in Columns B, C, D and E. However, I only want to count only the unique values in Column A. How do I improve on this formula?
=SUMPRODUCT(($E$2:$E$5=J$2)*($D$2:$D$5=I$2)*($C$2:$C$5=H$2)*($B$2:$B$5=G$2))
See data below
View 4 Replies
View Related
Feb 8, 2007
I have a column full of Invoice No's. I want to count the number of Invoices that are unique, ir avoiding duplicates.
I know I can use the Advanced filter facility but I'd rather do it in a formula if possible.
View 9 Replies
View Related
May 4, 2007
I'm working in Excel 97, trying to use a formula I found in the archives here to count unique numbers in a column.
=SUMPRODUCT((V2:V10000"")/COUNTIF(V2:V10000,V2:V10000&""))
I'm not exactly sure what this formula is doing, but it seems to work reasonably well, except that it's adding one to my total.
i.e. I have a total of 15 and it returns a value of 16 or I have 0 and it gives me 1.
View 9 Replies
View Related
Sep 19, 2007
I need to create subtotals summing an amount column and then also create a unique count of documents in a different column but on the same subtotal line. Currently, I am running the subtotal on the amount but then manually inserting the following formula on each subtotal line to obtain the unique count.
=sum(if(frequency(range,same range)>0,1))
Is there a way to automatically recieved a unique count when subtotaling without me manually entering this formula numerous times throughout my spreadsheet.
View 10 Replies
View Related