ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   changing the message in an error message (https://www.excelbanter.com/excel-worksheet-functions/13913-changing-message-error-message.html)

The Villages DA

changing the message in an error message
 
When I copy and paste a formula into a cell that refers to a blank cell I get
and error message that say #div/01! and I want to change to ERROR.

How can I do that???

Thanks for the help.



Bernie Deitrick

Re-write your formula:

=IF(ISERROR(Original Formula),"ERROR",Original Formula)

Where Original Formula is your current formula, but without the = sign.

HTH,
Bernie
MS Excel MVP

"The Villages DA" <The Villages wrote in
message ...
When I copy and paste a formula into a cell that refers to a blank cell I

get
and error message that say #div/01! and I want to change to ERROR.

How can I do that???

Thanks for the help.





dominicb


Good evening

Use this formula:

=IF(ISERR(B1/A1)=TRUE,"ERROR",B1/A1)

This will work for any error (except #N/A) and will show "ERROR" rather
than the type of error. If the formula can be calculated without error,
it will.

HTH.


--
dominicb
------------------------------------------------------------------------
dominicb's Profile: http://www.excelforum.com/member.php...o&userid=18932
View this thread: http://www.excelforum.com/showthread...hreadid=346803



All times are GMT +1. The time now is 10:01 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com