+ Reply to Thread
Results 1 to 3 of 3

Formula with static and dynamic cell references

  1. #1
    Registered User
    Join Date
    01-20-2011
    Location
    St. John's, Newfoundland
    MS-Off Ver
    Excel 2007
    Posts
    1

    Formula with static and dynamic cell references

    I'm using the VLOOKUP function to find a specific value in a table and enter its corresponding value into a cell. The formula is below:

    =VLOOKUP(Q2,HBF!A1:B72,2,FALSE)

    This formula works fine for the first cell, but when I copy it into cells below it in my table, the cell references change. What I want the function to do is change the lookup_value (Q2) but leave the table array (HBF!A1:B72) the same. So I want the formula to look something like this:

    =VLOOKUP(Q3,HBF!A1:B72,2,FALSE)
    =VLOOKUP(Q4,HBF!A1:B72,2,FALSE)
    =VLOOKUP(Q5,HBF!A1:B72,2,FALSE)
    =VLOOKUP(Q6,HBF!A1:B72,2,FALSE)

    Instead, I'm getting something like this:

    =VLOOKUP(Q3,HBF!A2:B73,2,FALSE)
    =VLOOKUP(Q4,HBF!A3:B74,2,FALSE)
    =VLOOKUP(Q5,HBF!A4:B75,2,FALSE)
    =VLOOKUP(Q6,HBF!A5:B76,2,FALSE)

    Can anyone suggest how I might change the "lookup_value" depending on the cell, but keep the "table_array" field the same?

    Thanks

    -zack

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

    Re: Formula with static and dynamic cell references

    see: http://office.microsoft.com/en-us/ex...005198323.aspx specifically re: absolute & relative referencing.

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,847

    Re: Formula with static and dynamic cell references

    =VLOOKUP(Q3,HBF!$A$1:$B$72,2,FALSE)

    Look up Excel help on absolute and relative references....
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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