+ Reply to Thread
Results 1 to 3 of 3

Thread: COUNTIF: for the number of occurance of each term. ONE code for whole doc.

  1. #1
    Registered User
    Join Date
    09-05-2008
    Location
    minimed
    Posts
    2

    COUNTIF: for the number of occurance of each term. ONE code for whole doc.

    I looked for a long time through the past entries and couldn't find an answer for this specific situation.

    I have a spreadsheet with multiple occurances of names in column A

    A
    green
    green
    green
    blue
    blue
    white
    white
    white

    and in column D I need a total of how many occurances of that name there are. that total needs to be listed in that row for that name specifically. There are many names on there currently and many will be added via copy/paste from another spreadsheet so i need one formula to paste into each row to cover ALL recurring names. Basically i need to enter in column D "=COUNTIF(A:A,"a term that would total the reoccurance of each name from the A column the corresponding D cell")

    A D
    green 3
    green 3
    green 3
    blue 2
    blue 2
    white 3
    white 3
    white 3



    The goal is to be able to copy/paste new entries into the spreadsheet, sort them by name, and have them automatically update the totals in each row even if they are new names. i guess it would be a "number of occurance of each term" code to cover all terms.

    hope that makes sense. thanks.
    Last edited by oldchippy; 10-23-2008 at 04:32 PM.

  2. #2
    "Eagle Eyed" Forum Moderator oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Work) and 2007 (Home)
    Posts
    7,130
    Hi,

    Welcome to the forum, this should do it for you

    =COUNTIF(A:A,A1) auto-fill down
    oldchippy
    -------------


    If you are happy with the help you have received, please click the blue scales icon in the blue bar of the post.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Registered User
    Join Date
    09-05-2008
    Location
    minimed
    Posts
    2
    that worked GREAT thank you!

+ 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. Countif a number is between two numbers
    By autotim in forum Excel Worksheet Functions
    Replies: 3
    Last Post: 06-12-2007, 11:05 AM
  2. Excel closes when using VBA to write VBA code
    By btoback in forum Excel Programming
    Replies: 1
    Last Post: 06-04-2007, 03:42 PM
  3. Linking a Number Code to a Name
    By krutherford in forum Excel General
    Replies: 9
    Last Post: 04-23-2007, 05:16 PM
  4. Sequential Job Code Generation
    By Sir Spike in forum Excel Worksheet Functions
    Replies: 1
    Last Post: 03-27-2007, 01:11 AM
  5. Check cell contents
    By nabialekp in forum Excel Programming
    Replies: 4
    Last Post: 12-14-2006, 11:55 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.2.0