Results 1 to 2 of 2

Last Value Lookup in function

Threaded View

  1. #1
    Registered User
    Join Date
    04-17-2014
    Location
    DUbai
    MS-Off Ver
    Excel 2007
    Posts
    63

    Last Value Lookup in function

    Dear Sir

    I am new in VBA can any one help me to solve my problem, I am getting error for the following Function for last value lookup.
    Public Function lastLookup(Value As String, LR As Range, VR As Range)
    'LR consider Value contain column and VR consider result Value contain Column
    
    lastLookup = Application.WorksheetFunction.Lookup(2, 1 / (LR = Value), VR)
    
    End Function
    if I use same formula in excel sheet I get right answer, but when I use as Function

    thanks in advance
    lalit patel
    Last edited by lulupatel; 04-17-2014 at 04:40 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 10-31-2012, 11:44 AM
  2. Create a lookup formula with an If or Lookup function
    By afountas21 in forum Excel General
    Replies: 2
    Last Post: 09-05-2012, 06:53 PM
  3. [SOLVED] Nested IF Function or LOOKUP Function
    By rstephen in forum Excel General
    Replies: 4
    Last Post: 07-03-2012, 09:42 PM
  4. [SOLVED] Pivot table doing a lookup without using the lookup function?
    By NGASGELI in forum Excel General
    Replies: 0
    Last Post: 08-02-2005, 01:05 AM
  5. LOOKUP function
    By bigchris in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-10-2005, 04:17 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