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.
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 ?
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".
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
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).
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?
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.
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.
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.
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??
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?
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.
I need a unique count of the ID number. What I need is to check and see if the row has a number in it and if it is greater than 0 and is not blank. If the row has 0 in it, then that is not counted in the count. For in stance .....
I have a pivot that shows Patients, Invoices and charges. I want to throw Patient, Inv # and charge amount in the row area and put PatientId in the Page area as a count. It works fine except it double counts patients with more than one invoice...I want a unique patient count.
I am hoping this can be done with formulae. Starting at C7 and continuing down the C column there is a list of names which could potentially run from C7 to C5000. This list of names will contain duplicates. For each name there is a corresponding 'reason' in the F column which will contain the word 'Truancy' or 'Late'.
I need a formula that can count the number of UNIQUE names in the C column which correspond to the word 'Truancy' or 'Late' in the E column.
An example,
[Name].....................[Reason] C7 ...........................E7 John Potts.................Truancy 2 Matt Jones................Truancy 10 John Potts.................Truancy 4 Matt Jones ...............Late AM Pete Burns................Late PM Pete Burns ...............Late Both Steve Lopez..............Truancy 6
Count of unique names with the word Truancy in the corresponding E column = 3 [John Potts has 2 instances of the word truancy in column E but this is only counted once]
Count of unique name with the Word Late in the corresponding E column = 2 [Pete Burns has 2 instances of the word late in the E column but this is only counted once].
i've tried to locate a matching post for my query, although a couple have been close I havn't been able to find one which matches what i'm trying to do. I have a spreadsheet which has two columns A:PersonIds and B:Month/Year. A person id can appear many times for a given month. What I am wanting to do is to perform a unique count of person id's by month. Take the following example:
I've also attached an excel file with what i've just outlined. Is there a way to do this without using VBA, but with a combination of array's and nested if statements?
I have the following data: What I am trying to do is arrange the data such that in another sheet I have all the unique Task IDs and the associated names such that the resulting table would look like: In essence, each person may have more than one task ID that might be repeated in a set of data. The objective is to sort by name, assigned task ID, and the number of times it has shown up in a set of data.
I want to count the number of unique companies that joined in different months. I have two columns to work with - date [in time stamp/data format] and company name.
DATE COMPANY NAME
10:42 02/01/14 A
11:33 02/01/14 B
16:14 07/01/14
The results should equal -
Jan 14 - 2 Feb 14 - 2 Mar 14 - 1
The closest I have gotten it to remove duplicates =SUMPRODUCT((B1:B15<>"")/COUNTIF(B1:B15,B1:B15&"")) and to count the months =COUNTIF(A1:A15,"*01/14") but I cant seem to link the two.
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).
I have 2 sheets, one with users and a tool they have been using, and one with a list of unique users, I would like to count how many unique users are using a tool. The sheets are set up like so,
Sheet 1 User Tool (number of uses) abcdefg 1 hijklmn 5 1234567 1 1234567, abcdefg, opqurst 2 wxyz123 0
Sheet 2 Have they used the tool
abcdefg hijklmn 1234567 wxyz123 opqurst
So yes, I am trying to count whether or not the unique users have used the tool, this is a simplifed version as my data set runs into the thousands. I was using the countifs function, but that doesnt count properly if theres more than one user in the group.