+ Reply to Thread
Results 1 to 6 of 6

COUNTIF or COUNTIFS with multiple criteria

  1. #1
    Forum Contributor
    Join Date
    09-02-2013
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    368

    COUNTIF or COUNTIFS with multiple criteria

    Hello everyone,

    I would like to require some help from you please. Attached is a simple workbook with a 5 column data. The purpose of the the function is to calculate the total number of new order, new customer and amount received for a given reporting period.

    I did manage to get the total of new order and amount paid but somehow I get stuck in getting the correct figure for the total number of new customer. As per the example only Sultro LTD is the new customer since Dimat LTS came on board the month before so should not be counted more than once. I thought using SUMPRODUCT may help but alas it didn't achieve the intended result.

    Can you help please?

    Much appreciated.
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,860

    Re: COUNTIF or COUNTIFS with multiple criteria

    How do you distinguish a new customer from an existing customer. Excel needs to know what the criteria is for a new customer.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Contributor
    Join Date
    09-02-2013
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    368

    Re: COUNTIF or COUNTIFS with multiple criteria

    For this instance it is the postcode as it is unique normally.

  4. #4
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: COUNTIF or COUNTIFS with multiple criteria

    First i sorted your data by Order Period.
    Then i added a count function in column A that you can hide if you want.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Then i added another count formula in N5 for your answer.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    <----- If you are happy with your solution please click on the "* Add Reputation" as a way to say thank you.

  5. #5
    Forum Contributor
    Join Date
    09-02-2013
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    368

    Re: COUNTIF or COUNTIFS with multiple criteria

    I guess the procedure is will be something like:
    - count how many customers first for the reporting period
    - then check if the postcode is not duplicated
    - The result would be: those non-duplicated emails where the order period is 01/12/2019

    Not sure whether this makes sense

  6. #6
    Forum Contributor
    Join Date
    09-02-2013
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    368

    Re: COUNTIF or COUNTIFS with multiple criteria

    Thanks dosydos. This has done it. Awesome!

    I have one question though. Can we integrate this formula within the N5 formula?

+ 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] Using Multiple Criteria With Countif or Countifs Formula
    By kozakb in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-15-2019, 06:37 PM
  2. [SOLVED] Countifs multiple criteria- criteria if cell is greater than another i adjacent column
    By Sircool1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-26-2018, 11:23 AM
  3. Countif and countifs totals across multiple sheets
    By ish.salamanca in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-11-2017, 12:51 AM
  4. Countifs with multiple criteria in single criteria range
    By SUHAS KARHADKAR in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 12-01-2016, 10:55 AM
  5. [SOLVED] countifs statement with multiple criteria for multiple criteria ranges
    By mcdermott2 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-07-2015, 11:48 AM
  6. [SOLVED] Struggling to build count/countif/countifs formula with various comparative criteria!
    By dropanddrive03 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-16-2014, 03:04 AM
  7. [SOLVED] Countifs with multiple criteria and one criteria has a list of names
    By Beefy1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-30-2014, 05:25 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