+ Reply to Thread
Results 1 to 3 of 3

Table/function that counts number of occurrences within multiple columns

  1. #1
    Registered User
    Join Date
    04-19-2013
    Location
    (private)
    MS-Off Ver
    Excel 2007, 2010
    Posts
    1

    Table/function that counts number of occurrences within multiple columns

    First off: hello everyone!

    I have an interesting problem, and I have been looking for the solution just about everywhere!

    I have a table in excel, with a header. Within that table, I have three columns of data, which contain various topics, like so:

    M N O P
    1 education justice law
    2 privacy law
    3 entertainment education
    4 education courts police records


    I need a count of each occurrence of a topic within those four columns. Using the previous example, I would get a result like this:

    AA BB
    education 3
    privacy 1
    law 2

    ...and so forth and so on.

    The important thing here: I have no idea what the topics will be. So that kills COUNTIF and similar functions. After all my looking for solutions, I'm beginning to have the sneaking suspicion that this can only be solved via VBA code. If that's truly the case, please note in advance that I am a VBA newbie...I found out how to enable it in Excel 2010, and that's about it! So please be clear in providing any steps I need to take.

    I'd GREATLY appreciate anyone's help...I'm really stumped! Thanks in advance!

  2. #2
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: Table/function that counts number of occurrences within multiple columns

    Try This,

    Please Login or Register  to view this content.
    Be fore warned, I regularly post drunk. So don't take offence (too much) to what I say.
    I am the real 'Napster'
    The Grid. A digital frontier. I tried to picture clusters of information as they moved through the computer. What did they look like? Ships? motorcycles? Were the circuits like freeways? I kept dreaming of a world I thought I'd never see. And then, one day...

    If you receive help please give thanks. Click the * in the bottom left hand corner.

    snb's VBA Help Files

  3. #3
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Table/function that counts number of occurrences within multiple columns

    Hi

    How about

    Please Login or Register  to view this content.
    rylo

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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