+ Reply to Thread
Results 1 to 13 of 13

Formula or way to count repeated data in a list of cells?

  1. #1
    Registered User
    Join Date
    09-25-2013
    Location
    Johnson City, TN.
    MS-Off Ver
    Excel 2016
    Posts
    36

    Formula or way to count repeated data in a list of cells?

    I have an excel file that's over 2000 lines deep and has data in 9 different cells across. I want a formula that can find repeated data in a given cell or whole page and total it. lets say I have a column that has first aqnd last names, I want to to find names that were repeated and tell me how many times that name was repeated. or.... Example: list of running cells 1-8 in column E looks like this.
    223
    342
    431
    223
    512
    124
    223
    013

    the number 223 shows up 3 different times right? What I would like is a formula what will search the full page and find copies of this and tell me what they are and how many times they where copied. yes i know you can use the find button and that works if you know what you are looking. the numbers in some of our columns are 6 digits long and we are not sure how many have been used more then once. Or how many times a certain person's name has been entered more then once. thank you and hope you can help.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Formula or way to count repeated data in a list of cells?

    Maybe add a helper column and use =COUNTIF()
    Then filter on all values > 1
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    09-25-2013
    Location
    Johnson City, TN.
    MS-Off Ver
    Excel 2016
    Posts
    36

    Re: Formula or way to count repeated data in a list of cells?

    First thank you for the reply. Second can you explain what you mean in filter all values > 1? I'm a learn as a go, trial and error type when it comes to excel. like I watch youtube videos on how to add up columns so yeah I need some help.

  4. #4
    Forum Contributor
    Join Date
    10-29-2014
    Location
    udaipur, rajasthan
    MS-Off Ver
    2007
    Posts
    352

    Re: Formula or way to count repeated data in a list of cells?

    please see attached file with "countif" hope it will help you.
    Attached Files Attached Files
    If answer helped you say Thanks by Add Reputation

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Formula or way to count repeated data in a list of cells?

    Is this the sort of thing that you had in mind? I can explain how it was set up and direct you to a www for a detailed explanation of how it works...
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  6. #6
    Registered User
    Join Date
    09-25-2013
    Location
    Johnson City, TN.
    MS-Off Ver
    Excel 2016
    Posts
    36

    Re: Formula or way to count repeated data in a list of cells?

    udprocks = That looks like it could work well at least for the column were I have numbers. But will it work where I have names too? I just glanced at it so i have not looked at the formula yet. I will try and add that to my sheet and see what i get. thank you!

    Glenn = thats impressive looking (for a rookie like me) I would like to know what all your showing and doing. Maybe that can help me as well and maybe even show me more. So yes I would like to know how that works.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Formula or way to count repeated data in a list of cells?

    Maybe I miunderstood your request. It's looking at the entire dD array and returning a list of all of the numbers that appear in that grid, in descending order of frequency of occurrence (column L) and the number of occyrrences of each number (column M). It was not clear (to me) from your description whether you wanted each column treated individually, or the grid an a single entity.

    It's always better for you to attach a sample sheet, showing your expected result. that removes a lot of ambiguity...

  8. #8
    Registered User
    Join Date
    09-25-2013
    Location
    Johnson City, TN.
    MS-Off Ver
    Excel 2016
    Posts
    36

    Re: Formula or way to count repeated data in a list of cells?

    Glenn I'm really sorry for my inability to explain it. I do not know the terminology to use because I am a self taught extreme rookie when it comes to this. I literally did not know how to add cell one and cell two and show the result in cell three when I started this project. Also I do not know how to show or attach a spreadsheet here yet. And last I can not add mine because of HIPPA regulations. I can try and make one similar but not use real names, and attach that. So let me make that and then can you help me attach it?

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Formula or way to count repeated data in a list of cells?

    Sure. here are the instructions for attaching a sample sheet.

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

  10. #10
    Registered User
    Join Date
    09-25-2013
    Location
    Johnson City, TN.
    MS-Off Ver
    Excel 2016
    Posts
    36

    Re: Formula or way to count repeated data in a list of cells?

    Ok I am going to try this. If this works you will see a sample of my file as it looks today but very reduced.
    tab one "Sheet1" is a running list where the info is input, tab 2"JAN" is for January and you can see that I have copied the info from sheet one into
    JAN. same for Tab 2 "FEB", and tab 3 "MAR". all of these are the same and as each month ends i copy and past that info from sheet one into the corresponding month

    For starters I want to use columns at the top (marked in blue). Duplicate ID# and Duplicate Names.
    starting with Duplicate ID# column I want it to show how many times the same number showed
    up within the ID column. and in the Duplicate Names I want it to show how many times the same name showed up more then once.

    Then in each month I want to show that as well when I copy that info into that tab.
    I would also like for it to show in the totals tab a running total. of how many times a certain number and or name showed up in each month and year.
    this part I have not even started yet because I was not sure it can even be done.

    then last I want to be able to save all of the layouts, and formulas and be able to start over with a whole new sheet on January 1st. 2018.

    PS.. some of the formulas are not going to work because of all the changes I made to get this edited down to be able to send. if you can just show me how to do the things I wuld like
    I will add them to my master sheet and hopefully that will work.
    thank you!
    Attached Files Attached Files

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Formula or way to count repeated data in a list of cells?

    Is this it? What are the criteria for deciding whether an entry belongs in Jan feb, etc. It's easy to get a fomrula to do the copy/pasting for you...
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    09-25-2013
    Location
    Johnson City, TN.
    MS-Off Ver
    Excel 2016
    Posts
    36

    Re: Formula or way to count repeated data in a list of cells?

    Quote Originally Posted by Glenn Kennedy View Post
    Is this it? What are the criteria for deciding whether an entry belongs in Jan feb, etc. It's easy to get a fomrula to do the copy/pasting for you...
    The date out. If the date out is 01/04/17 then it goes into JAN. if the date is 02/22/17 then it goes into FEB. etc. I have just been highlighting and selecting the ones that fill into that months date out and click copy and then past that into JAN. HOWEVER when i do that it moves all the totals and formulas that are in the last columns (the ones I want to stay in each tab columns K,L,M) down however many I just pasted into that tab. Lets say i have 129 that i bring over from sheet 1 to tab JAN. Then the data i have put into K,L,M will move down 129 rows. I have to delete the rows above them and redo the formula each time.

  13. #13
    Registered User
    Join Date
    09-25-2013
    Location
    Johnson City, TN.
    MS-Off Ver
    Excel 2016
    Posts
    36

    Re: Formula or way to count repeated data in a list of cells?

    I'm sorry i just looked and on this test file its Columns M,N,O in tabs JAN, FEB, MAR, that move when I copy and paste. If you notice I have a couple boxes that total up the info for that month. shows me turn a round, who did what and how many they did, what all came in, etc... I'm trying to use these to show me as much as I can about everything coming and going as i can get it to.

    OH AND YES that looked to work on getting the duplicates for both thank you! I wonder now if there is a way to give me a total for the end of the year? a column that shows that John Doe 22 was listed 6 times each month for a total of 18 times?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Formula to count repeated entries only once if criteria is met
    By majana54 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-10-2017, 10:37 AM
  2. [SOLVED] Formula for running total (static count) of repeated values in a table
    By HeyInKy in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 09-22-2017, 03:17 PM
  3. Need help to skip blanks in repeated list formula (index match)
    By iskz in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-19-2017, 07:37 PM
  4. [SOLVED] Count pattern of data repeated within array
    By abbasabdulla in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-20-2014, 01:14 PM
  5. [SOLVED] Append data to repeated values with a fixed array to be repeated on value change
    By anchuri_chaitanya in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-06-2011, 12:30 AM
  6. Replies: 9
    Last Post: 02-17-2009, 09:16 AM
  7. list with multiple repeated data
    By ArturoCohen in forum Excel General
    Replies: 1
    Last Post: 08-14-2006, 03:50 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1