If data exists in column J, put formula in column K

S

S Himmelrich

the formula is basically:

=SUM(J1/MACRO!G11)

J1, must change as formula moves down each row, "MACRO!G11" stays the
same
 
C

Conan Kelly

S Himmelrich,

What about wrapping an IF() function around your formula?

Enter this formula in K1
=IF(J1="","",SUM(J1/MACRO!$G$11))

HTH,

Conan Kelly
 
D

Dave Peterson

Check your earlier post.

S said:
the formula is basically:

=SUM(J1/MACRO!G11)

J1, must change as formula moves down each row, "MACRO!G11" stays the
same
 
S

S Himmelrich

I've re-posted my original request to be more specific - sorry for the
lack of explaination in my original posting.
 
S

S Himmelrich

Solution:

Dim rng As Range
Set rng = Range(Cells(1, "D"), Cells(Rows.Count, "D").End(xlUp))
rng.Offset(0, 7).Formula = "=IF(J1="""","""",SUM(J1/MACRO!$G$11))"
 

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