Formulas in Excel

M

Mark

I want to make a formula follow down the length of the
column. the formula is easy it just in cell E3 =C3*D3.
and i want the cell E4 to =C4*D4. and follow down. if
anyone can help i would appreciate it. Thanks
Mark
 
D

Don Guillett

modify to suit

Sub balance()
Set frng = Range("e3:3" & Range("c65536").End(xlUp).Row)
With frng
.Formula = "=c3*d3"
' .Formula = .Value 'changes to values afterwards
End With
End Sub
 
R

Rick C

Mark,
Based on your question, I'm guessing that Don's response is a little
advanced. Please forgive me if I am assuming too much, but you seem to be
looking for an easier solution.

Just copy cell E3 and paste it onto cell E4. You can also select the entire
column and paste it. The cell references will update accordingly. Look up
absolute and relative references in Excel Help for more info.

HTH,
Rick
 
K

Ken Wright

Click into cell E3, then hover the mouse over the bottom right hand corner of the cell, click onto
the little black cross and drag down across the range you want to fill.
 
N

Nigel Graham

As in Ken's solution but instead of dragging down just double click the
little square in the bottom right corner and the formula will go all the way
to the bottom. Only problem is that if you have a gap in the data it stops
at the first black reference cell. Simple is quickest and if you have
65,000 sets of data my method takes seconds. Hope this helps.
Nigel Graham
Hutton IT
www.hit.uk.net
 
D

Don Guillett

See, Ken did it.

Rick C said:
It would be, but Mark's question leads me to believe he is a novice.
Explaining the fill handle to a novice through email could make someone's
head explode...probably mine. ;-)
 

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

Similar Threads

If Condition 4
Combine Sumifs with Subtotal 0
Strange Function Copy 1
Supress DIV/0 2
Need Help with a VBA subroutine 0
Payment calculation 1
Simplifying multiple IF statements? 1
Excel equations 6

Top