Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hola todos!
I want to do a double or triple Vlookup. I want to do that by VBA. I use at this moment the program below. just need to have the nearest value, because I have a approximate valu for LongLeader = 0.12456 'Exemple the program look in the list. It look for Diameter, kind of tool and the length. But it will return th length of the supplier. For the exemple, it will be 0.125 instead o 0.12456. Set rng = [A1:A2000] For Each cel In rng If cel.Value = "Leader pin" Then If cel.Offset(, 1).Value = DiaLeader Then If cel.Offset(, 2).Value = LongLeader Then ' How can I program it t look for the nearest value in cel.offset(,3).value LongLeaderDME = cel.Offset(, 3).Value End If End If End If Next cel thanks for help and if you have something different (anothe programmation) it will be perfect to -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
LOOKUP problems | Excel Worksheet Functions | |||
Problems with LOOKUP | Excel Worksheet Functions | |||
v-lookup problems | Excel Worksheet Functions | |||
Lookup problems | Excel Worksheet Functions | |||
lookup problems | Excel Worksheet Functions |