+ Reply to Thread
Results 1 to 3 of 3

need to work on COUNTIF & COUNTIFS formulas so it Excludes certain data

  1. #1
    Forum Contributor
    Join Date
    12-18-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 365
    Posts
    108

    need to work on COUNTIF & COUNTIFS formulas so it Excludes certain data

    I've (more or less) found a way to count some data for our monthly reports, but i am stuck when the formula needs to exclude certain lines of data when an order is cancelled.
    The attached example contains a simplified sample of the report and the type of folrmula's we are using.

    basically, there are 3 things i need my re[port to do:
    1. calculate how many "PS" or "PE" orders (column A), are processed for cusomer "B" (column B), excluding the "PS" or "PE" cancelled orders (column D)
    2. calculate how many "PS" or "PE" orders (column A), are marked with expedite "Yes" (column C), excluding the "PS" or "PE" cancelled orders (column D)
    3. calculate how many orders were processed within 2 days, excluding the cancelled orders (column D)


    now, the formula's are listed on the summary tab of the attached sheet, in column B.
    As stated, the formula's are finished, except for the part to deduct the lines that are marked wiht Cancelled in column D.

    I am also wondering if the way i built the formula can be shortened. i have now just plussed 2x COUNTIF formula's, but can this be done in another way?
    For example, is there a way to include some type of "or" statement.

    Thanks....
    Attached Files Attached Files

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: need to work on COUNTIF & COUNTIFS formulas so it Excludes certain data

    Try this formula for the first one

    =SUM(COUNTIFS(data!A:A,{"PS","PE"},data!B:B,"B",data!D:D,"<>Cancelled"))
    Audere est facere

  3. #3
    Forum Contributor
    Join Date
    12-18-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 365
    Posts
    108

    Re: need to work on COUNTIF & COUNTIFS formulas so it Excludes certain data

    works like a charm!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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