+ Reply to Thread
Results 1 to 5 of 5

Prevent formula if any cell is blank

  1. #1
    Registered User
    Join Date
    07-25-2018
    Location
    NY
    MS-Off Ver
    365
    Posts
    7

    Prevent formula if any cell is blank

    I have 3 values I have to input into 3 cells for a formula. When I input values of a formula in any of the cells, while the other 2 are blank I keep getting #div/0 in the total colunm. I would like the formula to ignore the cells if any of them are blank. I tried OR but I don't think I'm using it right. Any help would be appreciated.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2502 (Windows 11 Home 24H2 64-bit)
    Posts
    89,542

    Re: Prevent formula if any cell is blank

    Just wrap the entire formula in an error trap:

    =IFERROR(your_formula,"")
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    47,505

    Re: Prevent formula if any cell is blank

    Or, maybe something like this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    07-25-2018
    Location
    NY
    MS-Off Ver
    365
    Posts
    7

    Re: Prevent formula if any cell is blank

    Actually I found an OR example that used ISBLANK so I just did ISBLANK(C3)...etc. Thanks for the replys

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    47,505

    Re: Prevent formula if any cell is blank

    You're welcome.


    Be useful to post your solution for the benefit of others.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] How to prevent Excel from creating a zero in a blank cell when referenced
    By Dlinen in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 06-07-2016, 12:45 PM
  2. [SOLVED] VBA to prevent saving of excel if cell is blank
    By anuj_sethi1043 in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 08-14-2014, 06:37 PM
  3. [SOLVED] Force data entry in cell with drop down list (i.e. Prevent user from leaving cell blank)
    By moosetales in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-15-2014, 05:28 AM
  4. Prevent blank date in if and index formula
    By jpruffle in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-10-2009, 02:50 PM
  5. [SOLVED] prevent blank cell in excel worksheet
    By jatman in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-29-2006, 10:08 AM
  6. [SOLVED] how to prevent blank cell copied when combining cells?
    By Vicneswari Murugan in forum Excel General
    Replies: 2
    Last Post: 08-18-2005, 09:05 AM
  7. prevent blank cell
    By Ken Stratford in forum Excel General
    Replies: 5
    Last Post: 03-28-2005, 09:06 AM

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