+ Reply to Thread
Results 1 to 9 of 9

IF formula to have a cell go to blank if adjacent cell is empty

  1. #1
    Registered User
    Join Date
    04-23-2019
    Location
    U.S.
    MS-Off Ver
    Excel 2016
    Posts
    70

    IF formula to have a cell go to blank if adjacent cell is empty

    Hi, in this case, I need a cell to go to blank, not 0, if adjacent cell is empty.

    Thanks!

    PS Screen pic should say "I need these cells to go to blank". : )
    Attached Images Attached Images

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,765

    Re: IF formula to have a cell go to blank if adjacent cell is empty

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    or something similar, depends of other formulas or data.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,329

    Re: IF formula to have a cell go to blank if adjacent cell is empty

    You do realise that, from the picture, we have no idea what columns are in use or what the current formula is


    You would use something like:
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    If you need something more specific …

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    04-23-2019
    Location
    U.S.
    MS-Off Ver
    Excel 2016
    Posts
    70

    Re: IF formula to have a cell go to blank if adjacent cell is empty

    Hi Trevor, points taken, thank you!
    I tried your formula, not working yet. If you look at the file (cell G54) you'll see the formula you suggested. There are spaces in it, as it looked as though you had typed it out that way. Either way, spaces or no spaces, same result.
    Here's the file...
    Thanks again.
    Attached Files Attached Files
    Last edited by BryanHCR; 05-14-2019 at 07:26 AM.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,329

    Re: IF formula to have a cell go to blank if adjacent cell is empty

    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Why are you using INDIRECT? It is simply:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    04-23-2019
    Location
    U.S.
    MS-Off Ver
    Excel 2016
    Posts
    70

    Re: IF formula to have a cell go to blank if adjacent cell is empty

    Hi, in the cells in the table I'm addressing, there are no INDIRECT references. From your message, it looks like you are working on the top table, if that is the case, you'll need to scroll down to the third table. You'll see that I have G50 active in the screen pic I've included, with the formula in the tool bar. Your formula is in the white text box. The formula I'm using based on your input works in terms of the correct calculation, but it has no effect on causing the cells to go to blank when the adjacent cell (F column) is blank. Your suggestion is needed! : )
    Thanks!
    Attached Images Attached Images

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,329

    Re: IF formula to have a cell go to blank if adjacent cell is empty

    G50:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    You do not need INDIRECT in the way that you are using it:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    gives exactly the same result as
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    However, INDIRECT is Volatile and will cause the formulae to be recalculated even if they, or their dependents, have not changed. It will slow down the calculation and performance of your workbook.

  8. #8
    Registered User
    Join Date
    04-23-2019
    Location
    U.S.
    MS-Off Ver
    Excel 2016
    Posts
    70

    Re: IF formula to have a cell go to blank if adjacent cell is empty

    Yay! Thanks so much, worked perfectly, no surprise to you I'm sure.
    Actually, in regard to the INDIRECT use, I think I do need to use it, or something else... The reason is because it is the only way I now of, (and I searched long and hard to find something that would work) is I needed to reference to a cell location that would not follow the default behavior of Excel when the cell being referred to is moved, as is the case =A1. I learned through the form that INDIRECT is volatile, but the only two pages affected by it are the two I sent you. So far, it seems to calculate fine (speed wise).

    I've been using Excel extensively for years, but never needed to get into complex formulas until this project. So, on that note, I was wondering if you would do me a favor. You may be familiar with the snowball debt reduction method, the form I built off of to create the "T1 Calculator" sheet" was a free download. I have modified it extensively, and for the most part works well, though I did have to modify the interest calculation formula for it was off a bit (which may be another weakness of the original formula).

    The problem with the Calculator page, is it is fomulated to only calculate correctly if a lower balance is paid off before a higher balance, thus you have to always place the lower balances above the higher ones, which is, the snowball method, however, there may be times people don't want to do that, the main reason being that if a creditor has a much higher APR, it makes more sense (in most cases) to pay that creditor off first.

    If you feel like checking this out, you can do the following. On the Debt form page, overwrite the balance as follows: Creditor 2 $3000, Creditors 3 & 4 $1,000. You will see that the months to pay column shows Creditor 3 being paid off before Creditors 3 & 4. Also, the months to pay will not be accurate. To see why, you can click on the Calculator page tab, or click the little hand link for Creditor 3, you will see the weakness (limitation of the formula) for the min. payments for creditor 3, 4 & 5 all go up before Creditor 2 is paid off, which is what I would like to figure out how to fix. Perhaps you could take a look and see how difficult you think this would be. I don't have enough experience to know. Feels like it would be complex, but you're a Guru! Certainly it will need some more IFs : )

    Just a request would value your opinion.

    Thanks again so much for your help!
    Bryan

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,329

    Re: IF formula to have a cell go to blank if adjacent cell is empty

    You're welcome.

    If INDIRECT is what works for you, then fine. I think there are other options (that I would prefer), for example, =INDEX(D:D,ROW(D6)). But, if it ain't broke, don't fix it.

    I know nothing about the Snowball debt reduction method. If you want advice on that specific topic, I suggest you start a new thread with "Snowball Debt Reduction Method - modification required" as the title. Include your sample file and a link back to this thread for background. That will open the topic up to fresh eyes and a wider audience, some if not many of them with experience in debt management.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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: 6
    Last Post: 05-24-2017, 06:34 AM
  2. Replies: 4
    Last Post: 04-18-2017, 07:09 AM
  3. Adjacent cell not empty then copy above formula
    By carlrubber in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-15-2016, 10:14 PM
  4. [SOLVED] Formula that will result the cell blank based on adjacent cell
    By LShepherd in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-20-2016, 01:04 PM
  5. Replies: 5
    Last Post: 08-15-2014, 08:33 AM
  6. [SOLVED] Add formula if adjacent cell has name in it but remove formula in adjacent cell is blank
    By How How in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-16-2013, 10:42 AM
  7. Replies: 1
    Last Post: 02-06-2008, 08:23 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