Formula Question: What is the formula to find how many duplicates I have in my table of data. e.g Sally, Sally, Sally, Tom, Tom, Ben. Answer by formula Sally 3, Tom 2, Ben 1

Example of Data:
A1
2222222345
2222222345
2222222345
2222222345
2222222346
2222222346
2222222347
2222222347
2222222347
2222222347
2222222347
2222222347
Examplae of answer I would like the formula to provide:
I also can not manually type coullum A I need the formula to auto full that aswel. As there is to much data.
A2
B2
2222222345
4
2222222346
1
2222222347
6

Hi Jessica,
Here's my take on it, using the sample data in your original post, and using the same solution with the names in your question.
In the Data table, column A contains the list of numbers in your original post. I've rearranged them in random order to demonstrate that the order of entry does not matter for this method.
Data::Column B contains the names in your question, each assigned to one of the numbers in the body of your post.
Column C contains an index showing the first occurrence of each distinct number in Column A. This index is used to fill both columns in the Summary by Number table.
Column D contains an index showing the first occurrence of each distinct name in Column Bt. This index is used to fill both columns in the Summary by Number table.
Both formulas are the same, except for the columns referenced (highlighted in the second formula below).
Formula: Data::C2: =IF(COUNTIF($A$2:A2,A2)=1,MAX(C$1:C1)+1,"")
Formula: Data::D2: =IF(COUNTIF($B$2:B2,B2)=1,MAX(D$1:D1)+1,"")
Both formulas require that row 1 be a Header Row, and that the contents of C1 (and D1) be Text, nothing, or a zero. Both formulas are filled to the end of their respective columns.
Summary by Number contains two formulas.
A2: =IF((ROW()-1)>MAX(Data :: $C),"",LOOKUP(ROW()-1,Data :: $C,Data :: $A))
B2: =IF(LEN(A2)>0,COUNTIF(Data :: A,A2),"")
Both are filled down to the end of their respective columns.
The first formula checks if its row number minus 1 is greater than the maximum value in the index column. If that is TRUE, there are no more values to look up, and the formula returns an empty string (which appears 'blank'). If it is FALSE, the LOOKUP the value in Data::column A corresponding to the value of ROW()-1 in Data::column C.
The second formula checks the LENgth of the entry in the column to its left. If the length is greater that 0 characters, there is a countable value in the cell, and the formula passes control to COUNTIF, which counts the number of times that value is found in Data::column A. If the length of the value in the cell to the left is zero, then the cell contains an empty string, and the formula passes control to the part after the last comma, which enters an empty string in the cell containing the formula.
The formulas in Summary by Name are identical to these except for the (bolded) references. These are incremented to the right; C -> D, and A -> B to match the Data:: columns containing the names and the names index.
Regards,
Barry

