+ Reply to Thread
Results 1 to 7 of 7

HELP! Counting number of items based on criteria and date

  1. #1
    Registered User
    Join Date
    07-22-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    20

    HELP! Counting number of items based on criteria and date

    Hello Everyone,

    I'm a newbie. I'm hoping that somebody can help me enter a formula on the attached workbook to count the number of Unique Categories of the Process which occurred on or after the specified date. Duplicate items should not be counted.

    Thanks in Advanced
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: HELP! Counting number of items based on criteria and date

    I was try to write a formula to refer all column , but it's take too long for calculation.
    So, I have to limited the calcuation range by help of INDIRECT function.

    G4
    =LOOKUP(2,1/(A:A<>0),ROW(A:A))
    This formula is use for find the last row of column A.

    F5
    =SUM(IFERROR(1/COUNTIFS(INDIRECT("A1:A"&G4),">="&$F$3,INDIRECT("B1:B"&G4),$F$4,INDIRECT("C1:C"&G4),INDIRECT("C1:C"&G4)),0))
    And press Ctrl-Shift-Enter for making it to ARRAY Formula.


    Regards.

  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: HELP! Counting number of items based on criteria and date

    Please try at F5

    =COUNT(1/FREQUENCY(IF((A2:A14>F3)*(B2:B14=F4),MATCH(C2:C14,C2:C14,)),ROW(C1:C14)))

    Press Ctrl+Shift+Enter

  4. #4
    Registered User
    Join Date
    07-22-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: HELP! Counting number of items based on criteria and date

    Quote Originally Posted by menem View Post
    I was try to write a formula to refer all column , but it's take too long for calculation.
    So, I have to limited the calcuation range by help of INDIRECT function.

    G4
    =LOOKUP(2,1/(A:A<>0),ROW(A:A))
    This formula is use for find the last row of column A.

    F5
    =SUM(IFERROR(1/COUNTIFS(INDIRECT("A1:A"&G4),">="&$F$3,INDIRECT("B1:B"&G4),$F$4,INDIRECT("C1:C"&G4),INDIRECT("C1:C"&G4)),0))
    And press Ctrl-Shift-Enter for making it to ARRAY Formula.


    Regards.
    Wowwww! This is working!
    You are a Master!
    Thanks for helping! Appreciate it!

  5. #5
    Registered User
    Join Date
    07-22-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: HELP! Counting number of items based on criteria and date

    Quote Originally Posted by Bo_Ry View Post
    Please try at F5

    =COUNT(1/FREQUENCY(IF((A2:A14>F3)*(B2:B14=F4),MATCH(C2:C14,C2:C14,)),ROW(C1:C14)))

    Press Ctrl+Shift+Enter
    Also working but i'm having an incorrect count when I'm changing the dates. Thanks for helping! I appreciate it!

  6. #6
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: HELP! Counting number of items based on criteria and date

    How about add equal sign

    =COUNT(1/FREQUENCY(IF((A2:A14>=F3)*(B2:B14=F4),MATCH(C2:C14,C2:C14,)),ROW(C1:C14)))

    Press Ctrl+Shift+Enter

  7. #7
    Registered User
    Join Date
    07-22-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: HELP! Counting number of items based on criteria and date

    Quote Originally Posted by Bo_Ry View Post
    How about add equal sign

    =COUNT(1/FREQUENCY(IF((A2:A14>=F3)*(B2:B14=F4),MATCH(C2:C14,C2:C14,)),ROW(C1:C14)))

    Press Ctrl+Shift+Enter
    This is now working PERFECTLY!!! Awesome exactly what I needed. Super Thanks!!!

+ 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. Counting Items Issued Based on a Date Range
    By ciaron178 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-21-2019, 06:45 AM
  2. [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
  3. Trying to find out the number of unique items based on criteria
    By Winnette in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-03-2019, 12:34 PM
  4. Counting number of cells with multiple time and date criteria
    By jamesywilkinson in forum Excel General
    Replies: 5
    Last Post: 12-05-2017, 09:51 AM
  5. [SOLVED] Counting the number items based on number of days
    By Ltat42a in forum Excel General
    Replies: 6
    Last Post: 10-29-2014, 07:11 PM
  6. Counting unique items on a list based on date in adjacent column
    By Mafoo17 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-30-2013, 04:24 PM
  7. [SOLVED] Counting number of items based on two columns
    By lukka in forum Excel General
    Replies: 3
    Last Post: 04-18-2012, 05:14 AM

Tags for this Thread

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