+ Reply to Thread
Results 1 to 3 of 3

Lookup last value using a dynamic, non-named ranged

  1. #1
    Registered User
    Join Date
    08-28-2016
    Location
    Atlanta
    MS-Off Ver
    2013
    Posts
    1

    Lookup last value using a dynamic, non-named ranged

    Hello all. Appreciate your help with this.

    I'm trying to find the last available data in a dynamically sized column using the lookup function.

    =LOOKUP(2,1/(NOT(ISBLANK( '1'!Y12: (indirect(L4)))),'1'!Y12: (indirect(L4))

    The contents in indirect L4
    ="Y"&IFERROR(MATCH(A4,'1'!$C$12:$C$130,0),MATCH(A4,'1'!$C$12:$C$130,1))+12-1
    which returns a cell reference, L43

    How do I do this lookup with a dynamic range without using named ranges?

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Lookup last value using a dynamic, non-named ranged

    Hello,

    I don't quite understand how a formula that starts with ="Y"& can return L43, but in any case: Replace the L4 reference in indirect(L4) with the formula that is in L4. That won't look pretty and may be really, really hard to troubleshoot in a few weeks, once you have forgotten what you were trying to do, but you don't need a named range.

    I'd use exactly the opposite approach: Use helper colums and named ranges for everything, because that will speed up calculation and will make auditing and troubleshooting/maintenance a lot easier.

    cheers, teylyn

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Lookup last value using a dynamic, non-named ranged

    Quote Originally Posted by JayCee18 View Post
    I'm trying to find the last available data in a dynamically sized column using the lookup function.

    =LOOKUP(2,1/(NOT(ISBLANK( '1'!Y12: (indirect(L4)))),'1'!Y12: (indirect(L4))

    The contents in indirect L4
    ="Y"&IFERROR(MATCH(A4,'1'!$C$12:$C$130,0),MATCH(A4,'1'!$C$12:$C$130,1))+12-1
    which returns a cell reference, L43
    Are you saying that the LOOKUP function should evaluate like this:

    =LOOKUP(2,1/(NOT(ISBLANK('1'!Y12:L43))),'1'!Y12:L43)

    If so, that formula won't work on a 2D range.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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] Exclude values that contain text from a named ranged vba
    By L plates in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-22-2015, 04:02 AM
  2. Dynamic Named Ranged & Indirect Data Validation
    By Voluntondile in forum Excel General
    Replies: 4
    Last Post: 10-01-2014, 08:12 PM
  3. named ranged within named range
    By dluhut in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-12-2014, 01:47 PM
  4. [SOLVED] named ranged - offset & counta
    By milo1984 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-26-2014, 02:13 AM
  5. [SOLVED] AVERAGEIFS & Named Ranged Inputted Criteria
    By tskabo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-03-2014, 08:19 PM
  6. Lookup Two Named Ranged
    By yawnzzzz in forum Excel General
    Replies: 3
    Last Post: 09-24-2010, 03:10 PM
  7. Replies: 2
    Last Post: 06-01-2005, 01:05 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