Conditional Format specific errors

ExcelNoob222

Board Regular
Joined
Jun 17, 2020
Messages
77
Office Version
  1. 365
Platform
  1. Windows
Hi,

Is there any way to conditional format specific errors? I know you can conditional format all errors but I'd like to highlight #N/A one colour and #Name? errors another colour.

Thanks!
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Note that Excel has an ISNA function (How to use the Excel ISNA function | Exceljet).
So you can use that for that ISNA error check, and for the other one you could use something like:
Excel Formula:
=AND(ISERROR(A1),ISNA(A1)=False)
to check for an error that is not an ISNA error.
 
Upvote 0
Note that Excel has an ISNA function (How to use the Excel ISNA function | Exceljet).
So you can use that for that ISNA error check, and for the other one you could use something like:
Excel Formula:
=AND(ISERROR(A1),ISNA(A1)=False)
to check for an error that is not an ISNA error.

Hi, ya I completely agree or using an iferror() function. Unfortunately, I have inherited this file that has almost 3,000 formulas of which 20% have errors. The original author set it up terribly. So I'd like to try to change th font colour to white for #name? errors as I don't need to review those but change the #N/A to highlight yellow so that I can review them.
 
Upvote 0
I think you misunderstood. I am not talking about updating the formulas on the spreadsheet (and note I used ISERROR, not IFERROR, those are two totally different functions).
I was giving you the formulas to use for your Conditional Formatting rules.

#N/A error Conditional Formatting formula
=ISNA(A1)

All other errors Conditional Formatting formula
=AND(ISERROR(A1),ISNA(A1)=False)
 
Upvote 0
Solution
I think you misunderstood. I am not talking about updating the formulas on the spreadsheet (and note I used ISERROR, not IFERROR, those are two totally different functions).
I was giving you the formulas to use for your Conditional Formatting rules.

#N/A error Conditional Formatting formula
=ISNA(A1)

All other errors Conditional Formatting formula
=AND(ISERROR(A1),ISNA(A1)=False)

You are right, I completely misunderstood. Thank you for clarifying. This worked. Thank you so much!
 
Upvote 0
You are welcome.
Glad I was able to help!
 
Upvote 0

Forum statistics

Threads
1,214,927
Messages
6,122,309
Members
449,080
Latest member
jmsotelo

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