Pasting formulas to an entire column

redjay

New Member
Joined
May 9, 2008
Messages
46
Hi all

I have a formula (VLOOKUP) which is working well in cell B1.

I have applied the formula to the entire column by simply using copy and paste special. The formula itself is working fine as I have referenced it correctly, however I now have thousands of rows of invalid cell references, going down from where the data ends in row A160 to row 1048576!

How can I apply the formula to an entire column but ignoring those rows where there are blanks? I cannot simply select a column range as the data I am working on is going to have varying numbers of rows.

I am aware I can use CTRL+END to find the last row but this does not work in my case as entire rows have been pasted into the sheet I am working on.

Thanks in advance for any help
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
WOW, that a lot of VLOOKUP's.

I suggest you wrap your formula in an IFERROR statement, eg.

=IFERROR(original formula,"")
 
Upvote 0

Forum statistics

Threads
1,224,582
Messages
6,179,670
Members
452,936
Latest member
anamikabhargaw

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