+ Reply to Thread
Results 1 to 5 of 5

using ADDRESS in VLOOKUP

  1. #1
    Registered User
    Join Date
    02-12-2017
    Location
    Toronto
    MS-Off Ver
    2007
    Posts
    3

    using ADDRESS in VLOOKUP

    I have a multiple foreign exchange (FX) master sheet from which I want to draw some summary information and put it in a separate summary worksheet according to various currencies; USD or EUR or JPY etc

    The first 21 columns of the master file are the data columns.

    To the right of the “21 data columns” I have a repeating blocks of 38 columns. Each of the different 38 column blocks pulls the same info from the first 21 columns but have to handle each currency separately.

    What I want to do is grab only a few columns of info from the master sheet and put them in the summary worksheet.

    I know how to find which column that USD is in by using a hlookup, so I can figure out my starting point. From there the vlookup table array will start 18 columns over. It will always start on the 5th line. So using the Address function I can figure out the upper left of the table array. I also know the array will be 21 columns wide from the starting point, and it will be 300 rows deep; so I can figure out the lower right address of the array. Each table array I need will be the same size but have a different starting point.

    What I don’t know is
    1. how to put all this into a Vlookup so it can read the addresses I have determined and
    2. how to make it look in another worksheet.

    So far I have tried the following;

    =VLOOKUP(E4,ADDRESS(5,HLOOKUP(F1,'FX PL Calc'!1:3,ROW('FX PL Calc'!A3)-ROW('FX PL Calc'!A1)+1,FALSE)+17,1,1,"FX PL Calc")&":"&ADDRESS(300,HLOOKUP(F1,'FX PL Calc'!1:3,ROW('FX PL Calc'!A3)-ROW('FX PL Calc'!A1)+1,FALSE)+37,1,1),6,FALSE)

    The addresses give the following
    =VLOOKUP(E4,{"'FX PL Calc'!$AP$5"}&":"&{"$BJ$300"},6,FALSE)

    When I take a look at the Function Arguments window it is the table array it can’t read.

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: using ADDRESS in VLOOKUP

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Quang PT

  3. #3
    Registered User
    Join Date
    02-12-2017
    Location
    Toronto
    MS-Off Ver
    2007
    Posts
    3

    Re: using ADDRESS in VLOOKUP

    I will do that. I think my description was a bit long winded. it will take a day or so to do so.

    thanks for getting back so quickly

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: using ADDRESS in VLOOKUP

    Just few rows of example, i think.

  5. #5
    Registered User
    Join Date
    02-12-2017
    Location
    Toronto
    MS-Off Ver
    2007
    Posts
    3

    Re: using ADDRESS in VLOOKUP

    Turns out the following works very nicely

    VLOOKUP($E5,INDIRECT(CONCATENATE(H$1,":",J$1)),6,FALSE))

    where H$1 and J$1 are addresses using the ADDRESS function.

    bebo021999, sincere thanks for your reply.

    I knew I was close and just kept trying things until it finally took.

    Again many thanks

+ 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. Vlookup with Cell.address
    By Joaoack in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-14-2012, 02:22 PM
  2. Address Information VLOOKUP
    By alanpw in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 10-08-2010, 08:31 AM
  3. vlookup and target.address
    By excel_vb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-28-2010, 10:51 PM
  4. VLOOKUP by address
    By ram74 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-26-2008, 05:17 PM
  5. Vlookup/address question
    By Dan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-21-2006, 11:45 AM
  6. Address and Vlookup
    By sjring in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-31-2005, 03:05 PM
  7. [SOLVED] Cell address from Vlookup
    By Harry in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-11-2005, 10:05 AM

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