Auto-update column formula

A

Alex

I have a simple formula as follows
A B C
1 100 200
2
3 4 5 (4*100)+(5*200)

I have a macro that can insert any number of desired columns but i need the
formula in column C to update and include the new inserted columns. I would
then need to paste this all the way down column C (but only in certain cells).
 
L

Luke M

Why not use the formula:
=SUMPRODUCT(A$1:B$1,A2:B2)

Then, if you insert columns between A and B, the formula will automatically
expand?
 

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