How to copy a formula to every other column

Pandrade

New Member
Joined
Apr 13, 2020
Messages
36
Office Version
  1. 365
Platform
  1. Windows
Hi,
How can I copy a formula with more than a thousand columns to every other column in Excel?
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
To every other column? There are over 16,000 columns in Excel. how does a formula have over 1000 columns? Please explain your requirement more clearly.
 
Upvote 0
Hi,

Say in A1 it is your formula. In B1 put this formula:
=IF(MOD(COLUMN();2)=0,"", put your formula here) then drag to right.
 
Upvote 0
If you want to do that via vba, something like
VBA Code:
    Range("A2").Copy
    Range("B2:AAZ2").PasteSpecial Paste:=xlPasteFormulas, Operation:=xlNone, _
        SkipBlanks:=False, Transpose:=False
    Application.CutCopyMode = False
Adapt the ranges to your context

Bye
 
Upvote 0
Do you want "the formula" to retain its cell references, or do you want them to change?
 
Upvote 0
My formula is a "concept"; without additional info from @Pandrade I cannot suggest an exact approach
Bye
 
Upvote 0
Hi Anthony,
Thanks for your help. The formula will count the cells in each column that have data in them.
 
Upvote 0
Each column is different and some columns have more or less data. The formula to be copied across to every other column will count the number of cells that have data in each column.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top