to workout the forumula from any column.

P

pol

ActiveCell.FormulaR1C1 =
"=IF(COUNTIF([ITEM.XLS]SHEET1!C[-11],RC[-6]),VLOOKUP(RC[-6],[ITEM.XLS]SHEET1!C[-11]:C[-1],11,0),0)"

How I can give the varibale for RC[-6] in the above formula. Because it
might not be the column before 6 in all the time. For example if I insert a
new column and that forumula should be worked out from the new column . So
please help to rewrite the forumula to accomodate this flexiblity.

With thanks
Pol
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top