editing formula's in lots of cells

r.baldwin7960

New Member
Joined
Jun 25, 2008
Messages
29
I'm using VLOOKUP to pull data from a web query to a report page, the "new" table is 21 rows by 96 columns.

The formula that I am using is:

=IF($B7="","",VLOOKUP($B7,'Sheet2'!$E$7:$CV$47,2,FALSE))

I need to change it to:

=IF(ISERROR(IF($B7="","",VLOOKUP($B7,'Sheet2'!$E$7:$CV$47,2,FALSE))),"",IF($B7="","",VLOOKUP($B7,'Sheet2'!$E$7:$CV$47,2,FALSE)))

The problem is that I can't (or don't know how to) use the Replace command to do this on all the cells at once (about 20,000 by my calculations)

Can I use a macro to do this? If so, how would I write it?

Thanks for all the help again!
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

Forum statistics

Threads
1,214,827
Messages
6,121,823
Members
449,049
Latest member
cybersurfer5000

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