+ Reply to Thread
Results 1 to 5 of 5

Lookup to find multiple occurrences

  1. #1
    Forum Contributor
    Join Date
    02-15-2005
    Location
    Central UK
    MS-Off Ver
    Office 365
    Posts
    175

    Lookup to find multiple occurrences

    Hi and thanks for taking the time to read,

    I have been given a series of spreadsheets output from an attendance system and I need to identify how many people started at given times each day during the year (there are multipe years).

    I know I can't use VLOOKUP as this will only find the first occurance; I think that a mix of INDEX, MATCH, LOOKUP and probably a couple of others might do the trick but, to date, I just can't get me head around arrays and match & index.

    I'm sure it's an easy formula for most people ... just that I'm a bit thick! Can someone help, please?

    I've added a sample to help explain (including the hoped for output
    Attached Files Attached Files

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Lookup to find multiple occurrences

    You could use a Pivot Table with multiple consolidation ranges ( see attached)
    If you click the dropdown next to Column labels you can select the starting hour.
    Attached Files Attached Files

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,735

    Re: Lookup to find multiple occurrences

    Put 05:45 in cell A25 (or copy it from a cell that has that value), and then you can have this formula in B27:

    =COUNTIFS(B$2:B$23,$A$25,$A$2:$A$23,$A27)

    You can copy that across to H27 and then down to row 30.

    Then you can put 06:45 in A32, and this formula in B34:

    =COUNTIFS(B$2:B$23,$A$32,$A$2:$A$23,$A34)

    and copy that across and down for the next block, and so on.

    Hope this helps.

    Pete

  4. #4
    Forum Contributor
    Join Date
    02-15-2005
    Location
    Central UK
    MS-Off Ver
    Office 365
    Posts
    175

    Re: Lookup to find multiple occurrences

    Many thanks - I need to spend a bit of time on Youtube to fully understand this but the Pivot Table option seems really good (even though my skills are being pushed!)

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Lookup to find multiple occurrences

    Just remember that the " Multiple consolidation range" is directly accessible in 2003. For later versions, press Alt+D then P to get the wizard. Always a good thing to indicate your version in your info

+ 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. Replies: 6
    Last Post: 05-12-2012, 11:40 AM
  2. Replies: 3
    Last Post: 12-10-2009, 06:21 PM
  3. Using VLOOKUP to find multiple occurrences and find the Total quantity
    By susanpa in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-30-2009, 09:54 AM
  4. Replies: 4
    Last Post: 10-18-2006, 12:25 PM
  5. [SOLVED] lookup multiple occurrences of a value excel
    By ckl in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-03-2005, 02:06 AM

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