+ Reply to Thread
Results 1 to 5 of 5

Leave cell result blank if blank cell is in formula

  1. #1
    Registered User
    Join Date
    09-28-2013
    Location
    Sutter Creek, Ca.
    MS-Off Ver
    Excel 2011
    Posts
    2

    Leave cell result blank if blank cell is in formula

    I have the following formula in cell J2: =(((E2+H2)*(0.029))+0.3) which brings a result of .30 even if cell E2 is empty. I would like J2 to remain blank or 0 if E2 is blank. Thank you. Grind.

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,734

    Re: Leave cell result blank if blank cell is in formula

    =(((E2+H2)*(0.029))+0.3)
    change to

    if you want a blank
    then
    IF( E2="", "", (((E2+H2)*(0.029))+0.3))

    if you want 0
    then
    IF( E2="", 0, (((E2+H2)*(0.029))+0.3))
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Leave cell result blank if blank cell is in formula

    Welcome to the forum

    To avoid coercion issues I'd be inclined to use

    J2:
    =SUM(E2,H2)*0.029+0.3*(COUNT(E2)=1)

    As etaf has highlighted - if H2 is to be disregarded where E2 is devoid of number then the above would require modification.

  4. #4
    Registered User
    Join Date
    09-28-2013
    Location
    Sutter Creek, Ca.
    MS-Off Ver
    Excel 2011
    Posts
    2

    Re: Leave cell result blank if blank cell is in formula

    Thanks Wayne and Donkey- worked great. My puzzler can heal. I am unable to conditionally format one column to make the zeros white and thus invisible- worked in all the other
    columns...Jim

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,734

    Re: Leave cell result blank if blank cell is in formula

    with the conditional format - you may want to start a new thread with this issue and also post an example spreadsheet with no sensitive information

+ 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. Replies: 2
    Last Post: 09-20-2013, 01:43 PM
  2. [SOLVED] Simple pull exact text from cell, if blank it pulls up a 0. How to leave it as blank?
    By sharpmel in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-30-2012, 02:20 PM
  3. Replies: 4
    Last Post: 12-27-2011, 04:26 PM
  4. Replies: 3
    Last Post: 10-22-2009, 12:05 AM
  5. [SOLVED] Formula that will leave cell blank if cell is blank
    By jimtmcdaniels in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-11-2006, 02:30 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