+ Reply to Thread
Results 1 to 4 of 4

Counting the number of cells that contain "CH"

  1. #1
    Forum Contributor
    Join Date
    07-24-2012
    Location
    Denver, CO
    MS-Off Ver
    365
    Posts
    230

    Counting the number of cells that contain "CH"

    I have 76 cells in Sheet1 that each contain 2 identification letters (all in one column). I need a way to count the cells in the column that specifically contain the two letters "CH". I need this number so that I can sort all 76 cells alphabetically and then move the range of cells containing "CH" over one column, leaving the rest in column A. I'll end up doing this for all of the identification letters, each category of letters one column over from the next, but I only need someone to help me get started, and then I can change the code to move the other letters. Sheet2 contains my desired result, but I need a macro to order these cells in case more cells labeled "CH" are later added. Can anyone help? I can try to reword this if it is too confusing.

    identification_numbers.xlsm

  2. #2
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Counting the number of cells that contain "CH"

    How about:

    =COUNTIF(A1:A76,"CH")

    or if you like macros:

    Please Login or Register  to view this content.
    Last edited by Jakobshavn; 06-18-2013 at 12:35 PM.
    Gary's Student

  3. #3
    Forum Contributor
    Join Date
    07-24-2012
    Location
    Denver, CO
    MS-Off Ver
    365
    Posts
    230

    Re: Counting the number of cells that contain "CH"

    Thanks man,

    I'm still new to excel but yeah that worked haha

  4. #4
    Forum Contributor
    Join Date
    02-28-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    272

    Re: Counting the number of cells that contain "CH"

    Put any letter in Text Box you want to copy to next sheet
    Attached Files Attached Files
    Please consider adding a * if I helped

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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