+ Reply to Thread
Results 1 to 3 of 3

Dynamic Counted Range, Indirect worksheet referencing and WeekNum in one. Getting dizzy!

  1. #1
    Registered User
    Join Date
    06-22-2016
    Location
    Tokyo
    MS-Off Ver
    the latest
    Posts
    15

    Smile Dynamic Counted Range, Indirect worksheet referencing and WeekNum in one. Getting dizzy!

    Hi All,

    My issue is that I have a workbook, and I cannot alter it (so cannot add named ranges), but I am allowed to run an analysis from a single sheet within the workbook. I am having trouble due to my dynamic ranges. If you have time, perhaps you could take a look at it?

    I need to count records based on a number of criteria. For simplicity I am looking at only one criteria now. The basic formula is>

    '=SUMPRODUCT(--(WEEKNUM(--F8:F301)=WEEKNUM($D$1)))

    This works fine, but I need to make the range dynamic becuse records might be added or removed. I initilaly thought of the following, but it returns a #VALUE error>

    '=SUMPRODUCT(--(WEEKNUM(--INDIRECT($A$1&"!$F$7:$F$"&COUNTA(INDIRECT($A$1&"!B7:B10000")))=WEEKNUM($D$1))))

    This part, (INDIRECT($A$1&"!$F$7:$F$"&COUNTA(INDIRECT($A$1&"!B7:B10000")), is supposed to set my range, and it seems to return a correct looking range, but the whole formula does not work when together.

    SSH attached.

    Thanks for your help!
    chomo
    Attached Files Attached Files

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Dynamic Counted Range, Indirect worksheet referencing and WeekNum in one. Getting dizz

    =SUMPRODUCT(--(WEEKNUM(--INDIRECT($A$1&"!$F$7:$F$"&COUNTA(INDIRECT($A$1&"!B7:B10000"))))=WEEKNUM($D$1)))
    just brackets

  3. #3
    Registered User
    Join Date
    06-22-2016
    Location
    Tokyo
    MS-Off Ver
    the latest
    Posts
    15

    Re: Dynamic Counted Range, Indirect worksheet referencing and WeekNum in one. Getting dizz

    thanks a lot tim! brackets!! brackets!! Gotta sweat the small stuff hey!? cheers.

+ 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. [SOLVED] SUMPRODUCT(SUMIF(INDIRECT with Dynamic Worksheet Range
    By decipher in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-07-2014, 05:40 AM
  2. INDIRECT not referencing named range which exists on another sheet
    By rikkyshh in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-30-2014, 06:55 AM
  3. [SOLVED] Indirect function, referencing another worksheet
    By dowell89 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-24-2013, 05:38 AM
  4. Indirect referencing Worksheet with space in the name
    By HULK_SMASH in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-18-2013, 02:26 PM
  5. Indirect Worksheet Function Referencing Another Worksheet
    By Larry.LeBlanc@O in forum Excel General
    Replies: 1
    Last Post: 11-13-2009, 05:51 PM
  6. WEEKNUM to dynamic range name
    By additude in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-23-2006, 03:12 PM
  7. Indirect Range Referencing
    By jeaton in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 02-10-2006, 10:25 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