+ Reply to Thread
Results 1 to 6 of 6

Simple Formula When Input for Formula is null

  1. #1
    Registered User
    Join Date
    08-04-2015
    Location
    Malaysia
    MS-Off Ver
    Microsoft Office 365
    Posts
    57

    Simple Formula When Input for Formula is null

    test1.png
    Question:
    1) What kind of formula that to be add if I want column 4 return value "0" when Column 1 is blank as per scenario 1?

    2) What kind of formula that to be add if I also want Column 2 leave it empty when Column 1 is no figure?
    Attached Files Attached Files
    Last edited by ulala2; 02-25-2017 at 10:23 AM.

  2. #2
    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,939

    Re: Simple Formula When Input for Formula is null

    Just for future reference, columns are known by the letter at the top of the column A, B, C D etc, and rows are known by the number to the very left of the row 1, 2, 3, 4 etc

    Having said that, if you want a cell to show nothing until another cell has data entered into it...
    =IF(A2="","",your-formula)


    Does that help?
    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

  3. #3
    Registered User
    Join Date
    08-04-2015
    Location
    Malaysia
    MS-Off Ver
    Microsoft Office 365
    Posts
    57

    Re: Simple Formula When Input for Formula is null

    Quote Originally Posted by FDibbins View Post
    Just for future reference, columns are known by the letter at the top of the column A, B, C D etc, and rows are known by the number to the very left of the row 1, 2, 3, 4 etc

    Having said that, if you want a cell to show nothing until another cell has data entered into it...
    =IF(A2="","",your-formula)


    Does that help?
    This solved Question 2. How about Question 1??
    Thank you.
    Last edited by ulala2; 02-25-2017 at 10:24 AM.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,215

    Re: Simple Formula When Input for Formula is null

    =if(a2="","",a2+14)

  5. #5
    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,939

    Re: Simple Formula When Input for Formula is null

    Quote Originally Posted by ulala2 View Post
    This solved Question 1. How about Question 2??
    Thank you.
    Pretty much the same thing (as John showed)

  6. #6
    Registered User
    Join Date
    08-04-2015
    Location
    Malaysia
    MS-Off Ver
    Microsoft Office 365
    Posts
    57

    Re: Simple Formula When Input for Formula is null

    oops....just found out there are some typo error.
    the formula of
    if(a2="","".a2+14) solved question 2.

    Question 1, if A8 is without any value, D8 will return value of 42790.
    if i want D8 return value as "0" when A8 is blank, what formula should i add?

+ 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] Using IF formula and accounting for zero or null cell?
    By phantasm79 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-04-2013, 04:25 PM
  2. Input box validation for null value!
    By devpp in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-23-2013, 12:23 PM
  3. Formula returning null value on email
    By cafc_fuller in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-08-2013, 09:15 AM
  4. [SOLVED] INPUT BOX: Null Values
    By lloydgodin in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 04-17-2012, 05:14 PM
  5. if null, then formula problem
    By hrclark in forum Excel General
    Replies: 4
    Last Post: 10-17-2011, 11:29 AM
  6. Formula to hide ~#DIV/0! with Null
    By conks in forum Excel General
    Replies: 5
    Last Post: 11-26-2010, 06:32 AM
  7. [SOLVED] check if the result of a formula is null
    By mark kubicki in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-22-2006, 06:15 PM
  8. Modify formula to display Null
    By Gil D. in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2006, 07:40 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