Replace #N/A with Text

Mudbutt

Board Regular
Joined
Jul 18, 2011
Messages
158
I'm using Excel 2007 and want to know how to replace all #N/A's in column C with the text string "No Del. Date" via VBA.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
I'm using Excel 2007 and want to know how to replace all #N/A's in column C with the text string "No Del. Date" via VBA.

Can you clarify how the #NA are there in the first place? are they the result of a vlookup where there's no match? if thats the case, surround your vlookup in IFERROR like below

=Iferror(Vlookup Here),"NoDel. Dete")

if it's not the result of a Vlookup, can you post a sample of how the #NA is being generated?
 
Upvote 0

Forum statistics

Threads
1,224,561
Messages
6,179,522
Members
452,923
Latest member
JackiG

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