+ Reply to Thread
Results 1 to 8 of 8

Counting the column contents in the excel

  1. #1
    Registered User
    Join Date
    06-18-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    76

    Counting the column contents in the excel

    Hi all,

    I have an excel dataset (2010) that contains columns like below:

    AB
    SE
    AB
    DW
    AW
    AB
    DW
    Arabidopsis thaliana AB family, etc.

    I would like to have the number of each cell with a given content in the coumns, for example, we have 4 cells with AB, or two cells with DW, and so on. Since the coulmn is so large, the manually counting is impossible, could you please help me out how I can do it?

    Thank you in advance
    Attached Files Attached Files
    Last edited by Mary22; 07-05-2016 at 05:40 PM.

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Counting the column contents in the excel

    Can you post a sample dataset?

    I would use a pivot table, but you CAN use COUNTIF(S). Actually since you want AB to exist anywhere in the string you will likely need sumproduct or countif(s).

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Registered User
    Join Date
    06-18-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    76

    Re: Counting the column contents in the excel

    Thank you for your prompt feedback. As you kindly suggested, I attached a short sample of my real data with BEFORE and AFTER sheet. Again thanks

  4. #4
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Counting the column contents in the excel

    You can use a COUNTIF(S) or SUMPRODUCT like mikeTRON suggested, or you can use a filter and get a count of the number of cells left visible. If you are after like a distribution table of the different entries then the formulas are the way to go. If you are after a one off or infrequent count of just one type of entry I would consider the filter option.
    Please add reputation by clicking on the * if I have helped.
    Please mark the thread SOLVED if your issue has been resolved.
    Thanks, Glenn.

  5. #5
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Counting the column contents in the excel

    In Cell B2 of the AFTER:
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    04-19-2004
    Location
    Palmerston North, New Zealand
    MS-Off Ver
    365
    Posts
    15

    Re: Counting the column contents in the excel

    You can insert a column and use the ISTEXT formula as well. For example if you have a column of mixed data and text you can use the ISTEXT formula to count the cells that are text and not numbers. =if(istext(RANGE),1,0)) this will return the value of one beside each cell that contains text, then you can just add them up at the bottom of the column to get a count of how many text cells there are.

  7. #7
    Registered User
    Join Date
    06-18-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    76

    Re: Counting the column contents in the excel

    Thank you very much for your help, mikeTRON. I approved it

  8. #8
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Counting the column contents in the excel

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Comparing an Excel column to a Mac folders contents
    By NoisyDante in forum Excel General
    Replies: 2
    Last Post: 02-20-2015, 01:32 PM
  2. Counting cell contents.
    By pouters in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-09-2013, 09:56 PM
  3. VBA - Insert row, copy contents of original row except for contents of column A
    By Royzer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-20-2012, 07:41 PM
  4. Replies: 0
    Last Post: 09-23-2010, 03:48 PM
  5. Counting cells in offset column based on contents of another column.
    By Big Chris in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-10-2008, 09:25 AM
  6. Counting Contents
    By frainy180 in forum Excel General
    Replies: 4
    Last Post: 09-20-2006, 11:51 AM
  7. [SOLVED] Excel: is it possible to move column contents into a line
    By Ginger in forum Excel General
    Replies: 2
    Last Post: 06-16-2005, 02:05 PM

Tags for this Thread

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