+ Reply to Thread
Results 1 to 3 of 3

Count number of line items, that fulfill 2 criteria

  1. #1
    Registered User
    Join Date
    05-08-2014
    MS-Off Ver
    GSheets
    Posts
    20

    Count number of line items, that fulfill 2 criteria

    Hi,

    I am looking for a function that allows me to count number of line items that fulfill the following 2 criteria:
    1. Company name matches
    2. Date is prior to TODAY

    I attached an excel file as an example.

    Regards
    k
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Count number of line items, that fulfill 2 criteria

    You dont give much data to go on, nor do you show any expected results?
    You probably need to use COUNTIFS though.

    oh and by the way, Please update your profile as necessary to properly reflect the exact version(s) of Excel your question relates to. Members tailor answers based on your Excel version. Your profile says 2003, but your file indicates at least 2007
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Count number of line items, that fulfill 2 criteria

    try this...
    =COUNTIFS('raw data'!A:A,check!A2,'raw data'!B:B,"<"&TODAY())
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

+ 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 the number of non-duplicate items based off of criteria within a given sum range
    By Excelperson1992 in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 01-18-2019, 11:56 AM
  2. Show visible rows that fulfill a certain criteria
    By Atina in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-10-2018, 08:00 PM
  3. Replies: 4
    Last Post: 05-30-2018, 01:03 PM
  4. pulling multiple modules to fulfill a total criteria
    By A.D in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-16-2018, 09:14 AM
  5. Count the numbers of line items based on a criteria
    By sn152 in forum Excel General
    Replies: 1
    Last Post: 05-03-2014, 03:56 AM
  6. Replies: 0
    Last Post: 01-11-2013, 02:39 AM
  7. [SOLVED] using vells that fulfill a certain criteria
    By matthias in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-04-2006, 11:40 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