+ Reply to Thread
Results 1 to 8 of 8

COUNTIFs with 2 or more criteria

  1. #1
    Registered User
    Join Date
    12-14-2009
    Location
    Nottingham
    MS-Off Ver
    Microsoft D365
    Posts
    93

    COUNTIFs with 2 or more criteria

    Hi all, wondered if you could help. On the attached spread sheet in C4 of the values tab i need to count the number of unique values (no duplicates) in col F of the date drop tab based on the date in D4 looking at the dates in col H of the date drop tab.

    I've probably not best expalined but the knida formula i'm after is

    For C4 Count the number of unique referances (no duplicates) in col d data drop if the date in col H date drop is less than the date in D4

    For C5 Count the number of unique referances in col d data drop if the date in col H data drop is equal to or greater than the date in D5 but less less than the date in E5

    I take it i will then be able to copy down to get the rest?
    Attached Files Attached Files
    Last edited by Notters; 10-18-2010 at 07:36 AM.

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: COUNTIFs with 2 or more criteria

    No attachment!

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: COUNTIFs with 2 or more criteria

    You have a few choices - you mention Col F as being source of unique values initially and then revert to Col D in your latter explanation - I've assumed you mean Col F.

    Please Login or Register  to view this content.
    In both of the above adjust ranges as necessary but given you're using an Array try to keep as lean as possible.

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: COUNTIFs with 2 or more criteria

    I don't see how the sample file (just) added relates to those ranges & sheet references outlined in your question.

    I would suggest posting a sample that better reflects the actual requirements (per OP)
    Last edited by DonkeyOte; 09-29-2010 at 10:09 AM. Reason: reworded

  5. #5
    Registered User
    Join Date
    12-14-2009
    Location
    Nottingham
    MS-Off Ver
    Microsoft D365
    Posts
    93

    COUNTIFs with 2 or more criteria

    Hi all, wondered if you could help. On the attached spread sheet in C4 of the values tab i need to count the number of unique values (no duplicates) in col F of the date drop tab based on the date in D4 looking at the dates in col H of the date drop tab.

    I've probably not best explained but the kinda formula I’m after is

    For C4 Count the number of unique references (no duplicates) in col d data drop if the date in col H date drop is less than the date in D4

    For C5 Count the number of unique references in col d data drop if the date in col H data drop is equal to or greater than the date in D5 but less than the date in E5

    I take it i will then be able to copy down to get the rest?
    Attached Files Attached Files

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: COUNTIFs with 2 or more criteria

    Why have you posted this to a new thread rather than continuing with the pre-existing ?

    You've since denoted the earlier thread as Solved (which it is not) and reposted the question albeit with better sample (as requested)...

    http://www.excelforum.com/excel-gene...-criteria.html

  7. #7
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: COUNTIFs with 2 or more criteria

    Threads merged
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  8. #8
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: COUNTIFs with 2 or more criteria

    @Roy, thanks

    @Notters, per the PM you stated that the Arrays were not returning the correct results.

    Can you perhaps outline what the results should be in your sample ?

    Using the previously mentioned arrays (with ranges revised to account for sheetname & additional rows) the values returned would be:

    C4: 37
    C5: 118
    C6: 80
    C7: 129
    Last edited by DonkeyOte; 09-30-2010 at 02:09 PM.

+ 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