+ Reply to Thread
Results 1 to 4 of 4

Sorting and counting data

  1. #1
    Registered User
    Join Date
    06-01-2013
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    2

    Sorting and counting data

    Hi all,

    I am trying to
    1) sort
    and
    2) count exact phrases as shown in the picture.
    Thanks.
    Attached Images Attached Images

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,740

    Re: Sorting and counting data

    EDIT
    re-read - you need a macro if you also want to sort - not my area of expertise

    you can put the count into the top row of the group if required using
    assuming data starts at cell A2
    put this into C2 and copy down
    =IF(A2=A1,"",COUNTIF(A2:A28,A2))

    do you need to have the result in the middle of the group - not sure how to do that exactly
    Attached Files Attached Files

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Sorting and counting data

    Hi and welcome to the forum

    Please do not upload a picture of your file...rather, upload a sample of your workbook, showing what data you are working with, a few samples of your expected outcome is (manually entered is ok) and how you arrived at that. (exclude sensitive info). Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    06-01-2013
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Sorting and counting data

    Thanks you that helped!

+ 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