Forum Discussion

ukare1996's avatar
ukare1996
Icon for Helper I rankHelper I
3 years ago

Counting string words in semicolon separated column

Hi,

I am trying to count all options selected separated by the semicolon. So for every semicolon marks an additional count. I am excluding all blanks, none and n/a columns. I am not sure how I can achieve this.

 

Any help would be much appreciated.

4 Replies

    • ukare1996's avatar
      ukare1996
      Icon for Helper I rankHelper I

      Please find attached below - how can I count e.g. the strings in column 1 to return a result of 10 - so count all the strings - each time an occurance of semicolumn signifies an additional count. How do I do this without creating a seperate table and spliting then unpivoting - as I have more these columns in different categories. Any help would be much apprecaited.

      Monitor 1 - Action taken by customer40.Monitor 2 - Action taken by customer Monitor 3  - Action taken by customer 

         
      Private drains cleaned;#GM UPGRADED following NPO visit/adviceN/AGM UPGRADED following NPO visit/advice
      NoneNoneNone
      NoneNoneNone
      NoneNoneNone
      NoneNoneNone
      NoneNoneNone
      NoneNoneNone
      NoneNoneNone
      GM installed following NPO visit/advice None
      NoneNoneNone
      NoneNoneNone
      None;#GM installed following NPO visit/advice;#GM UPGRADED following NPO visit/advice;#Private drains cleanedNoneNone
      NoneNoneNone
      NoneNoneNone
      NoneNoneNone
      NoneNoneNone
      NoneNoneNone
      NoneNoneNone
      Improved kitchen practicesGM purchased but not yet fittedGM purchased but not yet fitted
      NoneNoneNone
      NoneNoneNone
      Private drains cleaned;#GM - Increased frequency of cleaningGM UPGRADED following NPO visit/advice;#GM (ADDITIONAL) installed following NPO visit/adviceImproved kitchen practices;#GM - Increased frequency of cleaning
      GM installed following NPO visit/adviceGM installed following NPO visit/adviceGM installed following NPO visit/advice
      NoneNoneNone
      • ukare1996's avatar
        ukare1996
        Icon for Helper I rankHelper I

        The count must exclude all None, Nulls and Blanks