+ Reply to Thread
Results 1 to 3 of 3

dynamic range (table_array) in vlookup formule

  1. #1
    Registered User
    Join Date
    10-11-2010
    Location
    Milan, Italy
    MS-Off Ver
    Excel 2003
    Posts
    2

    dynamic range (table_array) in vlookup formule

    Hi everybody
    I’ve a big trouble but maybe, for your, is an easy trouble.

    I’m working on excel2003.
    I’ve to compare two values, in the same pivot table, using vlookup.
    My problem is that, the table_array, must be dynamic.
    Sometimes the range is: SheetTest!$Q$1:$R$10; other times, could be
    !$Q$70:$R$100 or other..
    How can I create dinamically the range “SheetTest!$Q$1:$R$10” in the
    VLOOKUP formule?
    I tried to use =INDIRECT(“SheetTest!$Q$1);
    The problem is how to write the “:” ecc…
    VLOOKUP(“test”; INDIRECT(“SheetTest!” & $Q$1): INDIRECT(“SheetTest!” &
    $Q$1)…..
    But it’s wrong.
    How can I do?
    Many thanks
    Carlo

    The pivot table has structured so:

    param1
    value1.a value1.b value1.c
    value2.a value2.b value2.c
    param2
    value1.a value1.b value1.c
    value2.a value2.b value2.c


    I’m using the vlookup to take value for the param2

    Many Thanks!
    cg

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: dynamic range (table_array) in vlookup formule

    If it is the DataBodyRange that is altering why not use GETPIVOTDATA rather than VLOOKUP ?

  3. #3
    Registered User
    Join Date
    10-11-2010
    Location
    Milan, Italy
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: dynamic range (table_array) in vlookup formule

    Quote Originally Posted by DonkeyOte View Post
    If it is the DataBodyRange that is altering why not use GETPIVOTDATA rather than VLOOKUP ?

    Thanks, you've just solved my problem!
    Many thanks!
    cg

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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