Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Im trying to do a row count with a vlookup so that only rows being used down
to the first space are in the vlookup. Here is the code that i have for just the vlookup. So what im thinking is that i need to change ' Change this line Set myR3 = Sheets("Modem").Range("Z2:Z4075") ' Change this line myR3.FormulaR1C1 = "=VLOOKUP(RC[-24],MGICLPMI!R2C4:R621C14,11,0)" myR3.Copy myR3.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False myR3.Replace What:="#N/A", Replacement:="0", LookAt:=xlPart, _ SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _ ReplaceFormat:=False -- Message posted via http://www.officekb.com |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
with Sheets("Modem")
Set myR3 = .Range(.Cells(2,"Z"),.Cells(2,"Z").End(xldown)) End With With Worksheets("MGICLPMI") set myR4 = .Range(.Cells(2,4),.Cells(2,4).End(xldown)).Resize (,13) End with myR3.FormulaR1C1 = "=VLOOKUP(RC[-24]," & _ myR4.Address(1,1,xlR1C1,True) & ",11,0)" -- Regards, Tom Ogilvy -- Regards, Tom Ogilvy "jln via OfficeKB.com" wrote: Im trying to do a row count with a vlookup so that only rows being used down to the first space are in the vlookup. Here is the code that i have for just the vlookup. So what im thinking is that i need to change ' Change this line Set myR3 = Sheets("Modem").Range("Z2:Z4075") ' Change this line myR3.FormulaR1C1 = "=VLOOKUP(RC[-24],MGICLPMI!R2C4:R621C14,11,0)" myR3.Copy myR3.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False myR3.Replace What:="#N/A", Replacement:="0", LookAt:=xlPart, _ SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _ ReplaceFormat:=False -- Message posted via http://www.officekb.com |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
If (Vlookup 0) working, but what if Vlookup cell does not exist | Excel Worksheet Functions | |||
VLookUp - Does the VLookUp return the exact information? | Excel Worksheet Functions | |||
Vlookup in vlookup - taking the result as array name | Excel Worksheet Functions | |||
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP | Excel Discussion (Misc queries) | |||
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) | New Users to Excel |