Fn = Cn * En

  • Thread starter Thread starter abhi
  • Start date Start date
A

abhi

PLSSSSS I AM DYING.........FOR GOD SAKE TELL ME THIS........

Fx = Cx * Bx

where "x" is 1,2,3,4,5..................

means i want to generalize a column........ like

the values in "F" column should be product of that particular values in "C"
column and "B" column....


EXAMPLE:

F1= C1*B1

AND F2 = C2 * B2

AND F3 = C3 * B3............

like that i want to generalize the "F" column......... pls help me
 
Try this:

In F1 put this formula =B1*C1

Then use the mouse to drag the formula in F1 down as far as you need it to
work.

Put some values in columns B and C. Look at the results and see if that is
what you want.
 
Sub Macro1()

LastRow = 7 'put in the last row you want to multiply here
Range("F1").FormulaR1C1 = "=RC[-3]*RC[-4]"
Range("F1").AutoFill Destination:=Range("F1:F" & LastRow),
Type:=xlFillDefault

End Sub
 
Back
Top