+ Reply to Thread
Results 1 to 6 of 6

COUNT IF TEXT- Change from Non-LARC to LARC Methods

  1. #1
    Registered User
    Join Date
    07-24-2013
    Location
    new york
    MS-Off Ver
    Excel 2003
    Posts
    62

    COUNT IF TEXT- Change from Non-LARC to LARC Methods

    Dear friends,

    I have a spreadsheet that contains two columns: column A represents the patient contraceptive method when they arrive to the clinic and column B, the patient contraceptive methods when leaving the clinic. There are 8 contraceptive types:

    IUD, implant (LARC)
    Depo-Provera, Pill, patch, ring, none, other (Non-LARC)

    My goal is to count the instances (frequency and %) where the patient went from Non-LARC to a LARC contraceptive method (C17, D17). for example: from ring to IUD. We should not count instances where it was LARC to LARC. for example. from IUD to implant. My initial strategy was to add a column first to count each instances of change (column C). and then count that. But if there is way to count this directly, it would be great. Either way would work

    Please see the attached document. I really would appreciate any help on this.

    BEst,
    Marvin
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: COUNT IF TEXT- Change from Non-LARC to LARC Methods

    Hi,

    given the structure of the sheet, with 1's and 0's, you could try:

    C17: =COUNTIF(C2:C12,1)
    D17: =AVERAGE(C2:C12)

    Cheers,
    berlan

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: COUNT IF TEXT- Change from Non-LARC to LARC Methods

    My initial strategy was to add a column first to count each instances of change (column C). and then count that. But if there is way to count this directly, it would be great.
    Try this in C17
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and this in D17
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If your count in upload C3 is a typo these should work. (A3 is "Other" (non-Larc) and B3 is "IUD" (Larc)). Your count is 0. Shouldn't that be 1?
    Last edited by FlameRetired; 10-06-2015 at 01:28 AM.
    Dave

  4. #4
    Registered User
    Join Date
    07-24-2013
    Location
    new york
    MS-Off Ver
    Excel 2003
    Posts
    62

    Re: COUNT IF TEXT- Change from Non-LARC to LARC Methods

    Hi BErlan,

    Thanks for your help. But I also need the formula for column C. Can you help me with that?

  5. #5
    Registered User
    Join Date
    07-24-2013
    Location
    new york
    MS-Off Ver
    Excel 2003
    Posts
    62

    Re: COUNT IF TEXT- Change from Non-LARC to LARC Methods

    Dave,

    This is amazing. I didnt know Excel was that powerful. When I can learn about this command? Is there a source I can look at so I can understand what you did. I would like to nail this.

    Thank you again!
    Marvin

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: COUNT IF TEXT- Change from Non-LARC to LARC Methods

    Quote Originally Posted by Marvin85 View Post
    Dave,

    This is amazing. I didnt know Excel was that powerful. When I can learn about this command? Is there a source I can look at so I can understand what you did. I would like to nail this.

    Thank you again!
    Marvin
    You're welcome. Thanks for the feedback.

    I assume you speak of SUMPRODUCT. I share your amazement. In fact reports are that MS has been amazed at some of the creative things people are doing with this function ….. things well beyond what MS anticipated.

    I started here:
    http://www.xldynamic.com/source/xld.SUMPRODUCT.html

    I followed that up with a little “tutorial” that applies that knowledge here:

    http://exceluser.com/ideas/benford_xl12.htm

    It’s a little SUMPRODUCT exercise used with something called Benford’s Law. It is applied to the stock market. It makes heavy use of the principles laid down in that first link. The principles are applicable in a wide variety of formulas.

    Hope you have fun. I did.

    Hope this helps.
    Last edited by FlameRetired; 10-06-2015 at 10:35 PM.

+ 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. [SOLVED] Text count in word to text count in excel.
    By frisbie17 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-27-2012, 04:54 PM
  2. Replies: 46
    Last Post: 09-06-2005, 07:05 PM
  3. Replies: 18
    Last Post: 09-06-2005, 11:05 AM
  4. Replies: 18
    Last Post: 09-06-2005, 07:05 AM
  5. Replies: 18
    Last Post: 09-06-2005, 06:05 AM
  6. [SOLVED] Count Intervals of Filtered TEXT values in Column and Return Count across a Row
    By Domenic in forum Excel Formulas & Functions
    Replies: 27
    Last Post: 09-06-2005, 04:05 AM
  7. Count Intervals of Filtered TEXT values in Column and Return Count across a Row
    By Sam via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  8. [SOLVED] Count Intervals of Filtered TEXT values in Column and Return Count across a Row
    By Sam via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM

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