Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Perhaps this UDF will help:
Function mvlookup(srchval, srchindex) Dim sh As Worksheet Dim srchrng As Range For Each sh In Sheets(Array("Sheet1", "Sheet2", "Sheet3")) '<== change Set srchrng = sh.Range("A:B") '<=== change range res = Application.VLookup(srchval, srchrng, srchindex, 0) If Not IsError(res) Then mvlookup = res Exit Function End If Next sh mvlookup = "" End Function e.g in a cell put: =MVLOOKUP("abc",2) will find "abc" and return value from column B "Chrisl147" wrote: I regularily use VLOOKUP but want to create a LOOKUP that will search all pages of a workbook and return the required data. I am using a distinct customer number that will only appear once. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Vlookup & search function help | Excel Worksheet Functions | |||
Get header only on first page of multi page excel file | Excel Discussion (Misc queries) | |||
VLookup function to search an entire workbook | Excel Worksheet Functions | |||
multi page copy | Excel Discussion (Misc queries) | |||
how do i set up multi page user form | Excel Discussion (Misc queries) |