+ Reply to Thread
Results 1 to 10 of 10

Count Formula based on criteria

  1. #1
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,689

    Count Formula based on criteria

    Hi,

    I need some help with a formula that will count the number of projects in a particular week and month.

    On the attached when the current week number is entered I would like a formula to count the number of UNIQUE projects occurring in that week based on the data table. The data table displays the days on the project so if it is more than zero then assume the project is being worked on.

    I then need a similar formula which will count the number of UNIQUE projects in a month.

    I have highlighted the word unique as say for example in week 2 and 5 (both November months) the count would be 1 as this is the same project in the example (Project 8).

    Can anyone help please?

    I have attached an example along with the desired results required.

    Paul
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    08-06-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: Count Formula based on criteria

    I've added in some additional rows to save doing an array formula and slowing the whole thing down.

    Let me know if you need anything else and if I've helped please give my reputation star a click

    Cheers
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,689

    Re: Count Formula based on criteria

    Hi

    Ideally I do not want to use helper rows but will if I have to.

    The formula is summing but I would like it to count (but only count unquite projects). Does that make sense?

  4. #4
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Count Formula based on criteria

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


    for For D3 Row(41), Row(17) should be updated based on your data one time

    Punnam

  5. #5
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,689

    Re: Count Formula based on criteria

    Hi,

    That worked great for the current week count - thank you!

    Would anyone be able to help with the monthly count formula - the red cells.
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Count Formula based on criteria

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Ctrl+Shift+Enter after copying the Formula
    try this in D8 may be lengthy one
    Thanks for the feed back & reps

    Punnam
    Attached Files Attached Files

  7. #7
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,689

    Re: Count Formula based on criteria

    Hi,

    Its close!

    It doesnt work for November as it gives a result of 10, it should be 7. This is because it only needs to count unique projects. e.g. The formula would count project 3 in november 3 times but I only need this to say 1.

    Is it possible?
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Count Formula based on criteria

    Hi pauldaddyadams

    I need some time work on this

    Punnam

  9. #9
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,689

    Re: Count Formula based on criteria

    Hi,

    Thanks Punnam

    Can anyone help with this formula to put me out of my misery?

  10. #10
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,689

    Re: Count Formula based on criteria

    Hi,

    I need to add an IF statement...

    I have made some progrees with this - this array formula works:
    =SUM(IF(FREQUENCY(IF($D$16:$D$40>0,IF(C16:C40<>"",MATCH(C16:C40,C16:C40,0))),ROW(C16:C40)-ROW(C16)+1),1))


    However I have to change the range to reflect the month. Is there any way I can add to the formula to match the month. I have read here:

    HTML Code: 
    That it can be done but I can not get it to work.

    Its the red cells on the attached
    Attached Files Attached Files

+ 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. Help, Formula to count based on multiple criteria
    By DKerr in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-07-2013, 02:37 PM
  2. [SOLVED] Formula Needed to count a range of cells based on criteria in 2 other cells
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-01-2013, 04:06 PM
  3. Formula to count Unique text based on multiple criteria
    By OAMPS in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-14-2012, 10:48 AM
  4. [SOLVED] Formula to Count based on Mult Criteria
    By stait in forum Excel General
    Replies: 3
    Last Post: 04-26-2012, 08:06 AM
  5. Formula to count date difference based on a criteria
    By athey87 in forum Excel General
    Replies: 3
    Last Post: 03-09-2012, 05:11 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