+ Reply to Thread
Results 1 to 5 of 5

Dynamic Range With Countif and Offset

  1. #1
    Registered User
    Join Date
    06-12-2015
    Location
    Wolverhampton, England
    MS-Off Ver
    2007
    Posts
    19

    Dynamic Range With Countif and Offset

    Hi all.

    I am hoping someone can help me with the attached problem. I analyse data for a call centre, and although the staff turnover is incredibly low for this line of work, it still causes me headaches through laborious manual updates. My goal is to be able to enter a month in a particular cell, and have the names of the staff who were present that month pre-populate. I have this working via named ranges on tab one, but unfortunately have to have a separate list for each month, which defeats the object somewhat. What I really require is some kind of dynamic named range using countif and offset. This would look up every entry of the desired month and select the name adjacent to it as being in the range. My formula for in column F on the first tab would then do the rest.

    Thanks for reading and any help is, as always, massively appreciated.

    Kind regards,

    James
    Attached Files Attached Files

  2. #2
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Dynamic Range With Countif and Offset

    Try with below.
    in "I4" & copy down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  3. #3
    Registered User
    Join Date
    06-12-2015
    Location
    Wolverhampton, England
    MS-Off Ver
    2007
    Posts
    19

    Re: Dynamic Range With Countif and Offset

    Thanks for your suggestion avk, but unfortunately if you change the month to Nov, it no longer works.

  4. #4
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: Dynamic Range With Countif and Offset

    FYI - You can't reference dynamic named range via INDIRECT function.

    There are several methods that can be used here.

    1. Pivot Table with filter.
    2. Advanced filter with small VBA
    3. Formula (might not be ideal, depending on data size)

    See attached for sample set up for all 3 methods.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-12-2015
    Location
    Wolverhampton, England
    MS-Off Ver
    2007
    Posts
    19

    Re: Dynamic Range With Countif and Offset

    Thanks CK76. That formula looks to be exactly what I needed. Many thanks

+ 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. OFFSET, COUNTA or SHOULD BE COUNTIF Function for dynamic range for Chart
    By ahteddy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-24-2015, 10:50 AM
  2. Offset and Countif with dynamic Range
    By JKK123 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-22-2013, 12:15 AM
  3. Dynamic Range using Offset, range not found for Pivot
    By GoneBaja in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-08-2012, 09:19 AM
  4. dynamic range and offset
    By ramzesm in forum Excel General
    Replies: 2
    Last Post: 03-26-2012, 03:17 PM
  5. Dynamic Range using Offset and CountIF
    By mark_jam3s in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-04-2008, 11:43 AM
  6. Offset, Dynamic range, Countif
    By Bryce in forum Excel General
    Replies: 3
    Last Post: 10-26-2005, 08:05 AM

Tags for this Thread

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