+ Reply to Thread
Results 1 to 8 of 8

Counting same text across multiple columns

  1. #1
    Registered User
    Join Date
    11-11-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    4

    Counting same text across multiple columns

    Hi all

    I need to count the number of times the same text occurs in 2 columns (in a single row) and put the number in a separate column. In case I haven't explained myself well (which I haven't), here is an example.


    Customer Date of report Data
    1 12/11/2012 Data 1
    1 12/11/2012 Data 2
    1 12/11/2012 Data 3
    1 12/11/2012 Data 4
    2 13/11/2012 Data 5
    2 13/11/2012 Data 6
    2 13/11/2012 Data 7
    2 14/11/2012 Data 9
    3 15/11/2012 Data 10
    3 16/11/2012 Data 11
    3 17/11/2012 Data 12

    So I want to know how many times Customer 1 has put in a report on the 12th of November 2012 (with that figure being displayed in another column that I can sort and filter on).

    I have kind of worked it out by concatenating the two columns but that isn't going to give me exactly what I want.

    Happy to be told what to do...


    Louise

  2. #2
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Counting same text across multiple columns

    See my attached sheet... does it do what you need?

    It uses the formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Where F1 is a cell that you enter the customer # you are searching for, and H1 is where you can enter the date you are searching for.

    - Moo
    Attached Files Attached Files
    Last edited by Moo the Dog; 11-11-2012 at 09:26 PM.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,467

    Re: Counting same text across multiple columns

    Have you looked at COUNTIFS?


    Regards, tms
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    11-11-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Counting same text across multiple columns

    Hi Moo

    Thanks for getting back to me so quickly, this works well. What I really want is for the command to automatically review all of column A and B, calculate the number of occurences and then display the figure for each row - I know that I will get multiple rows for each customer (with the same number of occurences displayed) but that is OK as the data will be different and I can sort/filter.

    I don't want to input figures as this is a big spreadshest.

    Thanks again,


    Louise

  5. #5
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Counting same text across multiple columns

    OK, well, if you put this formula in cell D2 in my spreadsheet above, then fill down, I think it does what you want. Let me know:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    -Moo

  6. #6
    Registered User
    Join Date
    11-11-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Counting same text across multiple columns

    Dearest Moo (aka life saver).

    Thank you ....... If you ever come to the wonderful land of Australia, I owe you a drink (top shelf).


    Louise

  7. #7
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Counting same text across multiple columns

    You're very welcome.

    Aww shucks.. now I'm blushing.

    - Moo

  8. #8
    Registered User
    Join Date
    11-11-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Counting same text across multiple columns

    And I am smiling !!!!!!

    Thanks again, really appreciate it.

+ 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