+ Reply to Thread
Results 1 to 6 of 6

trying to create nested formula using address match vlookup

  1. #1
    Registered User
    Join Date
    03-29-2014
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    2

    Question trying to create nested formula using address match vlookup

    I'm trying to create a formula that I can use to reference a cells. Not getting this to work, any help would be appreciated

    =MIN((ADDRESS(MATCH(VLOOKUP(A47837-1,A:A,1,FALSE),A:A,0)+10,16)):(ADDRESS(MATCH(VLOOKUP(A47837,A:A,1,FALSE),A:A,0)-1,16)))

    Individually the formula =(ADDRESS(MATCH(VLOOKUP(B47837-1,B:B,1,FALSE),B:B,0)+10,16)) and =(ADDRESS(MATCH(VLOOKUP(B47837,B:B,1,FALSE),B:B,0)-1,16)) work to provide the cells references.

    $P$44057
    $P$47836

    cell A44047 = a date/time 27/3/2014 23:59:59
    cell A47837 = a date/time 28/3/2014 23:59:59

    cells A44047 thru A47837 are dated 28/3/2014 and are time stamped from midnight increasing in by the minute

    cells P44057 thru P47837 are date stamped cells representing the start and finish times for the power production of my solar panels.

    manual formula reads =MIN(P44057:P47836)

    Thanks, John

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,718

    Re: trying to create nested formula using address match vlookup

    You have to convert the results of your MATCH to a cell reference. Here is the minimal change needed:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Here is a re-engineered version that avoids the duplicated VLOOKUP(MATCH calls
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Not feasible to test without your data.

    Why your original version doesn't work:

    ADDRESS produces a string, not a cell reference. You can't use ADDRESS in the same place you would use a cell reference. That is,
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    is not the same as
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The latter is equivalent to
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    which is a syntax error.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: trying to create nested formula using address match vlookup

    maybe just
    =MIN(INDEX(P:P,MATCH(B47837-1,B:B,0)+10):INDEX(P:P,MATCH(A47837,A:A,0)-1))
    as you already have the row number you don't need to look it up again
    MATCH(VLOOKUP(A47837-1,A:A,1,FALSE),A:A,0) is the same as
    MATCH(A47837-1,A:A,0)
    Last edited by martindwilson; 03-29-2014 at 09:34 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    03-29-2014
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: trying to create nested formula using address match vlookup

    Jeff,

    Thanks for that option 1 works a treat. Option 2 came up with the data for the wrong date.

    Again thanks

    John

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: trying to create nested formula using address match vlookup

    you hardly ever need address or offset as index will mostly do it

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,718

    Re: trying to create nested formula using address match vlookup

    FWIW martindwilson has the best solution here--in this case VLOOKUP is superfluous.

+ 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. Using a ADDRESS/MATCH with VLOOKUP to find a value in a table
    By stturn in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-05-2013, 02:42 PM
  2. Nested VLookup, Match Formula Help Needed
    By jealkon in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-08-2013, 02:18 PM
  3. Excel 2007 : Nested IF, Vlookup and Match, or?
    By Helal in forum Excel General
    Replies: 4
    Last Post: 12-03-2011, 12:40 AM
  4. Nested Vlookup & Match
    By Helal in forum Excel General
    Replies: 3
    Last Post: 03-06-2011, 07:00 PM
  5. Nested index, vlookup and match
    By Maddyv in forum Excel General
    Replies: 4
    Last Post: 02-02-2010, 02:51 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