Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
to set rownumber
ActiveCell.Formula = "=IF(COUNTIF([item.xls]item!B:B,
G7),VLOOKUP(G7,[item]item!B:L,11,0)) In the above formula the the G7 value shoulbe changed with G and active row number example if current active row =3 then G7 should be changed into G3 if current active row =8 then G7 should be changed into G8 Please help ro rewrite the formula Pol |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
to set rownumber
Try this:
ActiveCell.FormulaR1C1 = "=IF(COUNTIF([item.xls]item!C2, RC7),VLOOKUP(RC7,[item.xls]item!C2:C12,11,0))" Regards, Stefi €˛pol€¯ ezt Ć*rta: ActiveCell.Formula = "=IF(COUNTIF([item.xls]item!B:B, G7),VLOOKUP(G7,[item]item!B:L,11,0)) In the above formula the the G7 value shoulbe changed with G and active row number example if current active row =3 then G7 should be changed into G3 if current active row =8 then G7 should be changed into G8 Please help ro rewrite the formula Pol |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
to set rownumber
Thanks too much, it is working fine
"Stefi" wrote: Try this: ActiveCell.FormulaR1C1 = "=IF(COUNTIF([item.xls]item!C2, RC7),VLOOKUP(RC7,[item.xls]item!C2:C12,11,0))" Regards, Stefi €˛pol€¯ ezt Ć*rta: ActiveCell.Formula = "=IF(COUNTIF([item.xls]item!B:B, G7),VLOOKUP(G7,[item]item!B:L,11,0)) In the above formula the the G7 value shoulbe changed with G and active row number example if current active row =3 then G7 should be changed into G3 if current active row =8 then G7 should be changed into G8 Please help ro rewrite the formula Pol |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
to set rownumber
You are welcome! Thanks for the feedback!
Stefi €˛pol€¯ ezt Ć*rta: Thanks too much, it is working fine "Stefi" wrote: Try this: ActiveCell.FormulaR1C1 = "=IF(COUNTIF([item.xls]item!C2, RC7),VLOOKUP(RC7,[item.xls]item!C2:C12,11,0))" Regards, Stefi €˛pol€¯ ezt Ć*rta: ActiveCell.Formula = "=IF(COUNTIF([item.xls]item!B:B, G7),VLOOKUP(G7,[item]item!B:L,11,0)) In the above formula the the G7 value shoulbe changed with G and active row number example if current active row =3 then G7 should be changed into G3 if current active row =8 then G7 should be changed into G8 Please help ro rewrite the formula Pol |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How to use the rownumber of the current cell in a formula | Excel Worksheet Functions |