Similar Messages

  • What is the model number and how many ports in the back?

    What is the Model number and how many ports int he back?

    You can compare your yourself here:
    http://www.apple.com/wifi/
    The AirPort Express is Model Number A1394
    The AirPort Extreme is Model Number A1408

  • After installing lion and updating to pages 4.1 cannot view my document content after I open the document.  Shows how many pages I have and how many words in word count, but no words...

    after installing lion and updating to pages 4.1 cannot view my document content after I open the document.  Shows how many pages I have and how many words in word count, but no words...

    Same problem. Tried reinstalling Pages. Didn't help. The behavior is like I am typing with a white font on a white background, but I am not.

  • My browser keeps refreshing, no matter what page i'm on, or how many tabs I have open.

    It happens every time I open Firefox. It doesn't matter what site it is, or how many tabs are open. He keeps refreshing all of them.

    A few problems could cause this. Try Firefox in safemode, also review what is set as your homepages.
    *[[Troubleshoot Firefox issues using Safe Mode]]
    * [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]
    *[[Startup, home page and download settings]]
    *[[How to set the home page]]
    Can you give a bit more detail of what happens and
    * whether this is just on initial startup ?
    * what happens if you close all but one tab ? <br />what happens then ?
    * can you describe what you mean by keeps on refreshing

  • Since the update to 4.4.4 my messages show up on the top bar but no number on the app telling me how many text i have. Any suggestions

    It shows on the top bar but nothing on my icon. Any suggestions. thanks in advance

        buckeyecrazzy,
    I am sorry to hear of the issues you are having with your messaging app. Are you using the factory messaging app that came with the device or a 3rd party application? Have you tried to reset the application? Settings>Application Manager>All>Tap whatever messaging application you are using and select Clear data, clear cache, and force stop.
    LindseyT_VZW
    Follow us on Twitter @VZWSupport

  • Find how many users are connected in the Oracle Server

    Hi,
    I am using Oracle 10g. My question is, is it possible to find how many users are connected in the Oracle Server. We are having one Server and we are having many client machines which will connect the Oracle.
    And one more question in the meanwhile i want to take Backup of one database which client as connected. Is it get any problem to the client machine which is accessing the server. And How to take the backup from the server machine. Any commands to process.
    Thank u...!

    Hi there.
    If You run
    select count(*) from v$session where username is not null;you'll get the number of users connected to Oracle server,
    and yes , you could do backup while users are connect to db you are backing up.
    cheers

  • HT1349 Want to get the same iPad 2 that I have for my grandson but forgot how many gb I have 16 or 32, where can I find this info

    Where do you find how many gb you have...

    Yes its 32GB, you can also look at the back of the iPad. at the bottom. Under the word iPad it has the capacity.

  • What is the range for Find my iPhone

    What is the range for Find my iPhone

    Both devices have to be connected to either WiFi or Cellular and have location services enabled. Find My iPhone does not require that you be close to the phone you're trying to find. If it's connected to a network thousands of miles away, it should still work.

  • What is the website to find my ipad

    what is the website to find my ipad

    icloud.com.  See http://help.apple.com/icloud/#mmfc0f2442.  Note: this requires Find My iPad to already be enablied on your iPad (you can't enable it remotely), and it has to be turned and have an internet connection to be located.

  • HT1560 console blinking amber and white alternatively. displaying the Apple TV console with a question mark on top of it. What is the problem and pls how can it be solved ?

    console blinking amber and white alternatively. displaying the Apple TV console with a question mark on top of it. What is the problem and pls how can it be solved ?

    That's hard to say.
    General File Recovery
    If you stop using the drive it's possible to recover deleted files that have not been overwritten by using recovery software such as MAC Data Recovery, Data Rescue II, File Salvage or TechTool Pro.  Each of the preceding come on bootable CDs to enable usage without risk of writing more data to the hard drive.  Two free alternatives are Disk Drill and TestDisk.  Look for them and demos at MacUpdate or CNET Downloads. Recovery software usually provide trial versions that enable you to determine if the software would help before actually paying for it. Beyond this or if the drive has completely failed, then you would need to send the drive to a recovery service which is very expensive.
    The longer the hard drive remains in use and data are written to it, the greater the risk your deleted files will be overwritten.
    Also visit The XLab FAQs and read the FAQ on Data Recovery.

  • Everything I buy any application wants me to enter confidential questions and I've forgot and I forgot email alternative to'm doing reset to questions What is the solution?

    Everything I buy any application wants me to enter confidential questions and I've forgot and I forgot email alternative to'm doing reset to questions What is the solution?

    You need to contact AppleCare for assistance.
    Apple ID: Contacting Apple for help with Apple ID account security

  • What is the exception for finding more than one row?

    What is the exception if you do a select and get more than one row? no_data_found is the exception for not finding any, what is the exception for finding "too much". Thx

    Funnily enough there is a complete list of predefined exceptions in the documentation .
    Cheers, APC

  • Question - What is the best external optical drive for an imac W8******5PE ?

    Question - What is the best external optical drive for an imac W8****5PE ?
    <Edited by Host>

    Try http://eshop.macsales.com/shop/firewire/optical-drives/
    Allan

  • Saturday' question : what's the difference ?

    Hi all,
    since it's saturday, I'll just ask a little question :)
    In af:actionCommand, what's the difference between attributes "action" and "actionListener"
    Since in either way you call a method in some bean, process code and do stuff. The only difference I see is that one return a String that gives navigation outcome, the other one has an ActionEvent has a parameter. However, you can do the very same thing with these to : get the action source, and navigate.
    Why two attributes ? What happens when you got the two filled in in a unique component ?
    No urgence here :)
    Regards
    Luc-

    You have waaaay too much time on your hands if this is what you think about on Saturdays ;-) Oh, it's Sunday here, so apparently I have way too much time on my hands too!
    I agree it is confusing, when teaching JSF my students get confused all the time no matter how many times I clarify it.
    The simple rule is the action attribute is meant to be reserved for navigation rules (be they statically specified or dynamically derived from a backing bean String method), while the actionListener attribute firing code after the user activates a command control. The fact that you can cause navigation programmatically from the actionListener is neither here nor there, because you can in fact cause navigation from many different parts of the framework.
    In addition the action and actionListener attributes are evaluated at different parts of the JSF lifecycle too, which is important to know to understand if the actionListener code fires before/after navigation.
    As a JSF QA doing a review of your code, if I discovered you doing navigation in the actionListener rather than the action I'd have to question why you've gone with the non-standard approach as it will be a surprise and inconsistency for new JSF programmers on your team to pick up. This is not to say it's wrong in all cases, but I'd want to know a valid reason why you've done it. In addition the JDev IDE assists you in a number of cases with navigation via the action attribute at design time, but not so with the actionListener.
    So in summary it's just the way it is, don't get too hung up on it.
    I'm not that sure what you mean by "What happens when you got the two filled in in a unique component?"
    Hope this helps.
    Cheers,
    CM.

  • What's the query to find all requests' name of all modules EBS R12.1.3??

    What's the query to find all requests' name of all modules EBS R12.1.3??
    Regards:
    Shahzad M. Saleem

    Dear rioman !!!
    Thanks!!
    Regards:
    Shahzad M. Saleem

Maybe you are looking for

  • Multiple SPRY Collapsible Panel Defaults

    I have a page with three collapsible bars and want the only the first to be open and the other two to be closed when the page loads. How do I do this?

  • Acrobat Toolbar in Lotus Notes 8.5

    Does anyone know how i can get the acrobat toolbar to show up in Lotus Notes 8.5. I know this has been an issue in the past and I have already tried the steps of manually adding the add-ons into the configuration files for Notes but that doesn't seem

  • NoClassDefFoundError exception

    I think I need to reload NWDS on my laptop. I just attended the 2005 CRM Boot Camp and they had us load, unload, reload stuff on our laptops so many times that it doesn’t look anything like it did. In order to use my NWDS, I had to pull down J2SE 1.4

  • GUI download, how to retain format of decimal places

    Hi everyone! I have a program that downloads data to excel file using GUI Download. The values of the amount in the ALV display are 11.90, 11.90- which is correct because it has two decimal places. But the problem now occurs in the excel file. The va

  • How do you make an image appear by clicking on a link?

    I have a div set up as a box for my  images. Underneath I have put a several divs, each of which have numbers in them...01.....02....03....04 I would like to know how to make it so that when you click on 01, an image appears in the box, when you clic