+ Reply to Thread
Results 1 to 6 of 6

Count only data within a line break (alt-enter) with specific criteria in adjacent column

  1. #1
    Registered User
    Join Date
    02-01-2016
    Location
    Milwaukee, WI
    MS-Off Ver
    2013
    Posts
    28

    Count only data within a line break (alt-enter) with specific criteria in adjacent column

    Hi everyone. I am trying to determine a formula that would count how many times a person is noncompliant based on my data, which consists of a name (within a line break amongst other names) and an adjacent column stating "Yes" or "No" (also within a line break). I do not want to use a VBA or macro, and am assuming it will end up being an array formula or a method that transfers the line breaks to individual rows. I have attached an example of what my data looks like and what I am looking for. Thanks in advanced for taking the time to help me.
    Attached Files Attached Files
    Last edited by jparve3283; 06-15-2016 at 04:22 PM.

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Count only data within a line break (alt-enter) with specific criteria in adjacent col

    Yeah this is pretty foul data haha.
    I tried a few ways but I would resort to VBA to solve this, as I cant come up with a clever way to find the line breaks that isn't absurdly complicated.


    What is the max number of "Missing"s a cell could have?
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Registered User
    Join Date
    02-01-2016
    Location
    Milwaukee, WI
    MS-Off Ver
    2013
    Posts
    28

    Re: Count only data within a line break (alt-enter) with specific criteria in adjacent col

    There is no "max" but the most I counted was 10. Tell me about it, I wish the data was different, it would make life a lot easier.

  4. #4
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Count only data within a line break (alt-enter) with specific criteria in adjacent col

    I started playing with this yesterday, and I think I might have cracked it... take a look at sheet2 of my attachment and see if it does the trick. The formula in D2:K60 parses your (horrific!) data into name/compliance pairs, then the table in M:N counts based on that data. Once you have all of your names in the table in column M, all you would need to do is enter/update new data in columns A and B, and everything else should adjust accordingly. I tried entering some additional names in column M to test it out, and it appears to hold up. You could easily fill the ugly formula in D2:K60 down to accommodate more rows, if necessary. Similarly, you could insert more columns after K and fill it right if you have more than 8 people working in one shift(?)/box. Give it a look, see if it helps?
    Attached Files Attached Files
    Last edited by CAntosh; 06-20-2016 at 10:44 AM.

  5. #5
    Registered User
    Join Date
    02-01-2016
    Location
    Milwaukee, WI
    MS-Off Ver
    2013
    Posts
    28

    Re: Count only data within a line break (alt-enter) with specific criteria in adjacent col

    Thanks that worked perfect, you are the man.

  6. #6
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Count only data within a line break (alt-enter) with specific criteria in adjacent col

    Glad it worked for you, good luck!

+ 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] VBA for Line Break (Alt- Enter)
    By Keibri in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-28-2015, 06:29 AM
  2. [SOLVED] Count Quantity if adjacent column matches criteria
    By Simon.xlsx in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-05-2015, 07:44 AM
  3. [SOLVED] Enter Line-Break [Alt + Enter] at specific location
    By jewelsharma in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-27-2014, 12:23 AM
  4. [SOLVED] VBA to insert line break (Alt+Enter)
    By TextMonkey in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-12-2014, 01:18 PM
  5. ALT+ENTER = line break
    By Nyla in forum Excel General
    Replies: 5
    Last Post: 05-23-2006, 05:45 PM
  6. Replies: 3
    Last Post: 05-08-2006, 07:25 PM
  7. [SOLVED] How do I enter a line break within a cell?
    By Striving for efficiency in forum Excel General
    Replies: 4
    Last Post: 11-17-2005, 04:15 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