+ Reply to Thread
Results 1 to 3 of 3

Count how many times a value appears before or after another value in same column.

  1. #1
    Registered User
    Join Date
    01-15-2013
    Location
    Indianapolis
    MS-Off Ver
    Office 365
    Posts
    78

    Count how many times a value appears before or after another value in same column.

    So i have this sheet with data in columns A-G

    In column E i have work types completed
    In Columns B and C i have the Start and End times of when they were completed
    In Column D is the User ID of who completed the specific work type

    What I want to find out is how many times does work type "RO" happen before or after a "BP", then for a "BK", then for a "PW" and then by itself per user id using the columns B and C for time reference. If cell C2 is equal to B3 then we know we know these 2 worktypes happened one after the other.

    Hopefully by looking at the sheet you all can get a better understanding of what Im trying to accomplish
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Count how many times a value appears before or after another value in same column.

    In M3 then drag across upto column O.
    Please Login or Register  to view this content.
    In P3 then drag down
    Please Login or Register  to view this content.
    Q & R are helper columns
    In P3 then drag down
    Please Login or Register  to view this content.
    In P3 then drag down
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  3. #3
    Registered User
    Join Date
    01-15-2013
    Location
    Indianapolis
    MS-Off Ver
    Office 365
    Posts
    78

    Re: Count how many times a value appears before or after another value in same column.

    Wow, thats amazing. Im going to have to really analyze these formulas to see whats going.

    Thank you so so much for doing this.

+ 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] Count number of times of name appears in a column
    By Ness78 in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 08-01-2012, 08:14 AM
  2. How do I count how many times a code appears in a column?
    By Leo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 03:05 AM
  3. How do I count how many times a code appears in a column?
    By Leo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 01:05 AM
  4. [SOLVED] How do I count how many times a code appears in a column?
    By Leo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 12:05 AM
  5. How do I count how many times a code appears in a column?
    By Leo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-05-2005, 11:05 PM
  6. How do I count how many times a code appears in a column?
    By Leo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-05-2005, 10:05 PM
  7. [SOLVED] How do I count how many times a code appears in a column?
    By Leo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-03-2005, 09:05 AM
  8. [SOLVED] Count how many times the same word appears in column
    By Alexa in forum Excel General
    Replies: 5
    Last Post: 04-16-2005, 11:07 AM

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