+ Reply to Thread
Results 1 to 4 of 4

How to extract the number initials found in one cell?

  1. #1
    Registered User
    Join Date
    06-26-2013
    Location
    Miami, Florida
    MS-Off Ver
    Excel 2010
    Posts
    3

    Question How to extract the number initials found in one cell?

    Hello all,

    I’m new here and hope that we can help each other.

    I need some help!

    I have a team of users that notate in a two columns called Notes and Prescription Notes. The rows are patients with demographic information. All users enter their notes in the same cells. In other words, the new notes are added to the exciting notes.

    (02/11/2013 3:51PM PER WEBSITE PT ACTIVE TILL 04/04/2013-JJ; 3/14/2013 4:00PM SPOKE TO PATIENT AND CONFIRMED ADDRESS AND PHONE NUMBER….SCHEDULED FOR 3/15/2013 ORDER#1755 -JCG)

    The users date, time, and stamp their initials. The initials are always entered at the end of the notation and with a dash.

    Examples: -JD, -JCG, -MM, -VM, -JJ, -MG, and -MS.

    What I need help in is to be able to extract the number of times a user notates within two cells in one row. I need a formula that will count the number of times the initials (shown above) is typed. The formula should also accommodate for new notations.

    Below is an example of how the results should look, refer to the .jpg.

    I have also attached a sample of the data.

    Any help will be highly appreciated.

    Thank you
    Jorge
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,696

    Re: How to extract the number initials found in one cell?

    Hello Jorge,

    Try using this formula in C4 copied across and down

    =(LEN($A4&$B4)-LEN(SUBSTITUTE($A4&$B4,"-"&C$2,"")))/(1+LEN(C$2))

    custom format as 0;; if you don't want zeroes to display
    Audere est facere

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How to extract the number initials found in one cell?

    in c3
    =(LEN($A3)-LEN(SUBSTITUTE($A3,"-"&C$2,"")))/(LEN(C$2)+1)+(LEN($B3)-LEN(SUBSTITUTE($B3,"-"&C$2,"")))/(LEN(C$2)+1) mind you this gives a total count for vm of 2 in row 5 not 1 as you show
    Last edited by martindwilson; 06-28-2013 at 10:32 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    06-26-2013
    Location
    Miami, Florida
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: How to extract the number initials found in one cell?

    WOW!!!!!!!
    Thank you sooooo much!!

    I have been breaking my head and trying to find how to do this.

    You have helped me and I am very thankful.

    Once again thank you!!
    Jorge

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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