+ Reply to Thread
Results 1 to 5 of 5

Help with combining COUNTIFS and SUM FREQUENCY IF formulas

  1. #1
    Registered User
    Join Date
    11-05-2018
    Location
    Shepperton, England
    MS-Off Ver
    Office 365
    Posts
    32

    Help with combining COUNTIFS and SUM FREQUENCY IF formulas

    Hi All,

    I'm having trouble trying to figure something out.


    First, I have a COUNTIFS statement giving me the total number of unique rows which have the following criteria:
    =COUNTIFS('October by Channel'!$K:$K,Summary!AJ3,'October by Channel'!$J:$J,Summary!AJ2,'October by Channel'!$Q:$Q,Summary!$B$5)

    Problem is, there are duplicate Order numbers within this data, so I have a separate formula which is showing me unique order numbers, as follows:
    =SUM(IF(FREQUENCY('October by Channel'!A:A,'October by Channel'!A:A)>0,1))

    However, I need to somehow get the unique order numbers combined into the countifs formula.

    Can anyone help?
    Many thanks

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: Help with combining COUNTIFS and SUM FREQUENCY IF formulas

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? However, please give us an indication of the approximate number of rows of data you want the solution to work with (100, 1000, 100,000 or whatever). Please don't attach a picture of an Excel sheet (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    11-05-2018
    Location
    Shepperton, England
    MS-Off Ver
    Office 365
    Posts
    32

    Re: Help with combining COUNTIFS and SUM FREQUENCY IF formulas

    Please see attachment with highlighted cell in Yellow on Summary tab.
    Attached Files Attached Files

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: Help with combining COUNTIFS and SUM FREQUENCY IF formulas

    Cahnge October by Channel H2 to:

    =YEAR(G2)

    then use this array formula:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    DO NOT use whole column references, unless you are prepared to wait a long time... or unless you really do have 1,000,000 + rows of data.

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-05-2018
    Location
    Shepperton, England
    MS-Off Ver
    Office 365
    Posts
    32

    Re: Help with combining COUNTIFS and SUM FREQUENCY IF formulas

    You're a star, thank you so much!

+ 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. =COUNTIFS to SUM FREQUENCY MATCH
    By brybry1212 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-10-2017, 07:05 PM
  2. [SOLVED] Formula If and countifs and frequency
    By ronlau123 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-26-2017, 05:32 AM
  3. Unable to combine FREQUENCY with COUNTIFS
    By Semper.Fi.Rob in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-22-2015, 08:16 AM
  4. [SOLVED] Combining Countifs, frequency, multple Sheets
    By her.rockstar in forum Excel General
    Replies: 2
    Last Post: 03-03-2014, 07:35 AM
  5. [SOLVED] Combining CountIfS Formulas
    By Phil Hageman in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-21-2013, 09:25 AM
  6. [SOLVED] Combining COUNTIFs with SUM IF FREQUENCY MATCH to work out a total
    By acillatem in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-27-2013, 03:36 AM
  7. Combining Frequency and Countif Formulas
    By kiokeefe in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-19-2012, 08:34 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