+ Reply to Thread
Results 1 to 6 of 6

Dynamic Named Ranges

Hybrid View

sandy1977 Dynamic Named Ranges 10-04-2018, 02:44 PM
FlameRetired Re: Dynamic Named Ranges 10-05-2018, 12:30 AM
sandy1977 Re: Dynamic Named Ranges 10-05-2018, 12:58 AM
FlameRetired Re: Dynamic Named Ranges 10-05-2018, 06:38 PM
sandy1977 Re: Dynamic Named Ranges 10-06-2018, 07:54 AM
FlameRetired Re: Dynamic Named Ranges 10-07-2018, 11:13 AM
  1. #1
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2502
    Posts
    13,700

    Re: Dynamic Named Ranges

    But here is my problem, I'm having trouble trying to get my named range function created - thanks to Gabhan Berry - ("GreaterThan") to work since my Dynamic Named Range (the "client" column) contains blank rows, and when I try to reference it within a formula it doesn't work. I've also tried a function - created by Jon Acampora - called "FindLast"
    The formula I see for Clients
    Formula: copy to clipboard
    =OFFSET(Sheet2!$B$2,1,0,COUNTA(Sheet2!$B:$B)-1)
    would have that drawback with respect to blank rows. Though very popular I've never been a fan of COUNTA constructions in DNRs for that very reason.

    Try this alternative for text DNRs.
    Formula: copy to clipboard
    =$B$3:INDEX($B:$B,MATCH("zzzzzz",$B:$B,1))
    It will always match on the last row of data even if there are blanks in the range. Please note that the match type is 1 for approximate match.

    If you should ever have occasion to need a DNR for numbers
    Formula: copy to clipboard
    =$B$3:INDEX($B:$B,MATCH(1E+306,$B:$B,1))


    I've never seen or Googled Jon Acampora's - "FindLast". Perhaps it's the same formula.


    I hope this helps.
    Dave

  2. #2
    Registered User
    Join Date
    08-23-2014
    Location
    Miami, USA
    MS-Off Ver
    365
    Posts
    69

    Re: Dynamic Named Ranges

    Excellent Dave, that does the trick for my named ranges.

    Would you know how would I go about adding the values in a "Pay Per Client - Monthly" named range when there is a match in the "Client" named range so that I can calculate the profit per client selected? I was trying to use the SUMIF function:

    =SUMIF(Clients,"*"&H4&"*",PayPerClient) - It would add all employees that are being paid for that working for that client.

    This gives me a "0" value. Is this because my named ranges have text, numbers and blanks?

+ 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. Copy values of all named range in wb1 to identically named ranges in wb2
    By JAMIAM in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-24-2016, 06:58 PM
  2. [SOLVED] VBA creates named ranges, but named ranges disappear
    By BrotherNeptune in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-05-2015, 03:22 PM
  3. Define only 2 named ranges from a list of named ranges...
    By abhi900 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-29-2014, 04:20 AM
  4. Looping Mutliple Named Resized Ranges in next empty row below another named range
    By gingumdog in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-19-2014, 08:15 PM
  5. [SOLVED] Determining if the value of a cell can be a named range, then assigning named ranges after
    By Romulo in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-15-2013, 06:05 PM
  6. Copy data in named ranges to a newer version of the same template to identical ranges
    By handstand in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-21-2006, 10:51 AM
  7. Replies: 1
    Last Post: 03-21-2006, 06:40 PM

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