+ Reply to Thread
Results 1 to 4 of 4

VLOOKUP Changes Itself

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    05-20-2008
    Posts
    162

    VLOOKUP Changes Itself

    I currently have about 6 VLOOKUP's which after they run, seem to change themselves and give me #REF errors. So i have to change them all back to their original values.

    Does anyone know why this happens....

    =VLOOKUP(A:A,'Infill Report'!A:AE,30,FALSE)
    In the above example, the A:AE will change to A:AB for example....

    It's driving me nuts..

    JonesZoid
    Last edited by VBA Noob; 11-14-2008 at 09:19 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    It appears you're trying to search a column one sheet against data on another sheet? Is that so? VLOOKUP only works on a contiguous table. The range you're looking in needs to have the same column range as the lookup value range....and on the same page.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    05-20-2008
    Posts
    162
    It looks at another sheet which is populated from a web report and updates my sheet accordingly with any new data etc...

    The data is formatted pretty much the same on both sheets.

    JonesZoid

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,524
    Try using absolute values, if the formula gets moved it won't change then
    =VLOOKUP($A:$A,'Infill Report'!$A:$AE,30,FALSE)
    Not tested though....

+ 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