+ Reply to Thread
Results 1 to 4 of 4

Replacing "#DIV/0!" with "N/A"

  1. #1
    Registered User
    Join Date
    07-21-2011
    Location
    Baton Rouge, Louisiana
    MS-Off Ver
    Excel 2007
    Posts
    19

    Replacing "#DIV/0!" with "N/A"

    Hello,

    I am sure there are multiple ways to do this, but what is the best way to replace "#DIV/0!" with "N/A" while keeping the original formulas in place. I am doing alot of year over year percentage changes for multiple years, and for alot of my cells I'm showing percentchages that has (0/0)-1 or (500/0)-1. The find and replace function didn't do anything for me...so here I am.

    Thanks!

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Replacing "#DIV/0!" with "N/A"

    Use the formula

    Please Login or Register  to view this content.
    assuming Column A and Column B store the variables

    Show your appreciation - press the star icon if this post ahs been helpful

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Replacing "#DIV/0!" with "N/A"

    Another way:

    =IF(N(B1), A1/B1-1,"N/A")
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,060

    Re: Replacing "#DIV/0!" with "N/A"

    as an option
    Please Login or Register  to view this content.
    Regards, John55
    If you have issues with Code I've provided, I appreciate your feedback.
    In the event Code provided resolves your issue, please mark your Thread as SOLVED.
    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

    ...enjoy -funny parrots-

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1