+ Reply to Thread
Results 1 to 2 of 2

Count the numbers of line items based on a criteria

  1. #1
    Registered User
    Join Date
    02-26-2014
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    33

    Count the numbers of line items based on a criteria

    Good Evening All,
    I require a formula which can count the number of line items with a given criteria. So I have 2 sheets. 1st sheet has got 4 columns (Queue type, State, Status, Date). One the second sheet I have to add a formula in the column C and F for the cells highlighted in yellow.

    For CO state - it should count the number of line items based on each "queue type" and "status". There are only 2 status - HOLD and FAQ. Also I require the oldest date column in the sheet 2 to be filled automatically based on the oldest date of the state and the queue type and status.

    Please help me with this...

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Count the numbers of line items based on a criteria

    C10: =COUNTIFS(Sheet1!$B:$B, $A$2, Sheet1!$A:$A, Sheet2!$B10&"*")
    F10: =COUNTIFS(Sheet1!$B:$B, $A$2, Sheet1!$A:$A, Sheet2!$B10&"*", Sheet1!$C:$C, Sheet2!F$1)
    H10: =LOOKUP(2, 1/((Sheet1!$B$2:$B$200=$A$2)*(LEFT(Sheet1!$A$2:$A$200, LEN($B10))=$B10)), Sheet1!$D$2:$D$200)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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] How can I count line entries based on meeting criteria for 2 separate columns?
    By neilrk7 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-15-2013, 12:57 PM
  2. Combining multiple line items into one line item based on column.
    By mguz018 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-20-2012, 07:22 PM
  3. Count Line Items Based on Date
    By bantadant in forum Excel General
    Replies: 2
    Last Post: 12-21-2010, 10:18 AM
  4. Replies: 10
    Last Post: 03-25-2009, 10:09 PM
  5. Replies: 2
    Last Post: 10-18-2005, 04:05 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