+ Reply to Thread
Results 1 to 5 of 5

Show answer when cells are not blank

  1. #1
    Registered User
    Join Date
    04-08-2014
    Location
    Louisiana
    MS-Off Ver
    Excel 2003
    Posts
    5

    Show answer when cells are not blank

    This formula is in cell A4 : (42-A1)*8.8+(42-A2)*8.8+(45-A3)*7.5. The problem is if there is nothing entered in cells A1, A2, an A3 the result is 1077 which is the same answer if zeros are entered in those cells. I would like the answer to show up only if numbers are entered in cells A1, A2, an A3.

  2. #2
    Forum Contributor
    Join Date
    02-20-2014
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    170

    Re: Show answer when cells are not blank

    Try this out:

    =IF(AND(ISNUMBER(A1),ISNUMBER(A2),ISNUMBER(A3)),(42-A1)*8.8+(42-A2)*8.8+(45-A3)*7.5,"")

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,271

    Re: Show answer when cells are not blank

    Hi chris and welcome to the forum,

    How about something like:

    = If(A1*A2*A3=0, "", (42-A1)*8.8+(42-A2)*8.8+(45-A3)*7.5)
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Forum Contributor
    Join Date
    02-20-2014
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    170

    Re: Show answer when cells are not blank

    I just reconsidered: Do you want it to show an answer if all 3 have numbers, or only some? Say for example A1 and A2 have numbers, but A3 is blank?

    The above example will only work with a number in A1, A2 and A3. If you want it to work if any of the calls has a number, you can use IF(OR(ISNUMBER(A1),ISNUMBER(A2),ISNUMBER(A3)),(42-A1)*8.8+(42-A2)*8.8+(45-A3)*7.5,"")

  5. #5
    Registered User
    Join Date
    03-27-2009
    Location
    Surat,India
    MS-Off Ver
    Excel 2007
    Posts
    52

    Re: Show answer when cells are not blank

    If all cells are blank.. you can use IF(AND(A1="",A2="",A3=""),"",(42-A1)*8.8+(42-A2)*8.8+(45-A3)*7.5)

+ 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. Formulas will not recalculate and use blank cells to get to answer!!
    By Katecho in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-19-2013, 04:03 AM
  2. show value only if not all cells are blank
    By Withershin in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-12-2012, 11:03 PM
  3. If (average A1:A10 - 10) = >0, show answer, if not, show blank... Without helper
    By ThomasCarter in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-15-2012, 10:53 AM
  4. [SOLVED] Excel function is returning undesired answer for blank cells
    By dcwandj in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-28-2012, 12:14 PM
  5. [SOLVED] blank cells in a formula gives me an answer not acceptable to prin
    By AL VEGA in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 06-19-2006, 08:10 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