#1   Report Post  
Posted to microsoft.public.excel.misc
pol pol is offline
external usenet poster
 
Posts: 129
Default 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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default 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   Report Post  
Posted to microsoft.public.excel.misc
pol pol is offline
external usenet poster
 
Posts: 129
Default 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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use the rownumber of the current cell in a formula Wim Goelen Excel Worksheet Functions 3 October 28th 08 08:47 PM


All times are GMT +1. The time now is 10:55 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"