+ Reply to Thread
Results 1 to 3 of 3

Difficulty in Countif or Sumproduct function

  1. #1
    Forum Contributor Grimace's Avatar
    Join Date
    05-04-2009
    Location
    Gold Coast, Australia
    MS-Off Ver
    Excel 2013 and Office 365 Plus
    Posts
    380

    Difficulty in Countif or Sumproduct function

    Good afternoon all,

    I am trying to do a basic count in a range, however am a little brain fried and its not working.

    On attachment, column D is to list all times out of column A and B listing only unique entries (have tried to use Macro with advanced filter however not liking it being an extract).

    Column E is to be a count of how many times the break time in Column D appears.

    Any help would be appreciated.

    Thanks
    Darren.
    Attached Files Attached Files
    Last edited by Grimace; 05-06-2009 at 09:34 PM.

  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: Difficulty in Countif or Sumproduct function

    You cannot filter your data because there are empty rows within it.
    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 Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Difficulty in Countif or Sumproduct function

    I would probably go for:

    D3: =IF(D2=0,0,LOOKUP(10^10,CHOOSE({1,2},0,SMALL($A$3:$B$28,1+COUNTIF($A$3:$B$28,"<="&N($D2))))))
    copied down
    Custom Format applied to D3:Dx of: [=0]"";h:mm:ss

    E3:
    =IF(N($D3),COUNTIF($A$3:$B$28,$D3),"")
    copied down

    (Note some of your times are unique based on seconds)

+ 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