+ Reply to Thread
Results 1 to 4 of 4

How to count occurrence of strings from array (row) in a column

Hybrid View

  1. #1
    Registered User
    Join Date
    07-11-2015
    Location
    Manchester
    MS-Off Ver
    Office 2013
    Posts
    2

    How to count occurrence of strings from array (row) in a column

    Hi,

    I am working on a spreadsheet that has some strings in columns A2:K2.
    In a separate sheet I have in rows A2:A15 some strings (PP1, PP2, PP3...PP15)
    In cell L2 I want to be able to put a formula to count how many time any of the strings in A2:A15 appear in A2:K2.

    Thank you any help in greatly appreciated.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,629

    Re: How to count occurrence of strings from array (row) in a column

    In A2 to K2, are the strings like PP1 or xxxPP1yyy? Might be easier if you posted a sheet...

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    The paperclip icon
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    07-11-2015
    Location
    Manchester
    MS-Off Ver
    Office 2013
    Posts
    2

    Re: How to count occurrence of strings from array (row) in a column

    Sheet1.pngSheet2.png

    Thank Glenn for your quick reply here is a screenshot.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,629

    Re: How to count occurrence of strings from array (row) in a column

    Hi. Probably the best way to do this is to set up a Named Range (CTRL-F3 to view it). I called it "Codes". This list is totally dynamic and can have items added to it or subtracted from it at any time. Then I used SUM and IF together to get your result.

    BtW, you will usually get faster responses from members if you attach a spreadsheet, rather than a picture of one.
    Attached Files Attached Files

+ 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. Count occurrence per row ignoring duplicates in column
    By braun.reivn in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-24-2015, 09:53 PM
  2. Find each occurrence in a column and do for each occurrence
    By jfoerch in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-21-2014, 12:29 PM
  3. [SOLVED] Count number of occurrence in column and print to array
    By ggilzow in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-10-2013, 12:44 PM
  4. [SOLVED] Create 1-col array identifying occurrence count in a 1-col array
    By empsall in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-26-2013, 12:50 PM
  5. Strings - Find position of the nth occurrence
    By efernandes67 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-06-2009, 05:46 PM

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