+ Reply to Thread
Results 1 to 4 of 4

Formula Problem with count under conditions within date range

Hybrid View

  1. #1
    Registered User
    Join Date
    08-24-2010
    Location
    Dublin,Ireland
    MS-Off Ver
    Excel 2003
    Posts
    7

    Formula Problem with count under conditions within date range

    Hi guys

    I am trying to work out a formula but need some help

    In a sheet called Closed Requests I have data like this

    Item Number Recieved Date Actual Delivery Date Due Date Type
    0030 25 May 2010 01 June 2010 13 June 2010 HC
    0032 27 May 2010 01 June 2010 05 June 2010 HC
    0034 27 May 2010 01 June 2010 30 May 2010 CR
    0035 28 May 2010 02 June 2010 07 June 2010 HC
    0041 02 June 2010 02 June 2010 03 June 2010 CR
    0039 01 June 2010 03 June 2010 11 June 2010 HC
    0036 31 May 2010 04 June 2010 15 July 2010 HC
    0027 17 May 2010 09 June 2010 13 June 2010 CR
    0040 02 June 2010 10 June 2010 13 June 2010 HC
    0029 25 May 2010 11 June 2010 13 June 2010 HC
    0046 07 June 2010 16 June 2010 07 July 2010 CR
    0047 08 June 2010 16 June 2010 07 July 2010 CR

    And on my calcutaion sheet title Weekly Figures I have

    Start Date End Date
    10/05/2010 16/05/2010
    17/05/2010 23/05/2010
    24/05/2010 30/05/2010


    What I am looking to do is count the number of CR, HC , PR requests between a particular date range specified on the other sheet.

    I can get a general count ok by using

    =SUMPRODUCT(('Closed Requests'!B16:'Closed Requests'!B238>B18)*('Closed Requests'!B16:'Closed Requests'!B238<C18))

    but I cannot seem to get the same count with an arguement that the value must equal CR, HC , PR .

    Any ideas or am I just completely off ?

    Thanks,
    txt_mess

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

    Re: Formula Problem with count under conditions within date range

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!

    I would think a PivotTable would be the best way
    Hope that helps.

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

    Free DataBaseForm example

  3. #3
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,977

    Re: Formula Problem with count under conditions within date range

    =SUMPRODUCT(('Closed Requests'!B16:B238>B18)*('Closed Requests'!B16:B238<C18)*('Closed Requests'!E16:E238="HC"))
    for example.
    Everyone who confuses correlation and causation ends up dead.

  4. #4
    Registered User
    Join Date
    08-24-2010
    Location
    Dublin,Ireland
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Formula Problem with count under conditions within date range

    Thansk very much the formula made sense and more importantly worked ,

    Cheers,
    Ciaran

+ 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