+ Reply to Thread
Results 1 to 6 of 6

Named Dynamic Range and Countifs formula

  1. #1
    Registered User
    Join Date
    04-07-2016
    Location
    Lincoln
    MS-Off Ver
    2010
    Posts
    27

    Named Dynamic Range and Countifs formula

    Good evening all,

    I am having an issue with a formula. I need to count the blank cells in a column which is determined by the length of a different column (data is being extracted from a database), so I have added an offset into the refers to in name manager. This works absolutely fine for all formula that calculate on the range using SUMIF and SUM, but when I try to include it in a Countifs formula I am getting a #!Value error.

    Can anyone point me in the right direction. I have attached the spreadsheet. The errors are showing in cells P22:P27, and the range that I have (attempted) to make dynamic is called SEN.

    Any help would be gratefully appreciated!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    05-08-2015
    Location
    Uvalde, TX
    MS-Off Ver
    2010
    Posts
    720

    Re: Named Dynamic Range and Countifs formula

    Hi,

    You are using Dynamic Named Range (DNR) for "SEN" which automatically determines the size of the array.
    You are not using a DNR for your "percentatt". There for the two arrays are different lengths.

    Use this DNR formula for your "percentatt".

    Please Login or Register  to view this content.
    Hope that makes sense and works for you.

    Cheers

  3. #3
    Registered User
    Join Date
    04-07-2016
    Location
    Lincoln
    MS-Off Ver
    2010
    Posts
    27

    Re: Named Dynamic Range and Countifs formula

    Hi Southward

    Thank you very much for coming back to me so quickly!! I've made the change that you suggested, which works absolutely fine for the "SEN" rows but unfortunately it throws out all of the other formulae in the <90 percent columns!
    I then tried putting the same offset into all of the other named ranges being used, but that completely skewed the data for some reason!

    Any more ideas?

    Ali

  4. #4
    Valued Forum Contributor
    Join Date
    05-08-2015
    Location
    Uvalde, TX
    MS-Off Ver
    2010
    Posts
    720

    Re: Named Dynamic Range and Countifs formula

    Did you modify the DNR that I provided so that it recognizes the correct column in the "student data" sheet?

    Attached is a version of your file with updated DNR's.

    Cheers
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-07-2016
    Location
    Lincoln
    MS-Off Ver
    2010
    Posts
    27

    Re: Named Dynamic Range and Countifs formula

    Hi Southward,

    You are amazing!! Thank you so much, the spreadsheet is working perfectly now.

  6. #6
    Valued Forum Contributor
    Join Date
    05-08-2015
    Location
    Uvalde, TX
    MS-Off Ver
    2010
    Posts
    720

    Re: Named Dynamic Range and Countifs formula

    You are very welcome. Glad I could be of some assistance.

    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. Replies: 0
    Last Post: 03-08-2016, 02:25 PM
  2. [SOLVED] COUNTIFS or COUNTIF using a Named Range not working
    By drewship in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-21-2016, 11:15 AM
  3. Dynamic Named Range that reads formula results
    By jeremycmetcalfe in forum Excel General
    Replies: 4
    Last Post: 09-18-2015, 03:21 PM
  4. Remove Blanks With Dynamic Named Range - Error with the formula
    By Tepsjen in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-23-2014, 05:34 PM
  5. [SOLVED] COUNTIFS - Criteria based on a named range.
    By paularthur90 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-16-2014, 09:24 AM
  6. Dynamic Named Range, COUNTIFs & VLookups
    By pmd in forum Excel General
    Replies: 7
    Last Post: 05-31-2010, 08:57 AM
  7. Named ranges-Should I use a dynamic named range
    By foseco in forum Excel General
    Replies: 4
    Last Post: 06-11-2009, 03:56 PM

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