+ Reply to Thread
Results 1 to 18 of 18

How To Keep Cell Blank When Applying Formula Until Data Entered In Excel

  1. #1
    Forum Contributor
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2017
    Posts
    300

    How To Keep Cell Blank When Applying Formula Until Data Entered In Excel

    I have this forumula =-(AD2-AB2)/AB6 and want the cells to be empty unless I enter a number into column AD.

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,372

    Re: How To Keep Cell Blank When Applying Formula Until Data Entered In Excel

    Perhaps =IF(AD2="","",-(AD2-AB2)/AB6)

  3. #3
    Forum Contributor
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2017
    Posts
    300

    Re: How To Keep Cell Blank When Applying Formula Until Data Entered In Excel

    What if I want it to show #DIV/0! until data is entered?

  4. #4
    Forum Contributor
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2017
    Posts
    300

    Re: How To Keep Cell Blank When Applying Formula Until Data Entered In Excel

    I got it thanks! If in future I want to do this to a different formula how will I do it?

  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,946

    Re: How To Keep Cell Blank When Applying Formula Until Data Entered In Excel

    Quote Originally Posted by Fredbugatti View Post
    I have this forumula =-(AD2-AB2)/AB6 and want the cells to be empty unless I enter a number into column AD.
    First, did you notice that you are starting that formula with a minus?
    =-(AD2-AB2)/AB6

    2nd, If you need to test to see if a cell has data (or anything) in it, as azumi showed, you use =if(cell-ref="","",your-formula
    This says IF cell-ref shows "empty", return "empty", otherwise use the 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

  6. #6
    Forum Contributor
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2017
    Posts
    300

    Re: How To Keep Cell Blank When Applying Formula Until Data Entered In Excel

    Perfect, Thanks so much!

  7. #7
    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: How To Keep Cell Blank When Applying Formula Until Data Entered In Excel

    happy to help and thanks for the feedback

    Did you notice the minus sigh at the start? If it supposed to be there, thats great, but I have made that typo before and wondered why my answers were wrong lol

  8. #8
    Forum Contributor
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2017
    Posts
    300

    Re: How To Keep Cell Blank When Applying Formula Until Data Entered In Excel

    Yes I just did lol Thanks!
    Can you just help me with one more formula: =IF(AA2/(1-AI2)=0,"",AA2/(1-AI2)) I want it to show blank as well.

  9. #9
    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: How To Keep Cell Blank When Applying Formula Until Data Entered In Excel

    I would just take 1 cell that would cause the error is was not there, and test for that. So maybe...
    =IF(AI2)="","",AA2/(1-AI2))

    Note also that I used "" and not 0. 0 (zero) is an entry, and your question referred to the cell having (or not having) a number entered into it (as compared to a formula IN that cell, which would mean the cell is not empty)

  10. #10
    Forum Contributor
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2017
    Posts
    300

    Re: How To Keep Cell Blank When Applying Formula Until Data Entered In Excel

    Basically I am changing the columns from the attached forumula to my other sheet but it is not working how can I convert it?
    Attached Files Attached Files

  11. #11
    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: How To Keep Cell Blank When Applying Formula Until Data Entered In Excel

    Thanks for the file, it helped a lot.

    Looks like you dont actually have "nothing" in the cell (col D?) you actually have an error message.

    I have changed the formula to this
    F2=IF(ISNUMBER(D2),D2/(1-E2),"")

  12. #12
    Forum Contributor
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2017
    Posts
    300

    Re: How To Keep Cell Blank When Applying Formula Until Data Entered In Excel

    It still showing numbers eventhoug column AI are blanks only the first one has data
    please see screenshot https://www.screencast.com/t/94kAHPbJe13k

  13. #13
    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: How To Keep Cell Blank When Applying Formula Until Data Entered In Excel

    Your formula is using AA, but your screen shot only starts at AF, cant see what is in AA?

  14. #14
    Forum Contributor
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2017
    Posts
    300

    Re: How To Keep Cell Blank When Applying Formula Until Data Entered In Excel

    AA is the Cost Price
    See screenshot https://www.screencast.com/t/6ybJ3wIdj25

  15. #15
    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: How To Keep Cell Blank When Applying Formula Until Data Entered In Excel

    OK so of you are not referencing the column with errors according to your sample sheet, I have adjusted my 1st suggestion...
    =IF(AA2)="","",AA2/(1-AI2))

    What you need to do, is test the cell that could be empty - in this case, per your samples, that would be in col AA

  16. #16
    Forum Contributor
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2017
    Posts
    300

    Re: How To Keep Cell Blank When Applying Formula Until Data Entered In Excel

    I want it to be if AI is empty then it should be blank ?
    Sorry for back and forth.

  17. #17
    Forum Contributor
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2017
    Posts
    300

    Re: How To Keep Cell Blank When Applying Formula Until Data Entered In Excel

    Basically If AI is empty it would be blank but it would take the AA which is cost and I will just input the percentage and it will populate it in column AJ

  18. #18
    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: How To Keep Cell Blank When Applying Formula Until Data Entered In Excel

    Like I said, you need to set the test, for the cell that may be empty. If that is AI, then set the test for that

+ 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. VLOOKUP error, while applying formula to avoid a blank cell
    By jayarajmarydasan in forum Excel General
    Replies: 3
    Last Post: 10-13-2017, 11:20 AM
  2. Formula Cell to remain Blank Until Data Entered
    By Aristillus in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-31-2016, 11:08 AM
  3. [SOLVED] Need cell with formula to show as blank instead of error message when no data is entered
    By jaiverson in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-05-2016, 09:15 PM
  4. Leaving a cell blank in Excel until the data is entered
    By gelert64 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2015, 04:06 PM
  5. Help: Auto applying a formula to new data when entered in to a specific column.
    By LuckoftheLefty in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-26-2014, 03:28 AM
  6. [SOLVED] Leaving cell with formula blank until data is entered.
    By Marley04 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-12-2013, 09:17 PM
  7. Replies: 4
    Last Post: 06-04-2013, 11:01 AM

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