+ Reply to Thread
Results 1 to 4 of 4

Multiple Empty Cells

  1. #1
    Registered User
    Join Date
    03-13-2014
    Location
    MN
    MS-Off Ver
    Excel 2003
    Posts
    2

    Multiple Empty Cells

    How do you write an IF statement where: if either of 2 cells is blank then the given formula will not be shown?

    If A2 is blank or D2 is blank then B2+F2 is not shown in cell G2.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    23,950

    Re: Multiple Empty Cells

    If(Or(A2="",D2=""),"",B2+F2)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Multiple Empty Cells

    Hi and welcome to the forum

    number of ways to do this, these are based on either cells being blank (as opposed to both have to be blank)...

    =if(or(A2="",D2=""),"",your-formula)
    =if(counta(A2,D2)<2,"",your-formula)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    03-13-2014
    Location
    MN
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Multiple Empty Cells

    Thanks guys for the quick help it worked great!

+ 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. Empty cells not evaluating as empty - multiple check methods tried
    By rafadavidc in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 02-03-2014, 05:54 PM
  2. Copy multiple cells then paste in the next empty row
    By D310633 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-16-2013, 10:01 AM
  3. [SOLVED] Delete multiple empty cells in multiple columns and moving data up, witout Macros
    By CoraF in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-30-2012, 08:23 AM
  4. Copy Multiple Cells to Next empty Cell on New Sheet
    By pk2356 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-30-2010, 10:47 AM
  5. Multiple cells and ignore empty cell
    By fbjorkma in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-01-2008, 04:02 PM

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