+ Reply to Thread
Results 1 to 4 of 4

Putting a formula in a cell and also allowing blank cell

  1. #1
    Registered User
    Join Date
    05-30-2004
    Posts
    63

    Putting a formula in a cell and also allowing blank cell

    If I have a cell with a formula in it, but I also want the cell to remain blank if the other dependent cell is also blank, how do I do this?

    So my cell has this formula:
    =((C3-E3)/C3)

    But if E3 is blank, I want this cell to remain blank also.

    How do I enter both the formula above plus the need to be blank?

    JH
    Using Excel for Mac
    But mostly use Google Sheets

  2. #2
    Registered User
    Join Date
    05-14-2020
    Location
    Mauritius
    MS-Off Ver
    Office 365
    Posts
    97

    Re: Putting a formula in a cell and also allowing blank cell

    =if(e3="","",((c3-e3)/c3))
    Greetings

    Tor


  3. #3
    Registered User
    Join Date
    05-30-2004
    Posts
    63

    Re: Putting a formula in a cell and also allowing blank cell

    Quote Originally Posted by MRUTOR View Post
    =if(e3="","",((c3-e3)/c3))
    That's perfect, thanks.

    If I want to have EITHER one of two cells blank before my formula, how do I do that?

    So if either E3 is blank or G3 is blank, then make this blank, otherwise do the calculation.

    JH
    Last edited by Jetheat; 05-14-2020 at 11:57 AM.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: Putting a formula in a cell and also allowing blank cell

    Try either: =IF(OR(g3="",e3=""),"",(c3-e3)/c3) or =IF(OR(g3="",e3=""),"",1-e3/c3)
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Regarding Allowing editing cell without losing formula
    By stonefish80 in forum Excel General
    Replies: 6
    Last Post: 07-13-2019, 04:19 PM
  2. Conditional formatting: putting 0 when the cell is blank doesn't work
    By Vitalite in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-02-2017, 05:44 AM
  3. Replies: 2
    Last Post: 02-10-2017, 05:29 AM
  4. Allowing a cell with a formula to also allow for user input.
    By joshpit2003 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-24-2013, 03:59 PM
  5. Replies: 1
    Last Post: 02-14-2012, 05:45 PM
  6. Formula not allowing 00:00 to be blank?
    By jonvanwyk in forum Excel General
    Replies: 4
    Last Post: 12-12-2010, 08:51 PM
  7. Replies: 1
    Last Post: 01-15-2005, 06:06 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