Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello
Cells(2, "k") = "=IF($b$2:$b$8000="""","""",(INDEX(Personnel!$B$1: $B$1000,MATCH($b$2:$b$8000,Personnel!$A$1:$A$1000, 0))))" ---This is the formula I am using today and it works fine to do matching. However, I wanted to be able to replace the 8000 in that formula with an actual row count that I am obtaining and placing in a field called BR. Someone suggested I use the INDIRECT function and I just can't get it to work. I have tried everything...adding the WorksheetFunction...placing double quotes...placing an ISERROR. I have gotton everything from syntax error to Run time error 1004....Application-defined or object defined error trying to use this INDIRECT....... Cells(2, "k") = "=IF(ISERROR(WorksheetFunction.INDIRECT(""$b$2:$b$ "" & S1))="""","""",(INDEX(Personnel!$B$1:$B$1000,MATCH (WorksheetFunction.INDIRECT(""$b$2:$b$"" & S1)),Personnel!$A$1:$A$1000,0))))" All I want to do is take this following formula that works and replace the 8000 in that formula with an actual row count that I am obtaining and placing in a field called BR. Cells(2, "k") = "=IF($b$2:$b$8000="""","""",(INDEX(Personnel!$B$1: $B$1000,MATCH($b$2:$b$8000,Personnel!$A$1:$A$1000, 0))))" Is there something that can do this besides the INDIRECT or can someone help setup the formula with the INDIRECT so it works? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Indirect formula not working if I give custom name for Sheets | Excel Discussion (Misc queries) | |||
Indirect formula not working if I give custom name for Sheets | Excel Discussion (Misc queries) | |||
Indirect formula not working if I give custom name for Sheets | Excel Discussion (Misc queries) | |||
Indirect.ext Function Isn't Working for me | Excel Programming | |||
Sumproduct - Indirect - NOT WORKING????? Please help | Excel Discussion (Misc queries) |