Excel 2010 - Copy a Formula to every other cell in a column

I have an Excel spreadsheet that has a formula in cell C3 -- I would like to copy that formula down column C but in every other cell -- C5, C7, C9, etc.  Is there any easy way to do this?  Thank you
mmj1Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Wilder1626Commented:
Hi

yes there is.

If your C3 as a formula in it and that C4 doesn't,  you can select C3 and C4, and use the drag square option to drag the formula every 2 rows.

Ex:
Select the 2 cells C3 and C4 and drag the small square down.  (see below picture)
Drag 1
Go down with the drag
drag 2
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Martin LissOlder than dirtCommented:
Sub EveryOtherCell()

Dim lngLastRow As Long
Dim lngRow As Long

lngLastRow = Range("C1048576").End(xlUp).Row

Range("C3").Select
    Selection.Copy
'lngLastRow here can be change to any specific range/cell in column C
For lngRow = 5 To lngLastRow Step 2
   ' Cells(lngRow, 3).Formula = Range("C3").Formula
    Cells(lngRow, 3).Activate
    Selection.PasteSpecial Paste:=xlPasteFormulas, Operation:=xlNone, _
        SkipBlanks:=False, Transpose:=False
Next

End Sub

Open in new window

0
Wilder1626Commented:
So you have 2 options, VBA macro or a drag formula.
0
Exploring SQL Server 2016: Fundamentals

Learn the fundamentals of Microsoft SQL Server, a relational database management system that stores and retrieves data when requested by other software applications.

mmj1Author Commented:
That worked great!!!  Thank you.
0
mmj1Author Commented:
Thank you!
0
Wilder1626Commented:
I'm glad i was able to help.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.