+ Reply to Thread
Results 1 to 5 of 5

How to lookup data from the last column of a given range?

  1. #1
    Registered User
    Join Date
    06-08-2018
    Location
    Dubai
    MS-Off Ver
    2010
    Posts
    1

    How to lookup data from the last column of a given range?

    Hello Excel experts,

    I wonder how do I use lookup formula (Vlookup) to read the data from a range of table where the data increases every month in next column within the range.

    Refer to the attached file. In sheet 1 I need to capture the exchange rates which are in sheet 2. However, I want to give a dynamic formula so that it takes the exchange rates from the "LAST UPDATED" column.

    Please help.
    Sammy

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: How to lookup data from the last column of a given range?

    Something like

    =VLOOKUP($C3,'Exchange rates'!$B$5:$O$14,MATCH(1E+100,'Exchange rates'!$B$5:$O$5),FALSE)

    Try to avoid using full column references in your formulas when you only have a few rows of data, doing that is what causes the noticeable delay when you enter anything into the sheet.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: How to lookup data from the last column of a given range?

    Or this assuming you will always have all the values in row 5 filled in...
    =VLOOKUP(C3,'Exchange rates'!$B$5:$Z$14,COUNTA('Exchange rates'!$B$5:$Z$5),0)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: How to lookup data from the last column of a given range?

    Convert the exchange rates to a table, then use:
    Please Login or Register  to view this content.
    Ben Van Johnson

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,890

    Re: How to lookup data from the last column of a given range?

    In D2, set data validation to the month values in the lookup sheet. D4:O4

    In D3 type =VLOOKUP(C3,'Exchange rates'!$B$5:$O$14,MATCH(Data!$D$2,'Exchange rates'!$D$4:$O$4,0)+2,TRUE)
    and copy down in column D
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. Lookup value in column A of range and return actual value of column c
    By brian_2me in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-18-2018, 07:32 PM
  2. [SOLVED] How to avoid lookup errors when no data in lookup range
    By prudential in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-25-2018, 01:14 AM
  3. Replies: 2
    Last Post: 11-28-2017, 04:35 PM
  4. [SOLVED] VLOOKUP, gives #N/A error (if Range lookup=0) or wrong data (if Range lookup=empty)
    By Ebalinska in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 01-14-2016, 05:55 AM
  5. [SOLVED] Using Lookup with a Two Column Lookup Range
    By Ike348 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-15-2015, 06:14 PM
  6. [SOLVED] Lookup range of numbers in one column and average corresponding data from next column
    By phenixwars in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-08-2014, 12:20 AM
  7. [SOLVED] Can't LOOKUP a value in a range and get a result from column 1 of the range
    By bobboy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-26-2013, 09:06 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