Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I would like to remove the N/A's and replace them with a 0 but none
of these macros seem to be working properly. Two problems that I encountered is that is (1) the macro does run but by replacing all the cells with a 0 (2) it does not stay within the data range, so it runs through all the cells. ActiveCell.FormulaR1C1 = "=IF(COUNTIF(RC[-5],'Fall 2006 Cohort'! R2C1:R65536C28,13,)) VLOOKUP(RC[-5],'Fall 2006 Cohort'! R2C1:R65536C28,13,FALSE)0))" ActiveCell.Offset(0, 1).Select Active.FormulaR1C1 = "=IF(ISERROR(VLOOKUP(RC[-5],'Fall 2006 Cohort'! R2C1:R65536C28,13,FALSE)),0,VLOOKUP(RC[-5],'Fall 2006 Cohort'! R2C1:R65536C28,13,FALSE))" ActiveCell.Offset(0, 1).Select |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
If (Vlookup 0) working, but what if Vlookup cell does not exist | Excel Worksheet Functions | |||
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP | Excel Discussion (Misc queries) | |||
Which is faster: VLOOKUP-worksheet or VB-array VLOOKUP? | Excel Programming | |||
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) | New Users to Excel | |||
Vlookup info being used without vlookup table attached? | Excel Worksheet Functions |