Consulting

Results 1 to 3 of 3

Thread: Counting the occurrence of each entry in a column

  1. #1
    VBAX Regular
    Joined
    Dec 2016
    Posts
    22
    Location

    Counting the occurrence of each entry in a column

    Hi all,

    I'm trying to develop a macro that will count the occurrence of each entry in a column, and populate a new column with the number of times that entry has appeared in the count.

    Attached is a spreadsheet with the highlighted column (column G) showing what I'm trying to automate, and column B is the one I'm trying to perform the count on.

    Any help or guidance would be greatly appreciated

    VBA Question.xlsx

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Use a simple COUNTIFS

    =COUNTIFS($B$2:$B2,$B2)
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Regular
    Joined
    Dec 2016
    Posts
    22
    Location
    Brilliant, thanks Bob

Posting Permissions

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