+ Reply to Thread
Results 1 to 8 of 8

Formula needed to determine number of quarters in year/country combination per customer

  1. #1
    Registered User
    Join Date
    01-28-2014
    Location
    Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    55

    Formula needed to determine number of quarters in year/country combination per customer

    Hi there, I hope someone can help me out.....!

    Please have a look at the attached file.
    In a list of customer files I like to determine,
    only for Y cells, how many Q cells can be found for a specific Y/country code combination.
    Example:
    How many Q can be found for customer 13001 and countrycode 6. Answer = 2.

    Is there a formula that solve the problem?

    Rgds, Robert
    Attached Files Attached Files

  2. #2
    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: Formula needed to determine number of quarters in year/country combination per custome

    try this formula... =COUNTIFS(D:D,"Q",E:E,6,C:C,13001)
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Contributor
    Join Date
    06-30-2015
    Location
    Netherlands
    MS-Off Ver
    2013 / 2016 / 365
    Posts
    145

    Re: Formula needed to determine number of quarters in year/country combination per custome

    Hi,

    Small addition to response to cover the Y condition mentioned by OP
    try this in cell G11 and copy up or down according to need:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Formula needed to determine number of quarters in year/country combination per custome

    Try
    G3=IF(D3="Y",COUNTIFS($C$3:C3,$C3,$D$3:D3,"Q",$E$3:E3,$E3),"") and drag down.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  5. #5
    Registered User
    Join Date
    01-28-2014
    Location
    Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    55

    Re: Formula needed to determine number of quarters in year/country combination per custome

    Hi Joris, this works fine! Thanks very much

  6. #6
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Formula needed to determine number of quarters in year/country combination per custome

    G3
    Please Login or Register  to view this content.
    Try the above formula and copy towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  7. #7
    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: Formula needed to determine number of quarters in year/country combination per custome

    after rereading your request I wonder if this might be a better formula if your list is longer and includes periods where there is no "Y".
    =IF(COUNTIFS(C:C,13001,D:D,"y")>0,COUNTIFS(C:C,13001,D:D,"q",E:E,6),"")

  8. #8
    Forum Contributor
    Join Date
    06-30-2015
    Location
    Netherlands
    MS-Off Ver
    2013 / 2016 / 365
    Posts
    145

    Re: Formula needed to determine number of quarters in year/country combination per custome

    Hi Robert,

    Your welcome, i really appreciate if you would click *Add Reputation and don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved) if the solution is to your satisfaction.

+ 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 to calculate number of days per year a customer is a member
    By Even in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-12-2014, 11:07 AM
  2. Excel formula sumarizing items over quarters of year
    By Scubed in forum Excel Formulas & Functions
    Replies: 24
    Last Post: 09-17-2014, 12:55 PM
  3. Replies: 2
    Last Post: 11-18-2013, 12:22 PM
  4. Good lookups for quarters, year, and year to date
    By amartino44 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-06-2013, 03:41 PM
  5. [SOLVED] Formula to determine monthly cash flow based on customer contract length
    By Wedge120 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-31-2013, 08:42 PM
  6. Transpose Quarters from Calendar Year to Fiscal Year
    By jodiander in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-25-2013, 01:00 PM
  7. how do I convert a dates in a year quarters in a year?
    By Linndek in forum Excel General
    Replies: 5
    Last Post: 05-11-2006, 10:35 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