"Global" IFERROR instruction (so I don't have to type it in everywhere?)

d0rian

Active Member
Joined
May 30, 2015
Messages
305
Office Version
  1. 2007
In my hairier spreadsheets, I make liberal use of IFERROR (since so many formulas that I copy down result in errors), so a ton of cells have the syntax of =IFERROR(formula,"--") just so I don't have unsightly errors everywhere.

Instead of adding that syntax to every formula where I want it, is there some way for me to just give Excel a global command of: "Listen, I don't want to see ugly error strings, so can you just drop in a "--", or heck even just leave a cell blank, so I don't have to use the IFERROR syntax everywhere"?
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,958
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
You could use Conditional Formatting to hide them.

Use a formula like this one in Conditional Formatting and set the font color to white:

=ISERROR(A1)
 

d0rian

Active Member
Joined
May 30, 2015
Messages
305
Office Version
  1. 2007
Ha, yeah, that's the DIY solution I came up with too...what I like about a "--" or "n/a" value is that it lets me know there's actually a formula in the cell. Moreover, I find conditional formatting often a PITA to work with, b/c it gets copied / pasted / modified when I'm moving cells and columns around in ways that are annoying for me to fix. But thanks for suggestion, it's not a bad mcguyvering.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,530
Messages
5,837,910
Members
430,520
Latest member
VenkateshRajaganesan

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
Top