How to correct a #DIV/0! error - Microsoft Support
Enter #N/A in the cell that’s referenced as the divisor in the formula, which will change the formula result to #N/A to indicate the divisor value isn’t available.
Applies To: Excel for Microsoft 365, Excel for Microsoft 365 for Mac, Excel for the web, Excel 2024, Excel 2024 for Mac, Excel 2021, Excel 2021 for Mac, Excel 2019, Excel 2016, Excel for iPad, Excel Web App, Excel for iPhone, Excel for Android tablets, Excel for Android phones, Excel for Windows Phone 10, Excel Mobile