+ Reply to Thread
Results 1 to 5 of 5

Count how many times value "x" shows up in a column with criteria with criteria offsetted

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

    Count how many times value "x" shows up in a column with criteria with criteria offsetted

    i have a list of customers that I need to count the corresponding "LK" tasks in column E. However the customer id's are in column G but will only appear 1 row above the "LK" tasks. im trying sumproducts with index match and -1,2 but cant get it to work.

    All "LK" tasks will appear after a task with a customer number.

    2-9-2018 13-26-44 PM.png
    Attached Files Attached Files

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Count how many times value "x" shows up in a column with criteria with criteria offset

    =COUNTIFS($E$2:$E$999,O$1,$G$1:$G$998,$N2)
    in O1 LK

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,849

    Re: Count how many times value "x" shows up in a column with criteria with criteria offset

    Pivot table or COUNTIFS() function, depending on which you prefer. The pivot table will have the flexibility to filter or summarize other quantities, if you will want the flexibility.

    I'm not sure why you have 0's in the customer_id field for the LK tasks. I would go through the data and enter the correct customer number in those records. This could be a simple helper column =IF(G3=0,G2,G3) formula, then use that helper column as the real customer_id column, or copy->paste special->as values to fill in the existing customer_id column.

    That's how I'd do it -- clean up the data base so that each record has the correct customer_id number, then use COUNTIFS() or a pivot table.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

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

    Re: Count how many times value "x" shows up in a column with criteria with criteria offset

    The database will not capture customerID on any LK task due to.....well, 80's technology

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

    Re: Count how many times value "x" shows up in a column with criteria with criteria offset

    Quote Originally Posted by tim201110 View Post
    =COUNTIFS($E$2:$E$999,O$1,$G$1:$G$998,$N2)
    in O1 LK
    This simple yet effective formula did the trick.

    Thanks Tim

+ 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. Replies: 2
    Last Post: 07-24-2017, 02:19 AM
  2. Display data in cell "N" times based off of multiple criteria
    By ronalgreen in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-05-2013, 10:02 AM
  3. Looking how to Count the number of times "Oct" is used in a column
    By foxy_420 in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 10-24-2012, 03:29 PM
  4. Count Number of times Column A says "X" where Column B says "Y"
    By Bellio3105 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-10-2012, 06:29 AM
  5. Replies: 5
    Last Post: 07-05-2012, 04:04 PM
  6. Replies: 8
    Last Post: 07-05-2012, 03:07 PM
  7. Replies: 0
    Last Post: 07-09-2009, 04:07 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