ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   to set rownumber (https://www.excelbanter.com/excel-discussion-misc-queries/237779-set-rownumber.html)

pol

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

Stefi

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


pol

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


Stefi

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



All times are GMT +1. The time now is 03:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com