+ Reply to Thread
Results 1 to 3 of 3

VBA Vlookup not functioning. Please Help?

  1. #1
    Registered User
    Join Date
    04-11-2013
    Location
    Las Vegas
    MS-Off Ver
    Excel 2007
    Posts
    26

    VBA Vlookup not functioning. Please Help?

    Here is the code:


    Please Login or Register  to view this content.
    The idea is that the variable c will receive the lookup value of 9 which is in the second column of a two column table range named rMonths. The vlookup formula will take the variable VActual which will hold the string "September" in it and find it in the range named table rMonths and return the value "9" in the second column to the variable C.

    Somewhere I am not including something in the vlookup code line above. Can anyone help?

  2. #2
    Registered User
    Join Date
    04-11-2013
    Location
    Las Vegas
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: VBA Vlookup not functioning. Please Help?

    Can someone help? It appears that the variable c will not receive the answer of 9 from the range table called rmonths which looks like this:

    January 1
    February 2

    September 9

    and so on.

    The variable VActual holds the lookup value of "September" and should return the value in the table in the second column of 9 to variable "c".

    ?

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,422

    Re: VBA Vlookup not functioning. Please Help?

    Can I suggest that you upload a small sample workbook so that we can play with it.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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. [SOLVED] Vlookup forumla not functioning
    By HHR in forum Excel General
    Replies: 3
    Last Post: 10-30-2013, 12:34 PM
  2. Zero Functioning
    By vjharry in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-23-2013, 04:20 AM
  3. [SOLVED] VLOOKUP formula not functioning properly.
    By jake.masters in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-14-2012, 03:18 PM
  4. vlookup not functioning
    By dejayajay in forum Excel General
    Replies: 3
    Last Post: 09-07-2011, 09:24 PM
  5. Vlookup is not functioning
    By greekboyuk in forum Excel General
    Replies: 10
    Last Post: 11-25-2010, 06:33 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