Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Couple of vlookup queries
Hi, Two things: 1) The following doesn't re-calculate as I change the inputs, I have to F2 and press enter each time 2) Also if there is an error it doesnt pick up the new lookup, is ("Desktop\My Documents\Book10!Sheet1!a1:b3") valid? Many Thanks Function taz(a) As Variant Dim res As Variant res = Application.VLookup(a, Range("Sheet1!a1:b3"), 2, 0) If IsError(res) Then res = Application.VLookup(a, Range("Desktop\My Documents\Book10!Sheet1!a1:b3"), 2, 0) End If If IsError(res) Then taz = "Not found" Else taz = res End If End Function -- T De Villiers ------------------------------------------------------------------------ T De Villiers's Profile: http://www.excelforum.com/member.php...o&userid=26479 View this thread: http://www.excelforum.com/showthread...hreadid=505787 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Using single cell reference as table array argument in Vlookup | Excel Worksheet Functions | |||
VLOOKUP Limitations | Excel Worksheet Functions | |||
Have Vlookup return a Value of 0 instead of #N/A | Excel Worksheet Functions | |||
vlookup data hidden within worksheet | Excel Worksheet Functions | |||
Vlookup info being used without vlookup table attached? | Excel Worksheet Functions |